summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 06:37:14 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 06:37:14 +0000
commit3d4b2907575bc6e70f558e448151f945a58aa7cc (patch)
tree718086923c04e2b051ccec1402391313f5d3d7b9 /llvm/lib/AsmParser
parent1907f4e8cc181c01dcbe730216501d5e43277148 (diff)
downloadbcm5719-llvm-3d4b2907575bc6e70f558e448151f945a58aa7cc.tar.gz
bcm5719-llvm-3d4b2907575bc6e70f558e448151f945a58aa7cc.zip
Support the new Invoke instruction
llvm-svn: 755
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/Lexer.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l
index 642496d994a..5bbe672882a 100644
--- a/llvm/lib/AsmParser/Lexer.l
+++ b/llvm/lib/AsmParser/Lexer.l
@@ -130,6 +130,8 @@ implementation { return IMPLEMENTATION; }
\.\.\. { return DOTDOTDOT; }
string { return STRING; }
null { return NULL_TOK; }
+to { return TO; }
+except { return EXCEPT; }
void { llvmAsmlval.PrimType = Type::VoidTy ; return VOID; }
bool { llvmAsmlval.PrimType = Type::BoolTy ; return BOOL; }
@@ -167,7 +169,6 @@ setgt { RET_TOK(BinaryOpVal, SetGT, SETGT); }
setle { RET_TOK(BinaryOpVal, SetLE, SETLE); }
setge { RET_TOK(BinaryOpVal, SetGE, SETGE); }
-to { return TO; }
phi { RET_TOK(OtherOpVal, PHINode, PHI); }
call { RET_TOK(OtherOpVal, Call, CALL); }
cast { RET_TOK(OtherOpVal, Cast, CAST); }
@@ -177,6 +178,7 @@ shr { RET_TOK(OtherOpVal, Shr, SHR); }
ret { RET_TOK(TermOpVal, Ret, RET); }
br { RET_TOK(TermOpVal, Br, BR); }
switch { RET_TOK(TermOpVal, Switch, SWITCH); }
+invoke { RET_TOK(TermOpVal, Invoke, INVOKE); }
malloc { RET_TOK(MemOpVal, Malloc, MALLOC); }
OpenPOWER on IntegriCloud