Hi,
I have following two AffineLoadOp instructions in an AffineForOp:
affine.for %arg0 = 1 : 9 {
%a = affine.load %T[%arg0] : memref<10xf32>
%b = affine.load %T[%arg0 + 1] : memref<10xf32>
}
I am trying to get the access indices of the two AffineLoadOp
instructions, i.e. the access indices of the first AffineLoadOp
should be %arg0
, the second should be %arg0 + 1
. I tried with .indices()
method of the AffineLoadOp
, but in both two cases, it only returns <block argument> of type 'index' at index: 0
, it’s true for the first AffineLoadOp, but in the second, it should contain information about +1
.
can any one help me on this? Thank you so much in advance.