[llvm] r299453 - [X86][inline-asm] Add support for MS 'EVEN' directive

Coby Tayree via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 10:57:23 PDT 2017


Author: coby
Date: Tue Apr  4 12:57:23 2017
New Revision: 299453

URL: http://llvm.org/viewvc/llvm-project?rev=299453&view=rev
Log:
[X86][inline-asm] Add support for MS 'EVEN' directive

MS assembly syntax provide us with the 'EVEN' directive as a synonymous to at&t '.even'.
This patch include the (small, simple) changes need to allow it.

Test is provided at the following (clang-side) review:
https://reviews.llvm.org/D27418

Differential Revision: https://reviews.llvm.org/D27417


Modified:
    llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=299453&r1=299452&r2=299453&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Tue Apr  4 12:57:23 2017
@@ -1980,7 +1980,7 @@ bool AsmParser::parseStatement(ParseStat
   if (ParsingInlineAsm && (IDVal == "align" || IDVal == "ALIGN"))
     return parseDirectiveMSAlign(IDLoc, Info);
 
-  if (ParsingInlineAsm && (IDVal == "even"))
+  if (ParsingInlineAsm && (IDVal == "even" || IDVal == "EVEN"))
     Info.AsmRewrites->emplace_back(AOK_EVEN, IDLoc, 4);
   if (checkForValidSection())
     return true;




More information about the llvm-commits mailing list