38 for (
unsigned i = 1; i < Loc.
size(); ++i)
40 "instantiated from multiclass");
163 PrintError(Loc,
"assert condition must of type bit, bits, or int.");
164 else if (!CondValue->getValue()) {
166 if (
auto *MessageInit = dyn_cast<StringInit>(Message))
169 PrintNote(
"(assert message is not a string)");
175 auto *MessageInit = dyn_cast<StringInit>(Message);
177 PrintError(Loc,
"dump value is not of type string");
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
const T & front() const
front - Get the first element.
size_t size() const
size - Get the array size.
bool empty() const
empty - Check if the array is empty.
RecordKeeper & getRecordKeeper() const
Get the record keeper that initialized this Init.
virtual Init * convertInitializerTo(RecTy *Ty) const =0
Convert to a value whose type is Ty, or return null if this is not possible.
static IntRecTy * get(RecordKeeper &RK)
This class represents a field in a record, including its name, type, value, and source location.
const SMLoc & getLoc() const
Get the source location of the point where the field was defined.
ArrayRef< SMLoc > getLoc() const
Represents a location in source code.
static SMLoc getFromPointer(const char *Ptr)
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind, const Twine &Msg, ArrayRef< SMRange > Ranges={}, ArrayRef< SMFixIt > FixIts={}, bool ShowColors=true) const
Emit a message about the specified location with the specified string.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
static raw_ostream & warning()
Convenience method for printing "warning: " to stderr.
static raw_ostream & error()
Convenience method for printing "error: " to stderr.
static raw_ostream & note()
Convenience method for printing "note: " to stderr.
void RunInterruptHandlers()
This function runs all the registered interrupt handlers, including the removal of files registered b...
This is an optimization pass for GlobalISel generic memory operations.
void PrintFatalError(const Twine &Msg)
void PrintError(const Twine &Msg)
void PrintWarning(const Twine &Msg)
void CheckAssert(SMLoc Loc, Init *Condition, Init *Message)
static void PrintMessage(ArrayRef< SMLoc > Loc, SourceMgr::DiagKind Kind, const Twine &Msg)
void dumpMessage(SMLoc Loc, Init *Message)
void PrintNote(const Twine &Msg)
void PrintFatalNote(const Twine &Msg)