diff options
| -rw-r--r-- | llvm/lib/Target/X86/X86.td | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td index c76d4e51db9..3b2d27c746a 100644 --- a/llvm/lib/Target/X86/X86.td +++ b/llvm/lib/Target/X86/X86.td @@ -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];  }  | 

