# NOT RUN {
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)
# }
Run the code above in your browser using DataLab