search for: llvmget

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

Did you mean: llvmgen
2017 Aug 17
3
How do set 'nest' addribute in an indirect call?
...is to be directly called, i.e., a function constant, I am getting what I want as follows (using the C 'Core.h' binding) 1) Build a function type, using LLVMFunctionType. 2) Build a function value, passing the result of 1) to LLVMAddFunction 3) Go through the formal parameters of 2), using LLVMGet[First|Next]Param, which give me a value for each formal 4) For the desired formal, pass it to LLVMAddAttribute. This results in compiled code that passes my parameter in the same way as gcc, giving the interoperability I need. For an indirect call, i.e., on a function whose address is runtime...