Skip to content

Commit b9293b0

Browse files
authored
Add origin of changes within contents
1 parent 182dd49 commit b9293b0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mlir/include/mlir/Dialect/Affine/IR/AffineTraits.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ include "mlir/IR/OpBase.td"
1717
// Trait to declare that an op result is an affine dimension identifier.
1818
// Prevents the result from being seen as a symbol into AffineMaps
1919
// and IntegerSets.
20+
// This is a deviation from upstream to consider linalg.index as
21+
// a dimension rather than a symbol. See this PR:
22+
// https://github.com/Xilinx/llvm-project/pull/537
2023
def AffineDim : NativeOpTrait<"AffineDim">;
2124

2225
#endif // AFFINE_TRAITS

mlir/test/Dialect/Linalg/affine-if.mlir

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
// Check that linalg.index does not cause folding of affine.if set to
44
// a symbolic set.
5+
// This is a deviation from upstream MLIR.
6+
// The origin of this test is that PR:
7+
// https://github.com/Xilinx/llvm-project/pull/537
58

69
// CHECK: = affine_set<(d0) : (-d0 + 5 >= 0)>
710
#set = affine_set<(d0) : (-d0 + 5 >= 0)>

0 commit comments

Comments
 (0)