layout: page
title: FunctionType (llvm.core)

llvm.core.FunctionType

Base Class

Properties

return_type

[read-only]

A Type object, representing the return type of the function.

vararg

[read-only]

True if the function is variadic.

args

[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)

Table Of Contents

Previous topic

llvm.core.Function

Next topic

llvm.core.GlobalValue

This Page