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 |
Init * | convertInitializerTo (RecTy *Ty) const override |
Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override |
Init * | getBit (unsigned Bit) const override |
Static Public Member Functions | |
static bool | classof (const Init *I) |
Protected Member Functions | |
OpInit (InitKind K, RecTy *Type) |
static bool llvm::OpInit::classof | ( | const Init * | I | ) | [inline, static] |
Reimplemented from llvm::TypedInit.
Reimplemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Definition at line 865 of file Record.h.
References llvm::Init::getKind(), llvm::Init::IK_FirstOpInit, and llvm::Init::IK_LastOpInit.
virtual OpInit* llvm::OpInit::clone | ( | std::vector< Init * > & | Operands | ) | const [pure virtual] |
Implemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.
Referenced by EvaluateOperation(), and ForeachHelper().
Init* llvm::OpInit::convertInitializerTo | ( | RecTy * | Ty | ) | const [inline, override, virtual] |
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 879 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().
Init * OpInit::getBit | ( | unsigned | Bit | ) | const [override, virtual] |
getBit - This method is used to return the initializer for the specified bit.
Implements llvm::Init.
Definition at line 747 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 [override, 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 725 of file Record.cpp.
References llvm::dyn_cast(), Fold(), llvm::VarListElementInit::get(), llvm::TypedInit::resolveListElementReference(), and llvm::Init::resolveReferences().