summaryrefslogtreecommitdiffstats
path: root/mlir/lib/StandardOps/Ops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/StandardOps/Ops.cpp')
-rw-r--r--mlir/lib/StandardOps/Ops.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/mlir/lib/StandardOps/Ops.cpp b/mlir/lib/StandardOps/Ops.cpp
index 9a3d9c8c10b..05e3b13eb4c 100644
--- a/mlir/lib/StandardOps/Ops.cpp
+++ b/mlir/lib/StandardOps/Ops.cpp
@@ -1171,14 +1171,14 @@ void ConstantFloatOp::build(Builder *builder, OperationState *result,
ConstantOp::build(builder, result, type, builder->getFloatAttr(type, value));
}
-bool ConstantFloatOp::isClassFor(Operation *op) {
- return ConstantOp::isClassFor(op) &&
+bool ConstantFloatOp::classof(Operation *op) {
+ return ConstantOp::classof(op) &&
op->getResult(0)->getType().isa<FloatType>();
}
/// ConstantIntOp only matches values whose result type is an IntegerType.
-bool ConstantIntOp::isClassFor(Operation *op) {
- return ConstantOp::isClassFor(op) &&
+bool ConstantIntOp::classof(Operation *op) {
+ return ConstantOp::classof(op) &&
op->getResult(0)->getType().isa<IntegerType>();
}
@@ -1199,8 +1199,8 @@ void ConstantIntOp::build(Builder *builder, OperationState *result,
}
/// ConstantIndexOp only matches values whose result type is Index.
-bool ConstantIndexOp::isClassFor(Operation *op) {
- return ConstantOp::isClassFor(op) && op->getResult(0)->getType().isIndex();
+bool ConstantIndexOp::classof(Operation *op) {
+ return ConstantOp::classof(op) && op->getResult(0)->getType().isIndex();
}
void ConstantIndexOp::build(Builder *builder, OperationState *result,
OpenPOWER on IntegriCloud