Parse the machine instructions.
Declared in <llvm/CodeGen/MIRParser/MIParser.h>
bool
parseMachineInstructions(
PerFunctionMIParsingState& PFS,
StringRef Src,
SMDiagnostic& Error);
This function runs the second parsing pass on the machine function's body. It skips the machine basic block definitions and parses only the machine instructions and basic block attributes like liveins and successors.
The second parsing pass assumes that the first parsing pass already ran on the given source string.
true if an error occurred.
| Name | Description |
|---|---|
| PFS | - Per-function parsing state with blocks already defined. |
| Src | - Machine function body source to parse. |
| Error | - Diagnostic filled in when parsing fails. |