LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions
llvm::FunctionType Class Reference

#include <DerivedTypes.h>

Inheritance diagram for llvm::FunctionType:
Inheritance graph
[legend]
Collaboration diagram for llvm::FunctionType:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Type::subtype_iterator param_iterator

Public Member Functions

bool isVarArg () const
TypegetReturnType () const
param_iterator param_begin () const
param_iterator param_end () const
TypegetParamType (unsigned i) const
 Parameter type accessors.
unsigned getNumParams () const

Static Public Member Functions

static FunctionTypeget (Type *Result, ArrayRef< Type * > Params, bool isVarArg)
static FunctionTypeget (Type *Result, bool isVarArg)
static bool isValidReturnType (Type *RetTy)
static bool isValidArgumentType (Type *ArgTy)
static bool classof (const Type *T)
 Methods for support type inquiry through isa, cast, and dyn_cast.

Detailed Description

FunctionType - Class to represent function types

Definition at line 96 of file DerivedTypes.h.


Member Typedef Documentation

Definition at line 123 of file DerivedTypes.h.


Member Function Documentation

static bool llvm::FunctionType::classof ( const Type T) [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast.

Definition at line 136 of file DerivedTypes.h.

References llvm::Type::FunctionTyID, and llvm::Type::getTypeID().

FunctionType * FunctionType::get ( Type Result,
ArrayRef< Type * >  Params,
bool  isVarArg 
) [static]
FunctionType * FunctionType::get ( Type Result,
bool  isVarArg 
) [static]

FunctionType::get - Create a FunctionType taking no parameters.

Definition at line 376 of file Type.cpp.

References isVarArg(), and llvm::None.

isValidArgumentType - Return true if the specified type is valid as an argument type.

Definition at line 389 of file Type.cpp.

References llvm::Type::isFirstClassType().

bool FunctionType::isValidReturnType ( Type RetTy) [static]

isValidReturnType - Return true if the specified type is valid as a return type.

Definition at line 382 of file Type.cpp.

References llvm::Type::isFunctionTy(), llvm::Type::isLabelTy(), and llvm::Type::isMetadataTy().

bool llvm::FunctionType::isVarArg ( ) const [inline]

Definition at line 124 of file DerivedTypes.h.

References llvm::Type::ContainedTys.

Referenced by LLVMGetParamTypes(), and llvm::TypePrinting::print().


The documentation for this class was generated from the following files: