LLVM API Documentation
#include <Record.h>


Public Member Functions | |
| virtual OpInit * | clone (std::vector< Init * > &Operands) const =0 |
| virtual int | getNumOperands () const =0 |
| virtual Init * | getOperand (int i) const =0 |
| virtual Init * | Fold (Record *CurRec, MultiClass *CurMultiClass) const =0 |
| virtual Init * | convertInitializerTo (RecTy *Ty) const |
| virtual Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const |
| virtual Init * | getBit (unsigned Bit) const |
Static Public Member Functions | |
| static bool | classof (const Init *I) |
Protected Member Functions | |
| OpInit (InitKind K, RecTy *Type) | |
Reimplemented from llvm::TypedInit.
Reimplemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Definition at line 855 of file Record.h.
References llvm::Init::getKind(), llvm::Init::IK_FirstOpInit, and llvm::Init::IK_LastOpInit.
Implemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Referenced by EvaluateOperation(), and ForeachHelper().
convertInitializerTo - This virtual function is a simple call-back function that should be overridden to call the appropriate RecTy::convertValue method.
Implements llvm::Init.
Definition at line 869 of file Record.h.
References llvm::RecTy::convertValue().
| virtual Init* llvm::OpInit::Fold | ( | Record * | CurRec, |
| MultiClass * | CurMultiClass | ||
| ) | const [pure virtual] |
Implemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Referenced by EvaluateOperation(), ForeachHelper(), and resolveListElementReference().
getBit - This method is used to return the initializer for the specified bit.
Implements llvm::Init.
Definition at line 721 of file Record.cpp.
References llvm::BitRecTy::get(), llvm::VarBitInit::get(), and llvm::TypedInit::getType().
| virtual int llvm::OpInit::getNumOperands | ( | ) | const [pure virtual] |
Implemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Referenced by EvaluateOperation().
| virtual Init* llvm::OpInit::getOperand | ( | int | i | ) | const [pure virtual] |
Implemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Referenced by EvaluateOperation().
| Init * OpInit::resolveListElementReference | ( | Record & | R, |
| const RecordVal * | RV, | ||
| unsigned | Elt | ||
| ) | const [virtual] |
resolveListElementReference - This method is used to implement VarListElementInit::resolveReferences. If the list element is resolvable now, we return the resolved value, otherwise we return null.
Implements llvm::TypedInit.
Definition at line 699 of file Record.cpp.
References llvm::dyn_cast(), Fold(), llvm::VarListElementInit::get(), llvm::TypedInit::resolveListElementReference(), and llvm::Init::resolveReferences().