[llvm-commits] [llvm] r147859 - /llvm/trunk/lib/Target/X86/X86.td
Devang Patel
dpatel at apple.com
Tue Jan 10 09:51:54 PST 2012
Author: dpatel
Date: Tue Jan 10 11:51:54 2012
New Revision: 147859
URL: http://llvm.org/viewvc/llvm-project?rev=147859&view=rev
Log:
Add definition for intel asm variant.
Right now, this just adds additional entries in match table. The parser does not use them yet.
Modified:
llvm/trunk/lib/Target/X86/X86.td
Modified: llvm/trunk/lib/Target/X86/X86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86.td?rev=147859&r1=147858&r2=147859&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86.td (original)
+++ llvm/trunk/lib/Target/X86/X86.td Tue Jan 10 11:51:54 2012
@@ -263,6 +263,16 @@
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 @@
// Information about the instructions...
let InstructionSet = X86InstrInfo;
let AssemblyParsers = [ATTAsmParser];
- let AssemblyParserVariants = [ATTAsmParserVariant];
+ let AssemblyParserVariants = [ATTAsmParserVariant, IntelAsmParserVariant];
let AssemblyWriters = [ATTAsmWriter, IntelAsmWriter];
}
More information about the llvm-commits
mailing list