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:
Christian Sigg 2021-02-28 11:33:08 -08:00 committed by TensorFlower Gardener
parent b36613e907
commit 90078eb344

View File

@ -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())) {