LLVM API Documentation
#include "llvm/TableGen/Record.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/TableGen/Error.h"
Go to the source code of this file.
Classes | |
class | llvm::TableGenStringKey |
struct | llvm::DenseMapInfo< TableGenStringKey > |
Specialize DenseMapInfo for TableGenStringKey. More... | |
Namespaces | |
namespace | llvm |
List of target independent CodeGen pass IDs. | |
Functions | |
static bool | canFitInBitfield (int64_t Value, unsigned NumBits) |
static void | ProfileBitsInit (FoldingSetNodeID &ID, ArrayRef< Init * > Range) |
static Init * | fixBitInit (const RecordVal *RV, Init *Before, Init *After) |
static void | ProfileListInit (FoldingSetNodeID &ID, ArrayRef< Init * > Range, RecTy *EltTy) |
static Init * | ForeachHelper (Init *LHS, Init *MHS, Init *RHS, RecTy *Type, Record *CurRec, MultiClass *CurMultiClass) |
static Init * | EvaluateOperation (OpInit *RHSo, Init *LHS, Init *Arg, RecTy *Type, Record *CurRec, MultiClass *CurMultiClass) |
static void | ProfileDagInit (FoldingSetNodeID &ID, Init *V, const std::string &VN, ArrayRef< Init * > ArgRange, ArrayRef< std::string > NameRange) |
static bool canFitInBitfield | ( | int64_t | Value, |
unsigned | NumBits | ||
) | [static] |
canFitInBitfield - Return true if the number of bits is large enough to hold the integer value.
Definition at line 173 of file Record.cpp.
Referenced by llvm::BitsRecTy::convertValue().
static Init* EvaluateOperation | ( | OpInit * | RHSo, |
Init * | LHS, | ||
Init * | Arg, | ||
RecTy * | Type, | ||
Record * | CurRec, | ||
MultiClass * | CurMultiClass | ||
) | [static] |
Definition at line 1048 of file Record.cpp.
References llvm::OpInit::clone(), llvm::dyn_cast(), llvm::OpInit::Fold(), ForeachHelper(), llvm::RecTy::getAsString(), llvm::Init::getAsString(), llvm::OpInit::getNumOperands(), llvm::OpInit::getOperand(), and llvm::TypedInit::getType().
Referenced by ForeachHelper().
Definition at line 519 of file Record.cpp.
References llvm::UnsetInit::get().
Referenced by llvm::BitsInit::resolveReferences().
static Init * ForeachHelper | ( | Init * | LHS, |
Init * | MHS, | ||
Init * | RHS, | ||
RecTy * | Type, | ||
Record * | CurRec, | ||
MultiClass * | CurMultiClass | ||
) | [static] |
Definition at line 1086 of file Record.cpp.
References llvm::OpInit::clone(), llvm::dyn_cast(), EvaluateOperation(), llvm::OpInit::Fold(), llvm::ListInit::get(), llvm::DagInit::get(), llvm::DagInit::getArg(), llvm::DagInit::getArgName(), llvm::Init::getAsString(), llvm::Record::getLoc(), llvm::DagInit::getNumArgs(), llvm::DagInit::getOperator(), llvm::PrintFatalError(), and Type.
Referenced by EvaluateOperation(), and llvm::TernOpInit::Fold().
static void ProfileBitsInit | ( | FoldingSetNodeID & | ID, |
ArrayRef< Init * > | Range | ||
) | [static] |
Definition at line 461 of file Record.cpp.
References llvm::FoldingSetNodeID::AddInteger(), llvm::FoldingSetNodeID::AddPointer(), llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), and llvm::ArrayRef< T >::size().
Referenced by llvm::BitsInit::get(), and llvm::BitsInit::Profile().
static void ProfileDagInit | ( | FoldingSetNodeID & | ID, |
Init * | V, | ||
const std::string & | VN, | ||
ArrayRef< Init * > | ArgRange, | ||
ArrayRef< std::string > | NameRange | ||
) | [static] |
Definition at line 1555 of file Record.cpp.
References llvm::FoldingSetNodeID::AddPointer(), llvm::FoldingSetNodeID::AddString(), llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), and Name.
Referenced by llvm::DagInit::get(), and llvm::DagInit::Profile().
static void ProfileListInit | ( | FoldingSetNodeID & | ID, |
ArrayRef< Init * > | Range, | ||
RecTy * | EltTy | ||
) | [static] |
Definition at line 623 of file Record.cpp.
References llvm::FoldingSetNodeID::AddInteger(), llvm::FoldingSetNodeID::AddPointer(), llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), and llvm::ArrayRef< T >::size().
Referenced by llvm::ListInit::get(), and llvm::ListInit::Profile().