Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
| include/llvm/MC/MCParser/MCAsmParser.h | ||
|---|---|---|
| 43 | Preferred enum style is enum IdKind {
IK_Invalid, // Initial state. Unexpected after a successful parsing.
IK_Label, // Function/Label reference.
IK_EnumVal, // Value of enumration type.
IK_Var // Variable.
}; | |
| lib/Target/X86/AsmParser/X86AsmParser.cpp | ||
| 589 | if (IDInfo.isKind(InlineAsmIdentifierInfo::EnumValKind)) return onInteger(IDInfo.Enum.EnumVal, ErrMsg); | |
| 595 | // Treat a symbolic constant like an integer if (auto *CE = dyn_cast<MCConstantExpr>(SymRef)) return onInteger(CE->getValue(), ErrMsg); | |
| 1275 | This looks like its a NFC commit that can be done separately | |
| include/llvm/MC/MCParser/MCAsmParser.h | ||
|---|---|---|
| 43 | accepted | |
| lib/Target/X86/AsmParser/X86AsmParser.cpp | ||
| 1275 | can you be a bit more specific regarding the exact part which can be commited as a NFC? | |
| lib/Target/X86/AsmParser/X86AsmParser.cpp | ||
|---|---|---|
| 1275 | I meant const InlineAsmIdentifierInfo &Info could be committed right now - it's only ever used as a const already. | |
also, i'll appreciate if you may review/accept the (essential) frontend changes - D37413
Preferred enum style is
enum IdKind { IK_Invalid, // Initial state. Unexpected after a successful parsing. IK_Label, // Function/Label reference. IK_EnumVal, // Value of enumration type. IK_Var // Variable. };