Replies: 2 comments
-
Hi,
Hope this answer helps you. Regards, |
Beta Was this translation helpful? Give feedback.
-
I found out what was wrong in my code. Thank you for detailed explanation! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am having hard time handling Call instruction...
Is there any Llvm API for getting function that is called in the instruction having Llvm.Opcode.Call ?
I used to use
Llvm.operand
to get operands in the instruction, butLlvm.operand
operation seems to only works when I use function pointer in function call. Basically incall void @k(i32* %call1, i32 3), !dbg !88
for example, I want to get llvalue of function K. I found out that there isLlvmutils.function_name
operation but it returns string of function that is called.Similarly how can I get arguments for the function calls? The position of operands seems to different when I use function pointer to call function with calling with function name.
Lastly, can the function have multiple arguments in this assignment?
Sorry for asking syntax related question.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions