[clang] [CIR] Add support for indirect calls (PR #139748)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Thu May 15 11:49:33 PDT 2025


================
@@ -1826,6 +1821,9 @@ class CIR_CallOpBase<string mnemonic, list<Trait> extra_traits = []>
     ::mlir::Attribute removeArgAttrsAttr() { return {}; }
     ::mlir::Attribute removeResAttrsAttr() { return {}; }
 
+    bool isIndirect() { return !getCallee(); }
+    mlir::Value getIndirectCall();
+
     void setArg(unsigned index, mlir::Value value) {
----------------
andykaylor wrote:

This function needs to be updated for indirect calls.

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


More information about the cfe-commits mailing list