[clang] [CIR] Add support for constructors with VTT parameters (PR #156521)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 3 03:53:58 PDT 2025


================
@@ -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


More information about the cfe-commits mailing list