LLVM API Documentation
#include <Record.h>
Public Types | |
enum | UnaryOp { CAST, HEAD, TAIL, EMPTY } |
Public Member Functions | |
OpInit * | clone (std::vector< Init * > &Operands) const override |
int | getNumOperands () const override |
Init * | getOperand (int i) const override |
UnaryOp | getOpcode () const |
Init * | getOperand () const |
Init * | Fold (Record *CurRec, MultiClass *CurMultiClass) const override |
Init * | resolveReferences (Record &R, const RecordVal *RV) const override |
std::string | getAsString () const override |
getAsString - Convert this value to a string form. | |
Static Public Member Functions | |
static bool | classof (const Init *I) |
static UnOpInit * | get (UnaryOp opc, Init *lhs, RecTy *Type) |
static bool llvm::UnOpInit::classof | ( | const Init * | I | ) | [inline, static] |
Reimplemented from llvm::OpInit.
Definition at line 906 of file Record.h.
References llvm::Init::getKind(), and llvm::Init::IK_UnOpInit.
OpInit* llvm::UnOpInit::clone | ( | std::vector< Init * > & | Operands | ) | const [inline, override, virtual] |
Implements llvm::OpInit.
Definition at line 912 of file Record.h.
References get(), getOpcode(), and llvm::TypedInit::getType().
Init * UnOpInit::Fold | ( | Record * | CurRec, |
MultiClass * | CurMultiClass | ||
) | const [override, virtual] |
Implements llvm::OpInit.
Definition at line 764 of file Record.cpp.
References llvm::sys::path::const_iterator::begin, llvm::sys::path::begin(), CAST, EMPTY, llvm::sys::path::const_iterator::end, llvm::sys::path::end(), llvm::StringInit::get(), get(), llvm::DefInit::get(), getAsString(), getDef(), llvm::Record::getLoc(), getOpcode(), llvm::Record::getRecords(), llvm::TypedInit::getType(), llvm::RecordVal::getType(), llvm::Record::getValue(), HEAD, llvm::Record::isTemplateArg(), Name, llvm::PrintFatalError(), llvm::QualifyName(), llvm::MultiClass::Rec, and TAIL.
Referenced by resolveReferences().
UnOpInit * UnOpInit::get | ( | UnaryOp | opc, |
Init * | lhs, | ||
RecTy * | Type | ||
) | [static] |
Definition at line 753 of file Record.cpp.
References I.
Referenced by clone(), llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), Fold(), and resolveReferences().
std::string UnOpInit::getAsString | ( | ) | const [override, virtual] |
getAsString - Convert this value to a string form.
Implements llvm::Init.
Definition at line 876 of file Record.cpp.
References CAST, EMPTY, llvm::RecTy::getAsString(), llvm::Init::getAsString(), llvm::TypedInit::getType(), HEAD, and TAIL.
Referenced by Fold().
int llvm::UnOpInit::getNumOperands | ( | ) | const [inline, override, virtual] |
Implements llvm::OpInit.
UnaryOp llvm::UnOpInit::getOpcode | ( | ) | const [inline] |
Definition at line 924 of file Record.h.
Referenced by clone(), llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), Fold(), and resolveReferences().
Init* llvm::UnOpInit::getOperand | ( | int | i | ) | const [inline, override, virtual] |
Implements llvm::OpInit.
Definition at line 919 of file Record.h.
References getOperand().
Referenced by llvm::StringRecTy::convertValue(), and llvm::DagRecTy::convertValue().
Init* llvm::UnOpInit::getOperand | ( | ) | const [inline] |
Definition at line 925 of file Record.h.
Referenced by getOperand().
Init * UnOpInit::resolveReferences | ( | Record & | R, |
const RecordVal * | RV | ||
) | const [override, virtual] |
resolveReferences - This method is used by classes that refer to other variables which may not be defined at the time the expression is formed. If a value is set for the variable later, this method will be called on users of the value to allow the value to propagate out.
Reimplemented from llvm::Init.
Definition at line 868 of file Record.cpp.
References Fold(), get(), getOpcode(), llvm::TypedInit::getType(), and llvm::Init::resolveReferences().