Information about one near‐miss encoding when instruction matching fails.
Synopsis
Declared in <llvm/MC/MCParser/MCTargetAsmParser.h>
class NearMissInfo;
Description
When matching of an assembly instruction fails, there may be multiple encodings that are close to being a match. It's often ambiguous which one the programmer intended to use, so we want to report an error which mentions each of these "near‐miss" encodings. This struct contains information about one such encoding, and why it did not match the parsed instruction.
Enums
Name |
Description |
Classification of why an encoding was a near miss. |
Member Functions
Name |
Description |
Return features required by the instruction but missing on the target. |
|
Return the near‐miss kind. |
|
Return the opcode of the encoding that was nearly matched. |
|
Return the expected operand class that did not match. |
|
Return the operand‐validation error code. |
|
Return the index of the mismatched operand in the parsed list. |
|
Return the target predicate error code for this encoding. |
|
Return true if this describes an actual near miss. |
Static Member Functions
Name |
Description |
Return a near miss for missing target features. |
|
Return a near miss for a single incorrect operand. |
|
Return a near miss from a failed target predicate. |
|
Return a success sentinel used internally by the table‐generated matcher. |
|
Return a near miss when too few operands were parsed. |
Data Members
Name |
Description |
|
Features required but not enabled for a feature near miss. |
|
Details of a single mismatched operand. |
|
Target predicate error code for a predicate near miss. |
|
Details when too few operands were provided. |
Created with MrDocs