llvm::CheckAssert

Check TableGen assert condition Condition at Loc.

Synopsis

Declared in <llvm/TableGen/Error.h>

bool
CheckAssert(
    SMLoc Loc,
    Init const* Condition,
    Init const* Message);

Description

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.

Return Value

true if the assert failed or was ill-formed; false otherwise.

Parameters

NameDescription
LocSource location of the assert.
ConditionInit expected to convert to a bit/bits/int condition.
MessageInit holding the assert failure message when a string.