diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-11 18:21:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-11 18:21:29 +0000 |
commit | 4fe16d607d11e29d742208894909733f5ad01f8f (patch) | |
tree | a669ba57373e87d31c3af6f301fe4a61f773f4b3 | |
parent | 34dceb47573b0aedd188b5e72bb848ba29a4960f (diff) |
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
46 files changed, 542 insertions, 542 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index e8d1460d8f..337a62c511 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -102,13 +102,13 @@ public: static ConstantInt *CI = 0; if (CI) return CI; return CI = new ConstantInt(getType(), - Val ^ (getType() == Type::BoolTy ? 1 : -1)); + Val ^ (getType() == Type::Int1Ty ? 1 : -1)); } /// @returns the value of this ConstantInt only if it's a boolean type. /// @brief return the boolean value of this constant. inline bool getBoolValue() const { - assert(getType() == Type::BoolTy && "Should be a boolean constant!"); + assert(getType() == Type::Int1Ty && "Should be a boolean constant!"); return static_cast<bool>(getZExtValue()); } @@ -137,7 +137,7 @@ public: /// @returns true iff this constant's bits are all set to true. /// @brief Determine if the value is all ones. virtual bool isAllOnesValue() const { - if (getType() == Type::BoolTy) return getBoolValue() == true; + if (getType() == Type::Int1Ty) return getBoolValue() == true; return getSExtValue() == -1; } @@ -147,7 +147,7 @@ public: /// by this type. /// @brief Determine if the value is maximal. virtual bool isMaxValue(bool isSigned) const { - if (getType() == Type::BoolTy) return getBoolValue() == true; + if (getType() == Type::Int1Ty) return getBoolValue() == true; if (isSigned) { int64_t V = getSExtValue(); if (V < 0) return false; // Be careful about wrap-around on 'long's @@ -163,7 +163,7 @@ public: /// this type. /// @brief Determine if the value is minimal. virtual bool isMinValue(bool isSigned) const { - if (getType() == Type::BoolTy) return getBoolValue() == false; + if (getType() == Type::Int1Ty) return getBoolValue() == false; if (isSigned) { int64_t V = getSExtValue(); if (V > 0) return false; // Be careful about wrap-around on 'long's diff --git a/include/llvm/ExecutionEngine/GenericValue.h b/include/llvm/ExecutionEngine/GenericValue.h index 9a162cafce..9cd0672e93 100644 --- a/include/llvm/ExecutionEngine/GenericValue.h +++ b/include/llvm/ExecutionEngine/GenericValue.h @@ -22,7 +22,7 @@ namespace llvm { typedef uintptr_t PointerTy; union GenericValue { - bool BoolVal; + bool Int1Val; unsigned char Int8Val; unsigned short Int16Val; unsigned int Int32Val; diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index e08fe2d4d5..ca6725b648 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -64,7 +64,7 @@ class LLVMPackedType<ValueType VT, int numelts, LLVMType elty> } def llvm_void_ty : LLVMType<isVoid, "Type::VoidTyID">; -def llvm_bool_ty : LLVMType<i1 , "Type::BoolTyID">; +def llvm_i1_ty : LLVMType<i1 , "Type::Int1TyID">; def llvm_i8_ty : LLVMType<i8 , "Type::Int8TyID">; def llvm_i16_ty : LLVMType<i16, "Type::Int16TyID">; def llvm_i32_ty : LLVMType<i32, "Type::Int32TyID">; diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 0f481bbf19..6880cddf23 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -342,7 +342,7 @@ public: switch (Ty->getTypeID()) { default: assert(0 && "Unknown type!"); case Type::VoidTyID: return MVT::isVoid; - case Type::BoolTyID: return MVT::i1; + case Type::Int1TyID: return MVT::i1; case Type::Int8TyID: return MVT::i8; case Type::Int16TyID: return MVT::i16; case Type::Int32TyID: return MVT::i32; diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 0c1b1d58bc..29180a00e5 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -71,7 +71,7 @@ public: /// enum TypeID { // PrimitiveTypes .. make sure LastPrimitiveTyID stays up to date - VoidTyID = 0 , BoolTyID, // 0, 1: Basics... + VoidTyID = 0 , Int1TyID, // 0, 1: Basics... Int8TyID, // 2 : 8 bit type... Int16TyID, // 3 : 16 bit type... Int32TyID, // 4 : 32 bit type... @@ -165,9 +165,9 @@ public: bool isInteger() const { return ID >= Int8TyID && ID <= Int64TyID; } /// isIntegral - Returns true if this is an integral type, which is either - /// BoolTy or one of the Integer types. + /// Int1Ty or one of the Integer types. /// - bool isIntegral() const { return isInteger() || this == BoolTy; } + bool isIntegral() const { return isInteger() || this == Int1Ty; } /// isFloatingPoint - Return true if this is one of the two floating point /// types @@ -209,7 +209,7 @@ public: /// bool isSized() const { // If it's a primitive, it is always sized. - if (ID >= BoolTyID && ID <= DoubleTyID || ID == PointerTyID) + if (ID >= Int1TyID && ID <= DoubleTyID || ID == PointerTyID) return true; // If it is not something that can have a size (e.g. a function or label), // it doesn't have a size. @@ -248,7 +248,7 @@ public: /// will be promoted to if passed through a variable argument /// function. const Type *getVAArgsPromotedType() const { - if (ID == BoolTyID || ID == Int8TyID || ID == Int16TyID) + if (ID == Int1TyID || ID == Int8TyID || ID == Int16TyID) return Type::Int32Ty; else if (ID == FloatTyID) return Type::DoubleTy; @@ -288,7 +288,7 @@ public: //===--------------------------------------------------------------------===// // These are the builtin types that are always available... // - static Type *VoidTy , *BoolTy; + static Type *VoidTy , *Int1Ty; static Type *Int8Ty , *Int16Ty, *Int32Ty, *Int64Ty; static Type *FloatTy, *DoubleTy; diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 179f069716..ebe4cec60e 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -435,7 +435,7 @@ BasicAliasAnalysis::alias(const Value *V1, unsigned V1Size, BasePtr->getType())->getElementType()->isSized()) { for (unsigned i = 0; i != GEPOperands.size(); ++i) if (!isa<ConstantInt>(GEPOperands[i]) || - GEPOperands[i]->getType() == Type::BoolTy) + GEPOperands[i]->getType() == Type::Int1Ty) GEPOperands[i] = Constant::getNullValue(GEPOperands[i]->getType()); int64_t Offset = @@ -610,14 +610,14 @@ BasicAliasAnalysis::CheckGEPInstructions( if (GEP1Ops.size() > MinOperands) { for (unsigned i = FirstConstantOper; i != MaxOperands; ++i) if (isa<ConstantInt>(GEP1Ops[i]) && - GEP1Ops[i]->getType() != Type::BoolTy && + GEP1Ops[i]->getType() != Type::Int1Ty && !cast<Constant>(GEP1Ops[i])->isNullValue()) { // Yup, there's a constant in the tail. Set all variables to // constants in the GEP instruction to make it suiteable for // TargetData::getIndexedOffset. for (i = 0; i != MaxOperands; ++i) if (!isa<ConstantInt>(GEP1Ops[i]) || - GEP1Ops[i]->getType() == Type::BoolTy) + GEP1Ops[i]->getType() == Type::Int1Ty) GEP1Ops[i] = Constant::getNullValue(GEP1Ops[i]->getType()); // Okay, now get the offset. This is the relative offset for the full // instruction. @@ -670,7 +670,7 @@ BasicAliasAnalysis::CheckGEPInstructions( const Value *Op2 = i < GEP2Ops.size() ? GEP2Ops[i] : 0; // If they are equal, use a zero index... if (Op1 == Op2 && BasePtr1Ty == BasePtr2Ty) { - if (!isa<ConstantInt>(Op1) || Op1->getType() == Type::BoolTy) + if (!isa<ConstantInt>(Op1) || Op1->getType() == Type::Int1Ty) GEP1Ops[i] = GEP2Ops[i] = Constant::getNullValue(Op1->getType()); // Otherwise, just keep the constants we have. } else { diff --git a/lib/Analysis/ConstantRange.cpp b/lib/Analysis/ConstantRange.cpp index 1d49e22472..6c2dce03aa 100644 --- a/lib/Analysis/ConstantRange.cpp +++ b/lib/Analysis/ConstantRange.cpp @@ -31,7 +31,7 @@ using namespace llvm; static ConstantInt *getMaxValue(const Type *Ty, bool isSigned = false) { - if (Ty == Type::BoolTy) + if (Ty == Type::Int1Ty) return ConstantInt::getTrue(); if (Ty->isInteger()) { if (isSigned) { @@ -48,7 +48,7 @@ static ConstantInt *getMaxValue(const Type *Ty, bool isSigned = false) { // Static constructor to create the minimum constant for an integral type... static ConstantInt *getMinValue(const Type *Ty, bool isSigned = false) { - if (Ty == Type::BoolTy) + if (Ty == Type::Int1Ty) return ConstantInt::getFalse(); if (Ty->isInteger()) { if (isSigned) { @@ -63,7 +63,7 @@ static ConstantInt *getMinValue(const Type *Ty, bool isSigned = false) { return 0; } static ConstantInt *Next(ConstantInt *CI) { - if (CI->getType() == Type::BoolTy) + if (CI->getType() == Type::Int1Ty) return ConstantInt::get(!CI->getBoolValue()); Constant *Result = ConstantExpr::getAdd(CI, @@ -205,7 +205,7 @@ ConstantInt *ConstantRange::getSingleElement() const { /// uint64_t ConstantRange::getSetSize() const { if (isEmptySet()) return 0; - if (getType() == Type::BoolTy) { + if (getType() == Type::Int1Ty) { if (Lower != Upper) // One of T or F in the set... return 1; return 2; // Must be full set... diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 9fcbf8c75e..ad16acc9b4 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1930,7 +1930,7 @@ ComputeIterationCountExhaustively(const Loop *L, Value *Cond, bool ExitWhen) { dyn_cast_or_null<ConstantInt>(EvaluateExpression(Cond, PHIVal)); // Couldn't symbolically evaluate. - if (!CondVal || CondVal->getType() != Type::BoolTy) return UnknownValue; + if (!CondVal || CondVal->getType() != Type::Int1Ty) return UnknownValue; if (CondVal->getBoolValue() == ExitWhen) { ConstantEvolutionLoopExitValue[PN] = PHIVal; diff --git a/lib/AsmParser/Lexer.cpp.cvs b/lib/AsmParser/Lexer.cpp.cvs index cc66a3f462..55d32cdc22 100644 --- a/lib/AsmParser/Lexer.cpp.cvs +++ b/lib/AsmParser/Lexer.cpp.cvs @@ -881,7 +881,7 @@ goto find_rule; \ #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; -#line 1 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 1 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" #define INITIAL 0 /*===-- Lexer.l - Scanner for llvm assembly files --------------*- C++ -*--===// // @@ -896,7 +896,7 @@ char *yytext; // //===----------------------------------------------------------------------===*/ #define YY_NEVER_INTERACTIVE 1 -#line 28 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 28 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" #include "ParserInternals.h" #include "llvm/Module.h" #include <list> @@ -1180,7 +1180,7 @@ YY_DECL register char *yy_cp = NULL, *yy_bp = NULL; register int yy_act; -#line 186 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 186 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" #line 1187 "Lexer.cpp" @@ -1243,7 +1243,7 @@ yy_match: yy_find_action: yy_current_state = *--yy_state_ptr; yy_lp = yy_accept[yy_current_state]; -find_rule: /* we branch to this label when backing up */ + for ( ; ; ) /* until we find what rule we matched */ { if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) @@ -1276,627 +1276,627 @@ do_action: /* This label is used only to access EOF actions. */ { /* beginning of action switch */ case 1: YY_RULE_SETUP -#line 188 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 188 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { /* Ignore comments for now */ } YY_BREAK case 2: YY_RULE_SETUP -#line 190 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 190 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return BEGINTOK; } YY_BREAK case 3: YY_RULE_SETUP -#line 191 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 191 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return ENDTOK; } YY_BREAK case 4: YY_RULE_SETUP -#line 192 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 192 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return TRUETOK; } YY_BREAK case 5: YY_RULE_SETUP -#line 193 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 193 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return FALSETOK; } YY_BREAK case 6: YY_RULE_SETUP -#line 194 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 194 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DECLARE; } YY_BREAK case 7: YY_RULE_SETUP -#line 195 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 195 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DEFINE; } YY_BREAK case 8: YY_RULE_SETUP -#line 196 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 196 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return GLOBAL; } YY_BREAK case 9: YY_RULE_SETUP -#line 197 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 197 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return CONSTANT; } YY_BREAK case 10: YY_RULE_SETUP -#line 198 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 198 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return INTERNAL; } YY_BREAK case 11: YY_RULE_SETUP -#line 199 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 199 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return LINKONCE; } YY_BREAK case 12: YY_RULE_SETUP -#line 200 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 200 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return WEAK; } YY_BREAK case 13: YY_RULE_SETUP -#line 201 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 201 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return APPENDING; } YY_BREAK case 14: YY_RULE_SETUP -#line 202 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 202 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DLLIMPORT; } YY_BREAK case 15: YY_RULE_SETUP -#line 203 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 203 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DLLEXPORT; } YY_BREAK case 16: YY_RULE_SETUP -#line 204 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 204 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return EXTERN_WEAK; } YY_BREAK case 17: YY_RULE_SETUP -#line 205 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 205 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return EXTERNAL; } YY_BREAK case 18: YY_RULE_SETUP -#line 206 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 206 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return IMPLEMENTATION; } YY_BREAK case 19: YY_RULE_SETUP -#line 207 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 207 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return ZEROINITIALIZER; } YY_BREAK case 20: YY_RULE_SETUP -#line 208 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 208 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DOTDOTDOT; } YY_BREAK case 21: YY_RULE_SETUP -#line 209 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 209 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return UNDEF; } YY_BREAK case 22: YY_RULE_SETUP -#line 210 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 210 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return NULL_TOK; } YY_BREAK case 23: YY_RULE_SETUP -#line 211 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 211 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return TO; } YY_BREAK case 24: YY_RULE_SETUP -#line 212 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 212 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return TAIL; } YY_BREAK case 25: YY_RULE_SETUP -#line 213 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 213 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return TARGET; } YY_BREAK case 26: YY_RULE_SETUP -#line 214 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 214 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return TRIPLE; } YY_BREAK case 27: YY_RULE_SETUP -#line 215 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 215 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DEPLIBS; } YY_BREAK case 28: YY_RULE_SETUP -#line 216 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 216 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return ENDIAN; } YY_BREAK case 29: YY_RULE_SETUP -#line 217 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 217 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return POINTERSIZE; } YY_BREAK case 30: YY_RULE_SETUP -#line 218 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 218 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return DATALAYOUT; } YY_BREAK case 31: YY_RULE_SETUP -#line 219 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 219 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return LITTLE; } YY_BREAK case 32: YY_RULE_SETUP -#line 220 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 220 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return BIG; } YY_BREAK case 33: YY_RULE_SETUP -#line 221 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 221 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return VOLATILE; } YY_BREAK case 34: YY_RULE_SETUP -#line 222 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 222 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return ALIGN; } YY_BREAK case 35: YY_RULE_SETUP -#line 223 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 223 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return SECTION; } YY_BREAK case 36: YY_RULE_SETUP -#line 224 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 224 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return MODULE; } YY_BREAK case 37: YY_RULE_SETUP -#line 225 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 225 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return ASM_TOK; } YY_BREAK case 38: YY_RULE_SETUP -#line 226 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 226 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return SIDEEFFECT; } YY_BREAK case 39: YY_RULE_SETUP -#line 228 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 228 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return CC_TOK; } YY_BREAK case 40: YY_RULE_SETUP -#line 229 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 229 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return CCC_TOK; } YY_BREAK case 41: YY_RULE_SETUP -#line 230 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 230 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return CSRETCC_TOK; } YY_BREAK case 42: YY_RULE_SETUP -#line 231 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 231 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return FASTCC_TOK; } YY_BREAK case 43: YY_RULE_SETUP -#line 232 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 232 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return COLDCC_TOK; } YY_BREAK case 44: YY_RULE_SETUP -#line 233 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 233 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return X86_STDCALLCC_TOK; } YY_BREAK case 45: YY_RULE_SETUP -#line 234 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 234 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return X86_FASTCALLCC_TOK; } YY_BREAK case 46: YY_RULE_SETUP -#line 236 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 236 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::VoidTy, VOID); } YY_BREAK case 47: YY_RULE_SETUP -#line 237 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" -{ RET_TY(Type::BoolTy, BOOL); } +#line 237 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" +{ RET_TY(Type::Int1Ty, BOOL); } YY_BREAK case 48: YY_RULE_SETUP -#line 238 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 238 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::Int8Ty, INT8); } YY_BREAK case 49: YY_RULE_SETUP -#line 239 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 239 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::Int16Ty, INT16); } YY_BREAK case 50: YY_RULE_SETUP -#line 240 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 240 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::Int32Ty, INT32); } YY_BREAK case 51: YY_RULE_SETUP -#line 241 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 241 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::Int64Ty, INT64); } YY_BREAK case 52: YY_RULE_SETUP -#line 242 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 242 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::FloatTy, FLOAT); } YY_BREAK case 53: YY_RULE_SETUP -#line 243 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 243 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::DoubleTy,DOUBLE);} YY_BREAK case 54: YY_RULE_SETUP -#line 244 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 244 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TY(Type::LabelTy, LABEL); } YY_BREAK case 55: YY_RULE_SETUP -#line 245 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 245 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return TYPE; } YY_BREAK case 56: YY_RULE_SETUP -#line 246 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 246 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { return OPAQUE; } YY_BREAK case 57: YY_RULE_SETUP -#line 248 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 248 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(BinaryOpVal, Add, ADD); } YY_BREAK case 58: YY_RULE_SETUP -#line 249 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 249 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(BinaryOpVal, Sub, SUB); } YY_BREAK case 59: YY_RULE_SETUP -#line 250 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 250 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(BinaryOpVal, Mul, MUL); } YY_BREAK case 60: YY_RULE_SETUP -#line 251 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 251 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(BinaryOpVal, UDiv, UDIV); } YY_BREAK case 61: YY_RULE_SETUP -#line 252 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 252 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(BinaryOpVal, SDiv, SDIV); } YY_BREAK case 62: YY_RULE_SETUP -#line 253 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 253 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(BinaryOpVal, FDiv, FDIV); } YY_BREAK case 63: YY_RULE_SETUP -#line 254 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l" +#line 254 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l" { RET_TOK(Binar |