forked from OSchip/llvm-project
[mlir] Use value instead of getValue (NFC)
This commit is contained in:
parent
6fa6901bf0
commit
33c18fbc19
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue