class RecordVal
Declaration
class RecordVal { /* full declaration omitted */ };
Description
This class represents a field in a record, including its name, type, value, and source location.
Declared at: llvm/include/llvm/TableGen/Record.h:1464
Member Variables
- private llvm::Init* Name
- private llvm::SMLoc Loc
- private PointerIntPair<llvm::RecTy*, 2, llvm::RecordVal::FieldKind> TyAndKind
- private llvm::Init* Value
- private bool IsUsed = false
Method Overview
- public RecordVal(llvm::Init * N, llvm::SMLoc Loc, llvm::RecTy * T, llvm::RecordVal::FieldKind K)
- public RecordVal(llvm::Init * N, llvm::RecTy * T, llvm::RecordVal::FieldKind K)
- public void dump() const
- public const llvm::SMLoc & getLoc() const
- public llvm::StringRef getName() const
- public llvm::Init * getNameInit() const
- public std::string getNameInitAsString() const
- public std::string getPrintType() const
- public llvm::RecordKeeper & getRecordKeeper() const
- public llvm::RecTy * getType() const
- public llvm::Init * getValue() const
- public bool isNonconcreteOK() const
- public bool isTemplateArg() const
- public bool isUsed() const
- public void print(llvm::raw_ostream & OS, bool PrintSem = true) const
- public void setUsed(bool Used)
- public bool setValue(llvm::Init * V)
- public bool setValue(llvm::Init * V, llvm::SMLoc NewLoc)
Methods
¶RecordVal(llvm::Init* N,
llvm::SMLoc Loc,
llvm::RecTy* T,
llvm::RecordVal::FieldKind K)
RecordVal(llvm::Init* N,
llvm::SMLoc Loc,
llvm::RecTy* T,
llvm::RecordVal::FieldKind K)
Declared at: llvm/include/llvm/TableGen/Record.h:1483
Parameters
- llvm::Init* N
- llvm::SMLoc Loc
- llvm::RecTy* T
- llvm::RecordVal::FieldKind K
¶RecordVal(llvm::Init* N,
llvm::RecTy* T,
llvm::RecordVal::FieldKind K)
RecordVal(llvm::Init* N,
llvm::RecTy* T,
llvm::RecordVal::FieldKind K)
Declared at: llvm/include/llvm/TableGen/Record.h:1482
Parameters
- llvm::Init* N
- llvm::RecTy* T
- llvm::RecordVal::FieldKind K
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/TableGen/Record.h:1532
¶const llvm::SMLoc& getLoc() const
const llvm::SMLoc& getLoc() const
Description
Get the source location of the point where the field was defined.
Declared at: llvm/include/llvm/TableGen/Record.h:1500
¶llvm::StringRef getName() const
llvm::StringRef getName() const
Description
Get the name of the field as a StringRef.
Declared at: llvm/include/llvm/TableGen/Record.h:1489
¶llvm::Init* getNameInit() const
llvm::Init* getNameInit() const
Description
Get the name of the field as an Init.
Declared at: llvm/include/llvm/TableGen/Record.h:1492
¶std::string getNameInitAsString() const
std::string getNameInitAsString() const
Description
Get the name of the field as a std::string.
Declared at: llvm/include/llvm/TableGen/Record.h:1495
¶std::string getPrintType() const
std::string getPrintType() const
Description
Get the type of the field for printing purposes.
Declared at: llvm/include/llvm/TableGen/Record.h:1516
¶llvm::RecordKeeper& getRecordKeeper() const
llvm::RecordKeeper& getRecordKeeper() const
Description
Get the record keeper used to unique this value.
Declared at: llvm/include/llvm/TableGen/Record.h:1486
¶llvm::RecTy* getType() const
llvm::RecTy* getType() const
Description
Get the type of the field value as a RecTy.
Declared at: llvm/include/llvm/TableGen/Record.h:1513
¶llvm::Init* getValue() const
llvm::Init* getValue() const
Description
Get the value of the field as an Init.
Declared at: llvm/include/llvm/TableGen/Record.h:1519
¶bool isNonconcreteOK() const
bool isNonconcreteOK() const
Description
Is this a field where nonconcrete values are okay?
Declared at: llvm/include/llvm/TableGen/Record.h:1503
¶bool isTemplateArg() const
bool isTemplateArg() const
Description
Is this a template argument?
Declared at: llvm/include/llvm/TableGen/Record.h:1508
¶bool isUsed() const
bool isUsed() const
Declared at: llvm/include/llvm/TableGen/Record.h:1530
¶void print(llvm::raw_ostream& OS,
bool PrintSem = true) const
void print(llvm::raw_ostream& OS,
bool PrintSem = true) const
Description
Print the value to an output stream, possibly with a semicolon.
Declared at: llvm/include/llvm/TableGen/Record.h:1535
Parameters
- llvm::raw_ostream& OS
- bool PrintSem = true
¶void setUsed(bool Used)
void setUsed(bool Used)
Description
Whether this value is used. Useful for reporting warnings, for example when a template argument is unused.
Declared at: llvm/include/llvm/TableGen/Record.h:1529
Parameters
- bool Used
¶bool setValue(llvm::Init* V)
bool setValue(llvm::Init* V)
Description
Set the value of the field from an Init.
Declared at: llvm/include/llvm/TableGen/Record.h:1522
Parameters
- llvm::Init* V
¶bool setValue(llvm::Init* V, llvm::SMLoc NewLoc)
bool setValue(llvm::Init* V, llvm::SMLoc NewLoc)
Description
Set the value and source location of the field.
Declared at: llvm/include/llvm/TableGen/Record.h:1525
Parameters
- llvm::Init* V
- llvm::SMLoc NewLoc