[llvm-branch-commits] [clang] callee_type metadata for indirect calls (PR #117036)

Prabhu Rajasekaran via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 22 20:41:09 PDT 2025


================
@@ -1622,6 +1622,9 @@ class CodeGenModule : public CodeGenTypeCache {
   void CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD,
                                           llvm::Function *F);
 
+  /// Create and attach type metadata to the given call.
+  void CreateCalleeTypeMetadataForIcall(const QualType &QT, llvm::CallBase *CB);
----------------
Prabhuk wrote:

The existing API is named appropriately `CreateFunctionTypeMetadataForIcall` -- adds a `type` metadata to the Function as opposed to the new API `createCalleeTypeMetadataForIcall` which adds `callee_type` metadata to the indirect call instruction.

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


More information about the llvm-branch-commits mailing list