[llvm-dev] figure out the name of the function called via % instead of @ (original) (raw)
Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 27 14:08:04 PST 2019
- Previous message: [llvm-dev] Building libclang_rt.* results in error with -DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON
- Next message: [llvm-dev] llvm-lit output directory - role?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I see the following code in a .ll file converted from a .bc file.
%tmp12 = load void (), void ()* @rl_deprep_term_function, align 8, !dbg !11308 call void %tmp12(), !dbg !11309
As I understand it, @rl_deprep_term_function is a pointer to a variable of type void ()*, which is a pointer to a function takes no argument and return void. Upon load, %tmp12 holds the pointer to the function, which can be called in the following instruction.
Does anybody know what is the best way to figure out the name of the function being called? This must be done at runtime and can not be done statically? Thanks.
-- Regards, Peng
- Previous message: [llvm-dev] Building libclang_rt.* results in error with -DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON
- Next message: [llvm-dev] llvm-lit output directory - role?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]