search for: first_func

Displaying 1 result from an estimated 1 matches for "first_func".

2017 Apr 28
2
LLVMGetFirstFunction() / LLVMGetNextFunction( ) problem
...} ; Materializable ; Function Attrs: noinline nounwind uwtable define i32 @main() #0 {} ... However, when I use LLVMGetirstFunction() and LLVMGetNextFunction() to iterate through the functions in the module, it only iterates through the function "matmul". It never finds main(). 50 first_func = LLVMGetFirstFunction(module); (gdb) next 151 last_func = LLVMGetLastFunction(module); (gdb) 154 for (func = first_func; func != last_func; func = LLVMGetNextFunction(func)) { (gdb) 155 func_name = LLVMGetValueName(func); (gdb) 156 func_addr = LLVMGetFunctionAddress(engine,...