mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Add definition for intel asm variant.
Right now, this just adds additional entries in match table. The parser does not use them yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56315d319c
commit
4ba0e75e4b
@ -263,6 +263,16 @@ def ATTAsmParserVariant : AsmParserVariant {
|
||||
string RegisterPrefix = "%";
|
||||
}
|
||||
|
||||
def IntelAsmParserVariant : AsmParserVariant {
|
||||
int Variant = 1;
|
||||
|
||||
// Discard comments in assembly strings.
|
||||
string CommentDelimiter = ";";
|
||||
|
||||
// Recognize hard coded registers.
|
||||
string RegisterPrefix = "";
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Assembly Printers
|
||||
//===----------------------------------------------------------------------===//
|
||||
@ -284,6 +294,6 @@ def X86 : Target {
|
||||
// Information about the instructions...
|
||||
let InstructionSet = X86InstrInfo;
|
||||
let AssemblyParsers = [ATTAsmParser];
|
||||
let AssemblyParserVariants = [ATTAsmParserVariant];
|
||||
let AssemblyParserVariants = [ATTAsmParserVariant, IntelAsmParserVariant];
|
||||
let AssemblyWriters = [ATTAsmWriter, IntelAsmWriter];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user