[llvm] [TypeMetadataUtil][CallPromtionUtil]Add utility function getFunctionAtVTableOffset that finds functions through alias. Use it in CallPromotionUtils which didn't promote aliasee previously (PR #80736)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 14:00:22 PST 2024
================
@@ -77,6 +78,10 @@ void findDevirtualizableCallsForTypeCheckedLoad(
Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M,
Constant *TopLevelGlobal = nullptr);
+// Given a vtable, returns the function pointer specified by Offset.
----------------
teresajohnson wrote:
Document the pair contents.
https://github.com/llvm/llvm-project/pull/80736
More information about the llvm-commits
mailing list