Identifying function call targets at the MachineInstr level

Thanks – extracting the call destination from the instruction operand is working much better! For my test bitcode, which contains only direct calls, this correctly matches all calls to their targets.

I don’t suppose there’s an “easy” solution for identifying the targets of indirect calls (i.e., through function pointers)? I’ve been told that LLVM’s IR-level CallGraph analysis doesn’t account for indirect calls; is this still the case?


Ethan Johnson