reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/AsmParser/LLParser.cpp
 3070   ID.Loc = Lex.getLoc();
 3074     ID.UIntVal = Lex.getUIntVal();
 3075     ID.Kind = ValID::t_GlobalID;
 3078     ID.StrVal = Lex.getStrVal();
 3079     ID.Kind = ValID::t_GlobalName;
 3082     ID.UIntVal = Lex.getUIntVal();
 3083     ID.Kind = ValID::t_LocalID;
 3086     ID.StrVal = Lex.getStrVal();
 3087     ID.Kind = ValID::t_LocalName;
 3090     ID.APSIntVal = Lex.getAPSIntVal();
 3091     ID.Kind = ValID::t_APSInt;
 3094     ID.APFloatVal = Lex.getAPFloatVal();
 3095     ID.Kind = ValID::t_APFloat;
 3098     ID.ConstantVal = ConstantInt::getTrue(Context);
 3099     ID.Kind = ValID::t_Constant;
 3102     ID.ConstantVal = ConstantInt::getFalse(Context);
 3103     ID.Kind = ValID::t_Constant;
 3105   case lltok::kw_null: ID.Kind = ValID::t_Null; break;
 3106   case lltok::kw_undef: ID.Kind = ValID::t_Undef; break;
 3107   case lltok::kw_zeroinitializer: ID.Kind = ValID::t_Zero; break;
 3108   case lltok::kw_none: ID.Kind = ValID::t_None; break;
 3118     ID.ConstantStructElts = std::make_unique<Constant *[]>(Elts.size());
 3119     ID.UIntVal = Elts.size();
 3120     memcpy(ID.ConstantStructElts.get(), Elts.data(),
 3122     ID.Kind = ValID::t_ConstantStruct;
 3140       ID.ConstantStructElts = std::make_unique<Constant *[]>(Elts.size());
 3141       memcpy(ID.ConstantStructElts.get(), Elts.data(),
 3143       ID.UIntVal = Elts.size();
 3144       ID.Kind = ValID::t_PackedConstantStruct;
 3149       return Error(ID.Loc, "constant vector must not be empty");
 3164     ID.ConstantVal = ConstantVector::get(Elts);
 3165     ID.Kind = ValID::t_Constant;
 3180       ID.Kind = ValID::t_EmptyArray;
 3198     ID.ConstantVal = ConstantArray::get(ATy, Elts);
 3199     ID.Kind = ValID::t_Constant;
 3204     ID.ConstantVal = ConstantDataArray::getString(Context, Lex.getStrVal(),
 3207     ID.Kind = ValID::t_Constant;
 3218         ParseStringConstant(ID.StrVal) ||
 3222     ID.StrVal2 = Lex.getStrVal();
 3223     ID.UIntVal = unsigned(HasSideEffect) | (unsigned(AlignStack)<<1) |
 3225     ID.Kind = ValID::t_InlineAsm;
 3276       ID.ConstantVal = FwdRef;
 3277       ID.Kind = ValID::t_Constant;
 3301     ID.ConstantVal = BlockAddress::get(F, BB);
 3302     ID.Kind = ValID::t_Constant;
 3330       return Error(ID.Loc, "invalid cast opcode for cast from '" +
 3333     ID.ConstantVal = ConstantExpr::getCast((Instruction::CastOps)Opc,
 3335     ID.Kind = ValID::t_Constant;
 3349       return Error(ID.Loc, "extractvalue operand must be aggregate type");
 3351       return Error(ID.Loc, "invalid indices for extractvalue");
 3352     ID.ConstantVal = ConstantExpr::getExtractValue(Val, Indices);
 3353     ID.Kind = ValID::t_Constant;
 3368       return Error(ID.Loc, "insertvalue operand must be aggregate type");
 3372       return Error(ID.Loc, "invalid indices for insertvalue");
 3374       return Error(ID.Loc, "insertvalue operand and field disagree in type: '" +
 3378     ID.ConstantVal = ConstantExpr::getInsertValue(Val0, Val1, Indices);
 3379     ID.Kind = ValID::t_Constant;
 3396       return Error(ID.Loc, "compare operands must have the same type");
 3402         return Error(ID.Loc, "fcmp requires floating point operands");
 3403       ID.ConstantVal = ConstantExpr::getFCmp(Pred, Val0, Val1);
 3408         return Error(ID.Loc, "icmp requires pointer or integer operands");
 3409       ID.ConstantVal = ConstantExpr::getICmp(Pred, Val0, Val1);
 3411     ID.Kind = ValID::t_Constant;
 3429         return Error(ID.Loc, "constexpr requires fp operands");
 3435     ID.ConstantVal = C;
 3436     ID.Kind = ValID::t_Constant;
 3482       return Error(ID.Loc, "operands of constexpr must have same type");
 3496         return Error(ID.Loc, "constexpr requires integer operands");
 3504         return Error(ID.Loc, "constexpr requires fp operands");
 3513     ID.ConstantVal = C;
 3514     ID.Kind = ValID::t_Constant;
 3532       return Error(ID.Loc, "operands of constexpr must have same type");
 3534       return Error(ID.Loc,
 3536     ID.ConstantVal = ConstantExpr::get(Opc, Val0, Val1);
 3537     ID.Kind = ValID::t_Constant;
 3574         return Error(ID.Loc, "base of getelementptr must be a pointer");
 3590           return Error(ID.Loc, "getelementptr index must be an integer");
 3595                 ID.Loc,
 3605         return Error(ID.Loc, "base element of getelementptr must be sized");
 3608         return Error(ID.Loc, "invalid getelementptr indices");
 3612           return Error(ID.Loc,
 3617       ID.ConstantVal = ConstantExpr::getGetElementPtr(Ty, Elts[0], Indices,
 3621         return Error(ID.Loc, "expected three operands to select");
 3624         return Error(ID.Loc, Reason);
 3625       ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]);
 3628         return Error(ID.Loc, "expected three operands to shufflevector");
 3630         return Error(ID.Loc, "invalid operands to shufflevector");
 3631       ID.ConstantVal =
 3635         return Error(ID.Loc, "expected two operands to extractelement");
 3637         return Error(ID.Loc, "invalid extractelement operands");
 3638       ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]);
 3642       return Error(ID.Loc, "expected three operands to insertelement");
 3644         return Error(ID.Loc, "invalid insertelement operands");
 3645       ID.ConstantVal =
 3649     ID.Kind = ValID::t_Constant;