[Mlir-commits] [mlir] add `arith::ConstantIntOp` constructor (PR #144638)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Wed Jun 18 00:07:20 PDT 2025
================
@@ -65,6 +67,10 @@ class ConstantIntOp : public arith::ConstantOp {
static void build(OpBuilder &builder, OperationState &result, int64_t value,
Type type);
+ /// Build a constant int op that produces an integer from an APInt
+ static void build(OpBuilder &builder, OperationState &result, Type type,
+ const APInt &value);
----------------
ftynse wrote:
Changing the order between type and value in this constructor with respect to other constructors is highly confusing. Please revise.
https://github.com/llvm/llvm-project/pull/144638
More information about the Mlir-commits
mailing list