diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-22 23:33:46 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-22 23:33:46 -0700 |
commit | 33c18fbc190d3a1cd38f976b758026247120c412 (patch) | |
tree | 0558bb2cd42ec9a979342f1c2ca49fe716aadafc | |
parent | Use has_value instead of hasValue (NFC) (diff) | |
download | llvm-project-33c18fbc190d3a1cd38f976b758026247120c412.tar.gz llvm-project-33c18fbc190d3a1cd38f976b758026247120c412.tar.bz2 llvm-project-33c18fbc190d3a1cd38f976b758026247120c412.zip |
[mlir] Use value instead of getValue (NFC)
-rw-r--r-- | mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp index 94d789c7f60d..5cc900cb035a 100644 --- a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp +++ b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp @@ -451,7 +451,7 @@ transform::MatchOp::apply(transform::TransformResults &results, // Interfaces cannot be matched by name, just by ID. // So we specifically encode the interfaces we care about for this op. if (getInterface().has_value()) { - auto iface = getInterface().getValue(); + auto iface = getInterface().value(); if (iface == transform::MatchInterfaceEnum::LinalgOp && !isa<linalg::LinalgOp>(op)) return WalkResult::advance(); @@ -460,7 +460,7 @@ transform::MatchOp::apply(transform::TransformResults &results, return WalkResult::advance(); } - if (getAttribute().has_value() && !op->hasAttr(getAttribute().getValue())) + if (getAttribute().has_value() && !op->hasAttr(getAttribute().value())) return WalkResult::advance(); // All constraints are satisfied. |