aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/IR
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2023-01-20 21:39:13 -0800
committerRiver Riddle <riddleriver@gmail.com>2023-01-27 15:28:03 -0800
commit03d136cf5f3f10b618b7e17f897ebf6019518dcc (patch)
tree77296a1eb9bdc726ea3b1f3b81012210694a37c1 /mlir/test/IR
parentf58de2125caf75ec0d40bc3e094a93c0b314a66a (diff)
downloadllvm-03d136cf5f3f10b618b7e17f897ebf6019518dcc.zip
llvm-03d136cf5f3f10b618b7e17f897ebf6019518dcc.tar.gz
llvm-03d136cf5f3f10b618b7e17f897ebf6019518dcc.tar.bz2
[mlir] Promote the SubElementInterfaces to a core Attribute/Type construct
This commit restructures the sub element infrastructure to be a core part of attributes and types, instead of being relegated to an interface. This establishes sub element walking/replacement as something "always there", which makes it easier to rely on for correctness/etc (which various bits of infrastructure want, such as Symbols). Attribute/Type now have `walk` and `replace` methods directly accessible, which provide power API for interacting with sub elements. As part of this, a new AttrTypeWalker class is introduced that supports caching walked attributes/types, and a friendlier API (see the simplification of symbol walking in SymbolTable.cpp). Differential Revision: https://reviews.llvm.org/D142272
Diffstat (limited to 'mlir/test/IR')
-rw-r--r--mlir/test/IR/test-symbol-rauw.mlir2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/IR/test-symbol-rauw.mlir b/mlir/test/IR/test-symbol-rauw.mlir
index c7d48b6..fe1c80e 100644
--- a/mlir/test/IR/test-symbol-rauw.mlir
+++ b/mlir/test/IR/test-symbol-rauw.mlir
@@ -76,7 +76,7 @@ module {
// -----
-// Check that replacement works in any implementations of SubElementsAttrInterface
+// Check that replacement works in any implementations of SubElements.
module {
// CHECK: func private @replaced_foo
func.func private @symbol_foo() attributes {sym.new_name = "replaced_foo" }