Displaying 1 result from an estimated 1 matches for "llvmgetirstfunct".
2017 Apr 28
2
LLVMGetFirstFunction() / LLVMGetNextFunction( ) problem
...ded, I can dump the module and see the two
functions:
...
; Materializable
; Function Attrs: noinline nounwind uwtable
define void @matmul(double*, double*, double*, i32, i32, i32) #0 {}
; 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 =...