• Home
  • Raw
  • Download

Lines Matching refs:Error

60           return Error(MDList[i].Loc, "use of undefined metadata '!" +  in ValidateEndOfModule()
81 return Error(Fn.Loc, "unknown function referenced by blockaddress"); in ValidateEndOfModule()
94 return Error(NumberedTypes[i].second, in ValidateEndOfModule()
100 return Error(I->second.second, in ValidateEndOfModule()
104 return Error(ForwardRefVals.begin()->second.second, in ValidateEndOfModule()
109 return Error(ForwardRefValIDs.begin()->second.second, in ValidateEndOfModule()
114 return Error(ForwardRefMDNodes.begin()->second.second, in ValidateEndOfModule()
138 return Error(Refs[i].first.Loc, in ResolveForwardRefBlockAddresses()
146 return Error(Refs[i].first.Loc, in ResolveForwardRefBlockAddresses()
312 return Error(TypeLoc, "non-struct types may not be recursive"); in ParseUnnamedType()
339 return Error(NameLoc, "non-struct types may not be recursive"); in ParseNamedType()
398 return Error(Lex.getLoc(), "variable expected to be numbered '%" + in ParseUnnamedGlobal()
581 return Error(LinkageLoc, "invalid linkage type for alias"); in ParseAlias()
593 return Error(AliaseeLoc, "invalid aliasee"); in ParseAlias()
598 return Error(AliaseeLoc, "alias must have pointer type"); in ParseAlias()
614 return Error(NameLoc, "redefinition of global named '@" + Name + "'"); in ParseAlias()
619 return Error(NameLoc, in ParseAlias()
672 return Error(TyLoc, "invalid type for global variable"); in ParseGlobal()
680 return Error(NameLoc, "redefinition of global '@" + Name + "'"); in ParseGlobal()
697 return Error(TyLoc, in ParseGlobal()
749 Error(Loc, "global variable reference must have pointer type"); in GetGlobalVal()
769 Error(Loc, "'@" + Name + "' defined with type '" + in GetGlobalVal()
789 Error(Loc, "global variable reference must have pointer type"); in GetGlobalVal()
807 Error(Loc, "'@" + Twine(ID) + "' defined with type '" + in GetGlobalVal()
885 return Error(AttrLoc, "invalid use of function-only attribute"); in ParseOptionalAttrs()
891 return Error(AttrLoc, "invalid use of attribute on a function"); in ParseOptionalAttrs()
894 return Error(AttrLoc, "invalid use of parameter-only attribute"); in ParseOptionalAttrs()
1114 return Error(AlignLoc, "alignment is not a power of two"); in ParseOptionalAlignment()
1116 return Error(AlignLoc, "huge alignments are not supported yet"); in ParseOptionalAlignment()
1137 return Error(Lex.getLoc(), "expected metadata or 'align'"); in ParseOptionalCommaAlign()
1180 return Error(ParenLoc, "expected '('"); in ParseOptionalStackAlignment()
1185 return Error(ParenLoc, "expected ')'"); in ParseOptionalStackAlignment()
1187 return Error(AlignLoc, "stack alignment is not a power of two"); in ParseOptionalStackAlignment()
1295 return Error(TypeLoc, "void type only allowed for function results"); in ParseType()
1403 return Error(TypeLoc, "argument can not have void type"); in ParseArgumentList()
1411 return Error(TypeLoc, "invalid type for function argument"); in ParseArgumentList()
1427 return Error(TypeLoc, "argument can not have void type"); in ParseArgumentList()
1437 return Error(TypeLoc, "invalid type for function argument"); in ParseArgumentList()
1462 return Error(ArgList[i].Loc, "argument name invalid in function type"); in ParseFunctionType()
1464 return Error(ArgList[i].Loc, in ParseFunctionType()
1492 return Error(TypeLoc, "redefinition of type"); in ParseStructDefinition()
1515 return Error(TypeLoc, "forward references to non-struct type"); in ParseStructDefinition()
1563 return Error(EltTyLoc, "invalid element type for struct"); in ParseStructBody()
1570 return Error(EltTyLoc, "invalid element type for struct"); in ParseStructBody()
1605 return Error(SizeLoc, "zero element vector is illegal"); in ParseArrayVectorType()
1607 return Error(SizeLoc, "size too large for vector"); in ParseArrayVectorType()
1609 return Error(TypeLoc, in ParseArrayVectorType()
1614 return Error(TypeLoc, "invalid array element type"); in ParseArrayVectorType()
1680 return P.Error(ForwardRefVals.begin()->second.second, in FinishFunction()
1684 return P.Error(ForwardRefValIDs.begin()->second.second, in FinishFunction()
1712 P.Error(Loc, "'%" + Name + "' is not a basic block"); in GetVal()
1714 P.Error(Loc, "'%" + Name + "' defined with type '" + in GetVal()
1721 P.Error(Loc, "invalid use of a non-first-class type"); in GetVal()
1754 P.Error(Loc, "'%" + Twine(ID) + "' is not a basic block"); in GetVal()
1756 P.Error(Loc, "'%" + Twine(ID) + "' defined with type '" + in GetVal()
1762 P.Error(Loc, "invalid use of a non-first-class type"); in GetVal()
1785 return P.Error(NameLoc, "instructions returning void cannot have a name"); in SetInstName()
1797 return P.Error(NameLoc, "instruction expected to be numbered '%" + in SetInstName()
1804 return P.Error(NameLoc, "instruction forward referenced with type '" + in SetInstName()
1820 return P.Error(NameLoc, "instruction forward referenced with type '" + in SetInstName()
1831 return P.Error(NameLoc, "multiple definition of local value named '" + in SetInstName()
1966 return Error(ID.Loc, "constant vector must not be empty"); in ParseValID()
1971 return Error(FirstEltLoc, in ParseValID()
1977 return Error(FirstEltLoc, in ParseValID()
2002 return Error(FirstEltLoc, "invalid array element type: " + in ParseValID()
2010 return Error(FirstEltLoc, in ParseValID()
2058 return Error(Fn.Loc, "expected function name in blockaddress"); in ParseValID()
2060 return Error(Label.Loc, "expected basic block name in blockaddress"); in ParseValID()
2095 return Error(ID.Loc, "invalid cast opcode for cast from '" + in ParseValID()
2114 return Error(ID.Loc, "extractvalue operand must be aggregate type"); in ParseValID()
2116 return Error(ID.Loc, "invalid indices for extractvalue"); in ParseValID()
2133 return Error(ID.Loc, "insertvalue operand must be aggregate type"); in ParseValID()
2135 return Error(ID.Loc, "invalid indices for insertvalue"); in ParseValID()
2154 return Error(ID.Loc, "compare operands must have the same type"); in ParseValID()
2160 return Error(ID.Loc, "fcmp requires floating point operands"); in ParseValID()
2166 return Error(ID.Loc, "icmp requires pointer or integer operands"); in ParseValID()
2217 return Error(ID.Loc, "operands of constexpr must have same type"); in ParseValID()
2220 return Error(ModifierLoc, "nuw only applies to integer operations"); in ParseValID()
2222 return Error(ModifierLoc, "nsw only applies to integer operations"); in ParseValID()
2237 return Error(ID.Loc, "constexpr requires integer operands"); in ParseValID()
2245 return Error(ID.Loc, "constexpr requires fp operands"); in ParseValID()
2273 return Error(ID.Loc, "operands of constexpr must have same type"); in ParseValID()
2275 return Error(ID.Loc, in ParseValID()
2301 return Error(ID.Loc, "getelementptr requires pointer operand"); in ParseValID()
2305 return Error(ID.Loc, "invalid indices for getelementptr"); in ParseValID()
2310 return Error(ID.Loc, "expected three operands to select"); in ParseValID()
2313 return Error(ID.Loc, Reason); in ParseValID()
2317 return Error(ID.Loc, "expected three operands to shufflevector"); in ParseValID()
2319 return Error(ID.Loc, "invalid operands to shufflevector"); in ParseValID()
2324 return Error(ID.Loc, "expected two operands to extractelement"); in ParseValID()
2326 return Error(ID.Loc, "invalid extractelement operands"); in ParseValID()
2331 return Error(ID.Loc, "expected three operands to insertelement"); in ParseValID()
2333 return Error(ID.Loc, "invalid insertelement operands"); in ParseValID()
2355 return Error(ID.Loc, "global values must be constants"); in ParseGlobalValue()
2438 return Error(ID.Loc, "functions are not values, refer to them as pointers"); in ConvertValIDToValue()
2442 if (!PFS) return Error(ID.Loc, "invalid use of function-local name"); in ConvertValIDToValue()
2446 if (!PFS) return Error(ID.Loc, "invalid use of function-local name"); in ConvertValIDToValue()
2454 return Error(ID.Loc, "invalid type for inline asm constraint string"); in ConvertValIDToValue()
2460 return Error(ID.Loc, "metadata value must have metadata type"); in ConvertValIDToValue()
2465 return Error(ID.Loc, "metadata value must have metadata type"); in ConvertValIDToValue()
2476 return Error(ID.Loc, "integer constant must have integer type"); in ConvertValIDToValue()
2483 return Error(ID.Loc, "floating point constant invalid for type"); in ConvertValIDToValue()
2499 return Error(ID.Loc, "floating point constant does not have type '" + in ConvertValIDToValue()
2505 return Error(ID.Loc, "null must be a pointer type"); in ConvertValIDToValue()
2511 return Error(ID.Loc, "invalid type for undef constant"); in ConvertValIDToValue()
2516 return Error(ID.Loc, "invalid empty array initializer"); in ConvertValIDToValue()
2522 return Error(ID.Loc, "invalid type for null constant"); in ConvertValIDToValue()
2527 return Error(ID.Loc, "constant expression type mismatch"); in ConvertValIDToValue()
2535 return Error(ID.Loc, in ConvertValIDToValue()
2538 return Error(ID.Loc, "packed'ness of initializer and type don't match"); in ConvertValIDToValue()
2543 return Error(ID.Loc, "element " + Twine(i) + in ConvertValIDToValue()
2549 return Error(ID.Loc, "constant expression type mismatch"); in ConvertValIDToValue()
2574 return Error(Loc, "expected a basic block"); in ParseTypeAndBasicBlock()
2608 return Error(LinkageLoc, "invalid linkage for function definition"); in ParseFunctionHeader()
2622 return Error(LinkageLoc, "invalid linkage for function declaration"); in ParseFunctionHeader()
2626 return Error(LinkageLoc, "invalid function linkage type"); in ParseFunctionHeader()
2630 return Error(RetTypeLoc, "invalid function return type"); in ParseFunctionHeader()
2698 return Error(RetTypeLoc, "functions with 'sret' argument must return void"); in ParseFunctionHeader()
2713 return Error(FRVI->second.second, "invalid forward reference to " in ParseFunctionHeader()
2719 return Error(NameLoc, "invalid redefinition of function '" + in ParseFunctionHeader()
2722 return Error(NameLoc, "redefinition of function '@" + FunctionName + "'"); in ParseFunctionHeader()
2733 return Error(NameLoc, "type of definition and forward reference of '@" + in ParseFunctionHeader()
2766 return Error(ArgList[i].Loc, "redefinition of argument '%" + in ParseFunctionHeader()
2884 default: return Error(Loc, "expected instruction opcode"); in ParseInstruction()
3026 return Error(TypeLoc, "value doesn't match function result type '" + in ParseRet()
3037 return Error(TypeLoc, "value doesn't match function result type '" + in ParseRet()
3060 return Error(Loc, "branch condition must have 'i1' type"); in ParseBr()
3088 return Error(CondLoc, "switch condition must have integer type"); in ParseSwitch()
3103 return Error(CondLoc, "duplicate case value in switch"); in ParseSwitch()
3105 return Error(CondLoc, "case value is not a constant integer"); in ParseSwitch()
3131 return Error(AddrLoc, "indirectbr address must have pointer type"); in ParseIndirectBr()
3198 return Error(RetTypeLoc, "Invalid result type for LLVM function"); in ParseInvoke()
3224 return Error(ArgList[i].Loc, "too many arguments specified"); in ParseInvoke()
3228 return Error(ArgList[i].Loc, "argument is not of expected type '" + in ParseInvoke()
3236 return Error(CallLoc, "not enough parameters specified for call"); in ParseInvoke()
3292 return Error(Loc, "invalid operand type for instruction"); in ParseArithmetic()
3309 return Error(Loc,"instruction requires integer or integer vector operands"); in ParseLogical()
3333 return Error(Loc, "fcmp requires floating point operands"); in ParseCompare()
3339 return Error(Loc, "icmp requires integer operands"); in ParseCompare()
3364 return Error(Loc, "invalid cast opcode for cast from '" + in ParseCast()
3385 return Error(Loc, Reason); in ParseSelect()
3403 return Error(TypeLoc, "va_arg requires operand with first class type"); in ParseVA_Arg()
3420 return Error(Loc, "invalid extractelement operands"); in ParseExtractElement()
3439 return Error(Loc, "invalid insertelement operands"); in ParseInsertElement()
3458 return Error(Loc, "invalid shufflevector operands"); in ParseShuffleVector()
3500 return Error(TypeLoc, "phi node must have first class type"); in ParsePHI()
3546 Error(VLoc, "'catch' clause has an invalid type"); in ParseLandingPad()
3549 Error(VLoc, "'filter' clause has an invalid type"); in ParseLandingPad()
3594 return Error(RetTypeLoc, "Invalid result type for LLVM function"); in ParseCall()
3620 return Error(ArgList[i].Loc, "too many arguments specified"); in ParseCall()
3624 return Error(ArgList[i].Loc, "argument is not of expected type '" + in ParseCall()
3632 return Error(CallLoc, "not enough parameters specified for call"); in ParseCall()
3675 return Error(SizeLoc, "element count must have integer type"); in ParseAlloc()
3711 return Error(Loc, "load operand must be a pointer to a first class type"); in ParseLoad()
3713 return Error(Loc, "atomic load must have explicit non-zero alignment"); in ParseLoad()
3715 return Error(Loc, "atomic load cannot use Release ordering"); in ParseLoad()
3753 return Error(PtrLoc, "store operand must be a pointer"); in ParseStore()
3755 return Error(Loc, "store operand must be a first class value"); in ParseStore()
3757 return Error(Loc, "stored value and pointer type do not match"); in ParseStore()
3759 return Error(Loc, "atomic store must have explicit non-zero alignment"); in ParseStore()
3761 return Error(Loc, "atomic store cannot use Acquire ordering"); in ParseStore()
3791 return Error(PtrLoc, "cmpxchg operand must be a pointer"); in ParseCmpXchg()
3793 return Error(CmpLoc, "compare value and pointer type do not match"); in ParseCmpXchg()
3795 return Error(NewLoc, "new value and pointer type do not match"); in ParseCmpXchg()
3797 return Error(NewLoc, "cmpxchg operand must be an integer"); in ParseCmpXchg()
3800 return Error(NewLoc, "cmpxchg operand must be power-of-two byte-sized" in ParseCmpXchg()
3849 return Error(PtrLoc, "atomicrmw operand must be a pointer"); in ParseAtomicRMW()
3851 return Error(ValLoc, "atomicrmw value and pointer type do not match"); in ParseAtomicRMW()
3853 return Error(ValLoc, "atomicrmw operand must be an integer"); in ParseAtomicRMW()
3856 return Error(ValLoc, "atomicrmw operand must be power-of-two byte-sized" in ParseAtomicRMW()
3895 return Error(Loc, "base of getelementptr must be a pointer"); in ParseGetElementPtr()
3906 return Error(EltLoc, "getelementptr index must be an integer"); in ParseGetElementPtr()
3908 return Error(EltLoc, "getelementptr index type missmatch"); in ParseGetElementPtr()
3913 return Error(EltLoc, in ParseGetElementPtr()
3920 return Error(EltLoc, "vector getelementptrs must have a single index"); in ParseGetElementPtr()
3923 return Error(Loc, "invalid getelementptr indices"); in ParseGetElementPtr()
3941 return Error(Loc, "extractvalue operand must be aggregate type"); in ParseExtractValue()
3944 return Error(Loc, "invalid indices for extractvalue"); in ParseExtractValue()
3962 return Error(Loc0, "insertvalue operand must be aggregate type"); in ParseInsertValue()
3965 return Error(Loc0, "invalid indices for insertvalue"); in ParseInsertValue()