Build a C function signature from an LLVM function type.
Source code in xdsl/jit/llvm/c_type_context.py
| def to_c_func_type(ctx: CTypeContext, func_type: LLVMFunctionType):
"""Build a C function signature from an LLVM function type."""
if func_type.is_variadic:
raise JITException(f"Variadic function types are not supported: {func_type}")
return ctx.to_c_func_type(func_type.inputs, func_type.output)
|