[clang] [CIR] Upstream minimal builtin function call support (PR #142981)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 9 09:21:26 PDT 2025


================
@@ -229,6 +230,36 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
   cir::IntType getUInt32Ty() { return typeCache.UInt32Ty; }
   cir::IntType getUInt64Ty() { return typeCache.UInt64Ty; }
 
+  cir::ConstantOp getConstInt(mlir::Location loc, llvm::APSInt intVal);
+
+  cir::ConstantOp getConstInt(mlir::Location loc, llvm::APInt intVal);
+
+  cir::ConstantOp getConstInt(mlir::Location loc, mlir::Type t, uint64_t c);
+
+  mlir::Type getFPType(llvm::fltSemantics const &sem) {
----------------
erichkeane wrote:

Where is this being used in this patch?

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


More information about the cfe-commits mailing list