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

#include <DerivedTypes.h>

Inheritance diagram for llvm::FunctionType:
Inheritance graph
Collaboration diagram for llvm::FunctionType:
Collaboration graph

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
ArrayRef< Type * > params () 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 139 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 380 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 393 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 386 of file Type.cpp.

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

bool llvm::FunctionType::isVarArg ( ) const [inline]
ArrayRef<Type *> llvm::FunctionType::params ( ) const [inline]

Definition at line 126 of file DerivedTypes.h.

References llvm::makeArrayRef().

Referenced by llvm::RemapInstruction().

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