[Mlir-commits] [mlir] a1a429d - [mlir] NFC - Use builder.getI1Type()
Adrian Kuegel
llvmlistbot at llvm.org
Fri May 21 02:45:18 PDT 2021
Author: Adrian Kuegel
Date: 2021-05-21T11:44:57+02:00
New Revision: a1a429dc1d95112bc1122432d9b632512e1e636e
URL: https://github.com/llvm/llvm-project/commit/a1a429dc1d95112bc1122432d9b632512e1e636e
DIFF: https://github.com/llvm/llvm-project/commit/a1a429dc1d95112bc1122432d9b632512e1e636e.diff
LOG: [mlir] NFC - Use builder.getI1Type()
Added:
Modified:
mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td b/mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
index b9bf8e2a60aa..c31092a1a008 100644
--- a/mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
+++ b/mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
@@ -168,8 +168,7 @@ def EqualOp : Complex_Op<"eq",
let results = (outs I1:$result);
let builders = [
OpBuilder<(ins "Value":$lhs, "Value":$rhs), [{
- build($_builder, $_state, IntegerType::get(lhs.getContext(), 1), lhs,
- rhs);
+ build($_builder, $_state, $_builder.getI1Type(), lhs, rhs);
}]>];
let assemblyFormat = "$lhs `,` $rhs attr-dict `:` type($lhs)";
@@ -212,8 +211,7 @@ def NotEqualOp : Complex_Op<"neq",
let results = (outs I1:$result);
let builders = [
OpBuilder<(ins "Value":$lhs, "Value":$rhs), [{
- build($_builder, $_state, IntegerType::get(lhs.getContext(), 1), lhs,
- rhs);
+ build($_builder, $_state, $_builder.getI1Type(), lhs, rhs);
}]>];
let assemblyFormat = "$lhs `,` $rhs attr-dict `:` type($lhs)";
More information about the Mlir-commits
mailing list