38 for (
SMLoc Loc : Locs)
40 "instantiated from multiclass");
167 PrintError(Loc,
"assert condition must of type bit, bits, or int.");
170 if (!CondValue->getValue()) {
171 auto *MessageInit = dyn_cast<StringInit>(Message);
172 StringRef AssertMsg = MessageInit ? MessageInit->getValue()
173 :
"(assert message is not a string)";
174 PrintError(Loc,
"assertion failed: " + AssertMsg);
182 if (
auto *MessageInit = dyn_cast<StringInit>(Message))
185 PrintError(Loc,
"dump value is not of type string");
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
bool empty() const
empty - Check if the array is empty.
const T & consume_front()
consume_front() - Returns the first element and drops it from ArrayRef.
virtual const Init * convertInitializerTo(const RecTy *Ty) const =0
Convert to a value whose type is Ty, or return null if this is not possible.
RecordKeeper & getRecordKeeper() const
Get the record keeper that initialized this Init.
static const 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.
LLVM_ABI 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.
StringRef - Represent a constant reference to a string, i.e.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
static LLVM_ABI raw_ostream & warning()
Convenience method for printing "warning: " to stderr.
static LLVM_ABI raw_ostream & error()
Convenience method for printing "error: " to stderr.
static LLVM_ABI raw_ostream & note()
Convenience method for printing "note: " to stderr.
An efficient, type-erasing, non-owning reference to a callable.
This class implements an extremely fast bulk output stream that can only output to a stream.
LLVM_ABI 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)
static void PrintMessage(ArrayRef< SMLoc > Locs, SourceMgr::DiagKind Kind, const Twine &Msg)
bool CheckAssert(SMLoc Loc, const Init *Condition, const Init *Message)
void PrintWarning(const Twine &Msg)
void PrintNote(const Twine &Msg)
void PrintFatalNote(const Twine &Msg)
void dumpMessage(SMLoc Loc, const Init *Message)