- Extract utility function from `DevirtModule::tryFindVirtualCallTargets` [1], which sees through an alias to a function. Call this utility function in the WPD callsite. - For type profiling work, this helper function will be used by indirect-call-promotion pass to find the function pointer at a specified vtable offset (an example in [2]) [1]b99163fe8f/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp (L1069-L1082)[2]77a0ef12de/llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp (L347)
99 KiB
99 KiB