diff options
author | River Riddle <riddleriver@gmail.com> | 2023-01-20 21:39:13 -0800 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2023-01-27 15:28:03 -0800 |
commit | 03d136cf5f3f10b618b7e17f897ebf6019518dcc (patch) | |
tree | 77296a1eb9bdc726ea3b1f3b81012210694a37c1 /mlir/test/IR | |
parent | f58de2125caf75ec0d40bc3e094a93c0b314a66a (diff) | |
download | llvm-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.mlir | 2 |
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" } |