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)