layout: page |
title: FunctionType (llvm.core) |
[read-only]
Returns an iterable object that yields Type objects that represent, in order, the types of the arguments accepted by the function. Used like this:
func_type = Type.function( Type.int(), [
Type.int(), Type.int() ] ) for arg in func_type.args: assert arg.kind
== TYPE_INTEGER assert arg == Type.int() assert func_type.arg_count
== len(func_type.args)
Represents a function type.
Number of arguments accepted by this function.
Same as len(obj.args), but faster.
An iterable that yields Type objects, representing the types of the arguments accepted by this function, in order.
The type of the value returned by this function.
True if this function is variadic.