Allow information about the target to be specified in the .ll file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-04-22 19:07:06 +00:00
parent 0bc0f47845
commit b9bcbb533f
2 changed files with 28 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
%{
#include "ParserInternals.h"
#include "llvm/Module.h"
#include <list>
#include "llvmAsmParser.h"
#include <ctype.h>
@@ -176,6 +177,11 @@ null { return NULL_TOK; }
to { return TO; }
except { return EXCEPT; }
not { return NOT; } /* Deprecated, turned into XOR */
target { return TARGET; }
endian { return ENDIAN; }
pointersize { return POINTERSIZE; }
little { return LITTLE; }
big { return BIG; }
void { llvmAsmlval.PrimType = Type::VoidTy ; return VOID; }
bool { llvmAsmlval.PrimType = Type::BoolTy ; return BOOL; }