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

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.

Created with MrDocs