[clang] [CIR] Upstream initial function call support (PR #134673)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 8 08:02:49 PDT 2025


================
@@ -403,6 +403,26 @@ class CIRGenFunction : public CIRGenTypeCache {
   mlir::LogicalResult emitContinueStmt(const clang::ContinueStmt &s);
   mlir::LogicalResult emitDoStmt(const clang::DoStmt &s);
 
+  /// An abstract representation of regular/ObjC call/message targets.
+  class AbstractCallee {
+    /// The function declaration of the callee.
+    const clang::Decl *calleeDecl;
+
+  public:
+    AbstractCallee() : calleeDecl(nullptr) {}
+    AbstractCallee(const clang::FunctionDecl *fd) : calleeDecl(fd) {}
+  };
+
+  RValue emitCall(const CIRGenFunctionInfo &funcInfo,
----------------
Lancern wrote:

Updated.

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


More information about the cfe-commits mailing list