40 "instantiated from multiclass");
167 PrintError(
Loc,
"assert condition must of type bit, bits, or int.");
170 if (!CondValue->getValue()) {
172 StringRef AssertMsg = MessageInit ? MessageInit->getValue()
173 :
"(assert message is not a 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.
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.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
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)
auto dyn_cast_or_null(const Y &Val)
void PrintWarning(const Twine &Msg)
void PrintNote(const Twine &Msg)
void PrintFatalNote(const Twine &Msg)
void dumpMessage(SMLoc Loc, const Init *Message)