projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AsmParser turns 'not' instructions into 'xor' instructions now.
[oota-llvm.git]
/
lib
/
AsmParser
/
Lexer.l
diff --git
a/lib/AsmParser/Lexer.l
b/lib/AsmParser/Lexer.l
index b8373250a74d0ebff166e4717e0a5113e75d6fc3..1613e5f7798cefbf3d70c2ec42cc80a7992ed98d 100644
(file)
--- a/
lib/AsmParser/Lexer.l
+++ b/
lib/AsmParser/Lexer.l
@@
-1,8
+1,8
@@
-/*===-- Lexer.l - Scanner for llvm assembly files --------------
--*- C++ -*--
=//
+/*===-- Lexer.l - Scanner for llvm assembly files --------------
*- C++ -*--==
=//
//
// This file implements the flex scanner for LLVM assembly languages files.
//
//
// This file implements the flex scanner for LLVM assembly languages files.
//
-//===----------------------------------------------------------------------
--
=*/
+//===----------------------------------------------------------------------
==
=*/
%option prefix="llvmAsm"
%option yylineno
%option prefix="llvmAsm"
%option yylineno
@@
-162,6
+162,7
@@
string { return STRING; }
null { return NULL_TOK; }
to { return TO; }
except { return EXCEPT; }
null { return NULL_TOK; }
to { return TO; }
except { return EXCEPT; }
+not { return NOT; } /* Deprecated, turned into XOR */
void { llvmAsmlval.PrimType = Type::VoidTy ; return VOID; }
bool { llvmAsmlval.PrimType = Type::BoolTy ; return BOOL; }
void { llvmAsmlval.PrimType = Type::VoidTy ; return VOID; }
bool { llvmAsmlval.PrimType = Type::BoolTy ; return BOOL; }
@@
-179,9
+180,6
@@
type { llvmAsmlval.PrimType = Type::TypeTy ; return TYPE; }
label { llvmAsmlval.PrimType = Type::LabelTy ; return LABEL; }
opaque { return OPAQUE; }
label { llvmAsmlval.PrimType = Type::LabelTy ; return LABEL; }
opaque { return OPAQUE; }
-
-not { RET_TOK(UnaryOpVal, Not, NOT); }
-
add { RET_TOK(BinaryOpVal, Add, ADD); }
sub { RET_TOK(BinaryOpVal, Sub, SUB); }
mul { RET_TOK(BinaryOpVal, Mul, MUL); }
add { RET_TOK(BinaryOpVal, Add, ADD); }
sub { RET_TOK(BinaryOpVal, Sub, SUB); }
mul { RET_TOK(BinaryOpVal, Mul, MUL); }