[llvm] r179325 - [ms-inline asm] Add a new AsmRewriteKind, AOK_Delete. To be used in a future

Chad Rosier mcrosier at apple.com
Thu Apr 11 15:00:03 PDT 2013


Author: mcrosier
Date: Thu Apr 11 17:00:03 2013
New Revision: 179325

URL: http://llvm.org/viewvc/llvm-project?rev=179325&view=rev
Log:
[ms-inline asm] Add a new AsmRewriteKind, AOK_Delete.  To be used in a future
commit.
Part of rdar://13453209

Modified:
    llvm/trunk/include/llvm/MC/MCTargetAsmParser.h

Modified: llvm/trunk/include/llvm/MC/MCTargetAsmParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCTargetAsmParser.h?rev=179325&r1=179324&r2=179325&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCTargetAsmParser.h (original)
+++ llvm/trunk/include/llvm/MC/MCTargetAsmParser.h Thu Apr 11 17:00:03 2013
@@ -22,7 +22,8 @@ class MCInst;
 template <typename T> class SmallVectorImpl;
 
 enum AsmRewriteKind {
-  AOK_Align = 0,      // Rewrite align as .align.
+  AOK_Delete = 0,     // Rewrite should be ignored.
+  AOK_Align,          // Rewrite align as .align.
   AOK_DotOperator,    // Rewrite a dot operator expression as an immediate.
                       // E.g., [eax].foo.bar -> [eax].8
   AOK_Emit,           // Rewrite _emit as .byte.
@@ -35,15 +36,16 @@ enum AsmRewriteKind {
 };
 
 const char AsmRewritePrecedence [] = {
-  0, // AOK_Align
-  0, // AOK_DotOperator
-  0, // AOK_Emit
-  2, // AOK_Imm
-  2, // AOK_ImmPrefix
-  1, // AOK_Input
-  1, // AOK_Output
-  3, // AOK_SizeDirective
-  0  // AOK_Skip
+  0, // AOK_Delete
+  1, // AOK_Align
+  1, // AOK_DotOperator
+  1, // AOK_Emit
+  3, // AOK_Imm
+  3, // AOK_ImmPrefix
+  2, // AOK_Input
+  2, // AOK_Output
+  4, // AOK_SizeDirective
+  1  // AOK_Skip
 };
 
 struct AsmRewrite {





More information about the llvm-commits mailing list