Description Usage Arguments Value Author(s) References See Also Examples
These functions allow us to specify and query the calling convention of an LLVM routine.
1 | getCallingConv(fun)
|
fun |
the LLVM |
getCallingConv
returns an enumerated constant
identifying the specific calling convention.
Duncan Temple Lang
LLVM documentation
1 2 3 4 5 6 7 8 | f = Function("foo", Int32Type, list(x = Int32Type, y = DoubleType))
getCallingConv(f)
setCallingConv(f, 'Fast')
f = Function("kernel", VoidType, list(n = Int32Type, x = FloatPtrType, out = FloatPtrType))
setCallingConv(f, 'PTX_Kernel')
showModule(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.