LLVM API Documentation
#include <DerivedTypes.h>
Inheritance diagram for llvm::FunctionType:


Public Types | |
| typedef Type::subtype_iterator | param_iterator |
Public Member Functions | |
| bool | isVarArg () const |
| const Type * | getReturnType () const |
| param_iterator | param_begin () const |
| param_iterator | param_end () const |
| const Type * | getParamType (unsigned i) const |
| unsigned | getNumParams () const |
| virtual void | refineAbstractType (const DerivedType *OldTy, const Type *NewTy) |
| virtual void | typeBecameConcrete (const DerivedType *AbsTy) |
Static Public Member Functions | |
| FunctionType * | get (const Type *Result, const std::vector< const Type * > &Params, bool isVarArg) |
| bool | isValidReturnType (const Type *RetTy) |
| bool | classof (const FunctionType *) |
| bool | classof (const Type *T) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
Friends | |
| class | TypeMap<FunctionValType, FunctionType> |
Definition at line 139 of file DerivedTypes.h.
|
|
Definition at line 165 of file DerivedTypes.h. Referenced by calcTypeName(), getTypeDescription(), LLVMGetParamTypes(), LLVMGetStructElementTypes(), param_begin(), param_end(), and CWriter::printStructReturnPointerFunctionType(). |
|
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::DerivedType. Definition at line 183 of file DerivedTypes.h. References llvm::Type::getTypeID(). |
|
|
Definition at line 182 of file DerivedTypes.h. |
|
||||||||||||||||
|
FunctionType::get - This static method is the primary way of constructing a FunctionType.
Definition at line 1104 of file Type.cpp. References DOUT, and FunctionTypes. Referenced by llvm::CloneFunction(). |
|
|
|
|
|
isValidReturnType - Return true if the specified type is valid as a return type. Definition at line 435 of file Type.cpp. References llvm::StructType::getElementType(), llvm::StructType::getNumElements(), and llvm::Type::isFirstClassType(). |
|
|
|
Definition at line 166 of file DerivedTypes.h. References param_iterator. Referenced by calcTypeName(), getTypeDescription(), LLVMGetParamTypes(), and CWriter::printStructReturnPointerFunctionType(). |
|
|
Definition at line 167 of file DerivedTypes.h. References param_iterator. Referenced by calcTypeName(), getTypeDescription(), LLVMGetParamTypes(), and CWriter::printStructReturnPointerFunctionType(). |
|
||||||||||||
|
refineAbstractType - The callback method invoked when an abstract type is resolved to another type. An object must override this method to update its internal state to reference NewType instead of OldType. Reimplemented from llvm::Type. Definition at line 1455 of file Type.cpp. References FunctionTypes. |
|
|
The other case which AbstractTypeUsers must be aware of is when a type makes the transition from being abstract (where it has clients on it's AbstractTypeUsers list) to concrete (where it does not). This method notifies ATU's when this occurs for a type. Reimplemented from llvm::Type. Definition at line 1460 of file Type.cpp. References FunctionTypes. |
|
|
Definition at line 140 of file DerivedTypes.h. |