Check TableGen assert condition Condition at Loc.
Declared in <llvm/TableGen/Error.h>
bool
CheckAssert(
SMLoc Loc,
Init const* Condition,
Init const* Message);
If Condition is not an integer-like init or evaluates to false, prints a nonfatal error (using Message when it is a string) and returns true.
true if the assert failed or was ill-formed; false otherwise.
| Name | Description |
|---|---|
| Loc | Source location of the assert. |
| Condition | Init expected to convert to a bit/bits/int condition. |
| Message | Init holding the assert failure message when a string. |