Use mlir::OpState::operator->() to get to methods of mlir::Operation.
This is a preparation step to remove those methods from OpState. PiperOrigin-RevId: 360055555 Change-Id: Ibe2c962444907140a7316d2e477897337a4d63b5
This commit is contained in:
parent
b36613e907
commit
90078eb344
@ -441,7 +441,7 @@ def TFR_TFRFuncOp : TFR_Op<"func", [HasParent<"ModuleOp">,
|
||||
// non-derived ones.
|
||||
llvm::StringSet<> getDefinedAttributeNames() {
|
||||
llvm::StringSet<> all_attrs;
|
||||
for (auto& attr : getAttrs()) {
|
||||
for (auto& attr : (*this)->getAttrs()) {
|
||||
all_attrs.insert(attr.first.strref());
|
||||
}
|
||||
for (const auto& operand : llvm::enumerate(getType().getInputs())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user