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)

Automatically Generated Documentation

class llvm.core.FunctionType(ptr)

Represents a function type.

arg_count

Number of arguments accepted by this function.

Same as len(obj.args), but faster.

args

An iterable that yields Type objects, representing the types of the arguments accepted by this function, in order.

return_type

The type of the value returned by this function.

vararg

True if this function is variadic.

Table Of Contents

Previous topic

llvm.core.Function

Next topic

llvm.core.GlobalValue