================ @@ -287,6 +287,10 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy { cir::ConstantOp getUInt32(uint32_t c, mlir::Location loc) { return getConstantInt(loc, getUInt32Ty(), c); } + cir::ConstantOp getSInt64(uint64_t c, mlir::Location loc) { + cir::IntType sInt64Ty = getSInt64Ty(); + return create<cir::ConstantOp>(loc, cir::IntAttr::get(sInt64Ty, c)); ---------------- xlauko wrote:
```suggestion return cir::ConstantOp::create(*this, loc, cir::IntAttr::get(sInt64Ty, c)); ``` https://github.com/llvm/llvm-project/pull/156521 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits