[clang] [CIR] Upstream initial attribute support (PR #121069)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 26 10:31:25 PST 2024


================
@@ -26,6 +30,13 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
   cir::PointerType getVoidPtrTy() {
     return getPointerTo(cir::VoidType::get(getContext()));
   }
+
+  mlir::TypedAttr getConstPtrAttr(mlir::Type t, int64_t v) {
----------------
erichkeane wrote:

Could we do a better variable name than `v`?  I presume it means `value`?  But that is really only something I can guess at.

https://github.com/llvm/llvm-project/pull/121069


More information about the cfe-commits mailing list