reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
69 return Error( 86 return Error(Lex.getLoc(), "expected end of string"); 186 return Error(ForwardRefBlockAddresses.begin()->first.Loc, 191 return Error(NT.second.second, 197 return Error(I->second.second, 201 return Error(ForwardRefComdats.begin()->second, 206 return Error(ForwardRefVals.begin()->second.second, 211 return Error(ForwardRefValIDs.begin()->second.second, 216 return Error(ForwardRefMDNodes.begin()->second.second, 276 return Error(ForwardRefValueInfos.begin()->second.front().second, 281 return Error(ForwardRefAliasees.begin()->second.front().second, 286 return Error(ForwardRefTypeIds.begin()->second.front().second, 445 return Error(TypeLoc, "non-struct types may not be recursive"); 471 return Error(NameLoc, "non-struct types may not be recursive"); 558 return Error(Lex.getLoc(), "variable expected to be numbered '%" + 652 return Error(NameLoc, "redefinition of comdat '$" + Name + "'"); 839 result = Error(Lex.getLoc(), "unexpected summary kind"); 889 return Error(NameLoc, "invalid linkage type for alias"); 892 return Error(NameLoc, 915 return Error(AliaseeLoc, "invalid aliasee"); 922 return Error(AliaseeLoc, "An alias or ifunc must have pointer type"); 926 return Error( 931 return Error( 943 return Error(NameLoc, "redefinition of global '@" + Name + "'"); 990 return Error( 1032 return Error(NameLoc, 1060 return Error(TyLoc, "invalid type for global variable"); 1069 return Error(NameLoc, "redefinition of global '@" + Name + "'"); 1086 return Error(TyLoc, 1178 return Error(AttrGrpLoc, "attribute group has no attributes"); 1199 return Error(Lex.getLoc(), "unterminated attribute group"); 1210 Error(Lex.getLoc(), 1334 Error(Lex.getLoc(), 1351 Error(Lex.getLoc(), 1390 Error(Loc, "'" + Name + "' is not a basic block"); 1392 Error(Loc, "'" + Name + "' defined with type '" + 1405 Error(Loc, "global variable reference must have pointer type"); 1436 Error(Loc, "global variable reference must have pointer type"); 1685 HaveError |= Error(Lex.getLoc(), "invalid use of function-only attribute"); 1746 HaveError |= Error(Lex.getLoc(), "invalid use of parameter-only attribute"); 1784 HaveError |= Error(Lex.getLoc(), "invalid use of function-only attribute"); 1789 HaveError |= Error(Lex.getLoc(), "invalid use of attribute on return type"); 1852 return Error(Lex.getLoc(), "dso_location and DLL-StorageClass mismatch"); 2084 return Error(AlignLoc, "alignment is not a power of two"); 2086 return Error(AlignLoc, "huge alignments are not supported yet"); 2107 return Error(ParenLoc, "expected '('"); 2112 return Error(ParenLoc, "expected ')'"); 2114 return Error(DerefLoc, "dereferenceable bytes must be non-zero"); 2135 return Error(Lex.getLoc(), "expected metadata or 'align'"); 2162 return Error(Lex.getLoc(), "expected metadata or 'addrspace'"); 2177 return Error(StartParen, "expected '('"); 2188 return Error(HowManyAt, 2196 return Error(EndParen, "expected ')'"); 2222 return Error(StartParenAt, "Expected '(' in syncscope"); 2227 return Error(SSNAt, "Expected synchronization scope name"); 2231 return Error(EndParenAt, "Expected ')' in syncscope"); 2270 return Error(ParenLoc, "expected '('"); 2275 return Error(ParenLoc, "expected ')'"); 2277 return Error(AlignLoc, "stack alignment is not a power of two"); 2384 return Error(TypeLoc, "void type only allowed for function results"); 2493 return Error(Lex.getLoc(), "expected ')'"); 2545 return Error(BeginLoc, "operand bundle set must not be empty"); 2582 return Error(TypeLoc, "argument can not have void type"); 2589 return Error(TypeLoc, "argument expected to be numbered '%" + 2596 return Error(TypeLoc, "invalid type for function argument"); 2614 return Error(TypeLoc, "argument can not have void type"); 2622 return Error(TypeLoc, "argument expected to be numbered '%" + 2631 return Error(TypeLoc, "invalid type for function argument"); 2658 return Error(ArgList[i].Loc, "argument name invalid in function type"); 2660 return Error(ArgList[i].Loc, 2688 return Error(TypeLoc, "redefinition of type"); 2711 return Error(TypeLoc, "forward references to non-struct type"); 2758 return Error(EltTyLoc, "invalid element type for struct"); 2765 return Error(EltTyLoc, "invalid element type for struct"); 2811 return Error(SizeLoc, "zero element vector is illegal"); 2813 return Error(SizeLoc, "size too large for vector"); 2815 return Error(TypeLoc, "invalid vector element type"); 2819 return Error(TypeLoc, "invalid array element type"); 2861 return P.Error(ForwardRefVals.begin()->second.second, 2865 return P.Error(ForwardRefValIDs.begin()->second.second, 2893 P.Error(Loc, "invalid use of a non-first-class type"); 2927 P.Error(Loc, "invalid use of a non-first-class type"); 2951 return P.Error(NameLoc, "instructions returning void cannot have a name"); 2963 return P.Error(NameLoc, "instruction expected to be numbered '%" + 2970 return P.Error(NameLoc, "instruction forward referenced with type '" + 2987 return P.Error(NameLoc, "instruction forward referenced with type '" + 2999 return P.Error(NameLoc, "multiple definition of local value named '" + 3025 P.Error(Loc, "label expected to be numbered '" + 3031 P.Error(Loc, "unable to create block numbered '" + 3038 P.Error(Loc, "unable to create block named '" + Name + "'"); 3149 return Error(ID.Loc, "constant vector must not be empty"); 3154 return Error(FirstEltLoc, 3160 return Error(FirstEltLoc, 3185 return Error(FirstEltLoc, "invalid array element type: " + 3193 return Error(FirstEltLoc, 3243 return Error(Fn.Loc, "expected function name in blockaddress"); 3245 return Error(Label.Loc, "expected basic block name in blockaddress"); 3259 return Error(Fn.Loc, "expected function name in blockaddress"); 3262 return Error(Fn.Loc, "cannot take blockaddress inside a declaration"); 3290 return Error(Label.Loc, "referenced value is not a basic block"); 3293 return Error(Label.Loc, "cannot take address of numeric label after " 3298 return Error(Label.Loc, "referenced value is not a basic block"); 3330 return Error(ID.Loc, "invalid cast opcode for cast from '" + 3349 return Error(ID.Loc, "extractvalue operand must be aggregate type"); 3351 return Error(ID.Loc, "invalid indices for extractvalue"); 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: '" + 3396 return Error(ID.Loc, "compare operands must have the same type"); 3402 return Error(ID.Loc, "fcmp requires floating point operands"); 3408 return Error(ID.Loc, "icmp requires pointer or integer operands"); 3429 return Error(ID.Loc, "constexpr requires fp operands"); 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"); 3532 return Error(ID.Loc, "operands of constexpr must have same type"); 3534 return Error(ID.Loc, 3574 return Error(ID.Loc, "base of getelementptr must be a pointer"); 3579 return Error( 3590 return Error(ID.Loc, "getelementptr index must be an integer"); 3594 return Error( 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, 3621 return Error(ID.Loc, "expected three operands to select"); 3624 return Error(ID.Loc, Reason); 3628 return Error(ID.Loc, "expected three operands to shufflevector"); 3630 return Error(ID.Loc, "invalid operands to shufflevector"); 3635 return Error(ID.Loc, "expected two operands to extractelement"); 3637 return Error(ID.Loc, "invalid extractelement operands"); 3642 return Error(ID.Loc, "expected three operands to insertelement"); 3644 return Error(ID.Loc, "invalid insertelement operands"); 3666 return Error(ID.Loc, "global values must be constants"); 4303 return Error(ValueLoc, "'" + Name + "' cannot be empty"); 5073 return Error(Loc, "invalid metadata-value-metadata roundtrip"); 5136 return Error(ID.Loc, "functions are not values, refer to them as pointers"); 5140 if (!PFS) return Error(ID.Loc, "invalid use of function-local name"); 5144 if (!PFS) return Error(ID.Loc, "invalid use of function-local name"); 5149 return Error(ID.Loc, "invalid type for inline asm constraint string"); 5163 return Error(ID.Loc, "integer constant must have integer type"); 5170 return Error(ID.Loc, "floating point constant invalid for type"); 5186 return Error(ID.Loc, "floating point constant does not have type '" + 5192 return Error(ID.Loc, "null must be a pointer type"); 5198 return Error(ID.Loc, "invalid type for undef constant"); 5203 return Error(ID.Loc, "invalid empty array initializer"); 5209 return Error(ID.Loc, "invalid type for null constant"); 5214 return Error(ID.Loc, "invalid type for none constant"); 5219 return Error(ID.Loc, "constant expression type mismatch"); 5227 return Error(ID.Loc, 5230 return Error(ID.Loc, "packed'ness of initializer and type don't match"); 5235 return Error(ID.Loc, "element " + Twine(i) + 5241 return Error(ID.Loc, "constant expression type mismatch"); 5271 return Error(Loc, "expected a constant value"); 5294 return Error(Loc, "expected a basic block"); 5328 return Error(LinkageLoc, "invalid linkage for function definition"); 5338 return Error(LinkageLoc, "invalid linkage for function declaration"); 5342 return Error(LinkageLoc, "invalid function linkage type"); 5346 return Error(LinkageLoc, 5350 return Error(RetTypeLoc, "invalid function return type"); 5410 return Error(BuiltinLoc, "'builtin' attribute not valid on function"); 5433 return Error(RetTypeLoc, "functions with 'sret' argument must return void"); 5447 return Error(FRVI->second.second, "invalid forward reference to " 5450 return Error(FRVI->second.second, "invalid forward reference to " 5457 return Error(NameLoc, "invalid redefinition of function '" + 5460 return Error(NameLoc, "redefinition of function '@" + FunctionName + "'"); 5470 return Error(NameLoc, "type of definition and forward reference of '@" + 5516 return Error(ArgList[i].Loc, "redefinition of argument '%" + 5534 return Error(Blocks->first.Loc, 5565 return P.Error(BBID.Loc, "referenced value is not a basic block"); 5699 default: return Error(Loc, "expected instruction opcode"); 5803 return Error(Loc, "fast-math-flags specified for select without " 5820 return Error(Loc, "fast-math-flags specified for phi without " 5903 return Error(TypeLoc, "value doesn't match function result type '" + 5914 return Error(TypeLoc, "value doesn't match function result type '" + 5936 return Error(Loc, "branch condition must have 'i1' type"); 5964 return Error(CondLoc, "switch condition must have integer type"); 5979 return Error(CondLoc, "duplicate case value in switch"); 5981 return Error(CondLoc, "case value is not a constant integer"); 6007 return Error(AddrLoc, "indirectbr address must have pointer type"); 6076 return Error(RetTypeLoc, "Invalid result type for LLVM function"); 6102 return Error(ArgList[i].Loc, "too many arguments specified"); 6106 return Error(ArgList[i].Loc, "argument is not of expected type '" + 6113 return Error(CallLoc, "not enough parameters specified for call"); 6116 return Error(CallLoc, "invoke instructions may not have an alignment"); 6339 return Error(Loc, "invalid operand type for instruction"); 6403 return Error(RetTypeLoc, "Invalid result type for LLVM function"); 6417 return Error(RetTypeLoc, "asm-goto outputs not supported"); 6432 return Error(ArgList[i].Loc, "too many arguments specified"); 6436 return Error(ArgList[i].Loc, "argument is not of expected type '" + 6443 return Error(CallLoc, "not enough parameters specified for call"); 6446 return Error(CallLoc, "callbr instructions may not have an alignment"); 6484 return Error(Loc, "invalid operand type for instruction"); 6501 return Error(Loc,"instruction requires integer or integer vector operands"); 6524 return Error(Loc, "fcmp requires floating point operands"); 6530 return Error(Loc, "icmp requires integer operands"); 6555 return Error(Loc, "invalid cast opcode for cast from '" + 6576 return Error(Loc, Reason); 6594 return Error(TypeLoc, "va_arg requires operand with first class type"); 6611 return Error(Loc, "invalid extractelement operands"); 6630 return Error(Loc, "invalid insertelement operands"); 6649 return Error(Loc, "invalid shufflevector operands"); 6692 return Error(TypeLoc, "phi node must have first class type"); 6734 Error(VLoc, "'catch' clause has an invalid type"); 6737 Error(VLoc, "'filter' clause has an invalid type"); 6742 return Error(VLoc, "clause argument must be a constant"); 6791 return Error(CallLoc, "fast-math-flags specified for call without " 6805 return Error(RetTypeLoc, "Invalid result type for LLVM function"); 6832 return Error(ArgList[i].Loc, "too many arguments specified"); 6836 return Error(ArgList[i].Loc, "argument is not of expected type '" + 6843 return Error(CallLoc, "not enough parameters specified for call"); 6846 return Error(CallLoc, "call instructions may not have an alignment"); 6884 return Error(TyLoc, "invalid type for alloca"); 6920 return Error(SizeLoc, "element count must have integer type"); 6962 return Error(Loc, "load operand must be a pointer to a first class type"); 6964 return Error(Loc, "atomic load must have explicit non-zero alignment"); 6967 return Error(Loc, "atomic load cannot use Release ordering"); 6970 return Error(ExplicitTypeLoc, 7009 return Error(PtrLoc, "store operand must be a pointer"); 7011 return Error(Loc, "store operand must be a first class value"); 7013 return Error(Loc, "stored value and pointer type do not match"); 7015 return Error(Loc, "atomic store must have explicit non-zero alignment"); 7018 return Error(Loc, "atomic store cannot use Acquire ordering"); 7062 return Error(PtrLoc, "cmpxchg operand must be a pointer"); 7064 return Error(CmpLoc, "compare value and pointer type do not match"); 7066 return Error(NewLoc, "new value and pointer type do not match"); 7068 return Error(NewLoc, "cmpxchg operand must be a first class value"); 7125 return Error(PtrLoc, "atomicrmw operand must be a pointer"); 7127 return Error(ValLoc, "atomicrmw value and pointer type do not match"); 7132 return Error(ValLoc, "atomicrmw " + 7138 return Error(ValLoc, "atomicrmw " + 7144 return Error(ValLoc, "atomicrmw " + 7152 return Error(ValLoc, "atomicrmw operand must be power-of-two byte-sized" 7198 return Error(Loc, "base of getelementptr must be a pointer"); 7201 return Error(ExplicitTypeLoc, 7218 return Error(EltLoc, "getelementptr index must be an integer"); 7223 return Error(EltLoc, 7232 return Error(Loc, "base element of getelementptr must be sized"); 7235 return Error(Loc, "invalid getelementptr indices"); 7253 return Error(Loc, "extractvalue operand must be aggregate type"); 7256 return Error(Loc, "invalid indices for extractvalue"); 7274 return Error(Loc0, "insertvalue operand must be aggregate type"); 7278 return Error(Loc0, "invalid indices for insertvalue"); 7280 return Error(Loc1, "insertvalue operand and field disagree in type: '" + 7325 return Error(Loc, "value has no uses"); 7335 return Error(Loc, "value only has one use"); 7337 return Error(Loc, 7379 return Error(Loc, "expected >= 2 uselistorder indexes"); 7381 return Error(Loc, "expected distinct uselistorder indexes in range [0, size)"); 7383 return Error(Loc, "expected uselistorder indexes to change the order"); 7428 return Error(Fn.Loc, "expected function name in uselistorder_bb"); 7430 return Error(Fn.Loc, "invalid function forward reference in uselistorder_bb"); 7433 return Error(Fn.Loc, "expected function name in uselistorder_bb"); 7435 return Error(Fn.Loc, "invalid declaration in uselistorder_bb"); 7439 return Error(Label.Loc, "invalid numeric label in uselistorder_bb"); 7441 return Error(Label.Loc, "expected basic block name in uselistorder_bb"); 7444 return Error(Label.Loc, "invalid basic block in uselistorder_bb"); 7446 return Error(Label.Loc, "expected basic block in uselistorder_bb"); 7660 return Error(Lex.getLoc(), "unexpected TypeTestResolution kind"); 7700 return Error(Lex.getLoc(), "expected optional TypeTestResolution field"); 7765 return Error(Lex.getLoc(), "unexpected WholeProgramDevirtResolution kind"); 7783 return Error(Lex.getLoc(), 7834 return Error(Lex.getLoc(), 7861 return Error(Lex.getLoc(), 8004 return Error(Lex.getLoc(), "expected name or guid tag"); 8044 return Error(Lex.getLoc(), "expected summary type"); 8104 return Error(Lex.getLoc(), "expected optional function summary field"); 8163 return Error(Lex.getLoc(), "expected optional variable summary field"); 8290 return Error(Lex.getLoc(), "expected function flag type"); 8389 return Error(Lex.getLoc(), "invalid call edge hotness"); 8556 return Error(Lex.getLoc(), "invalid typeIdInfo list type"); 8792 return Error(Lex.getLoc(), "expected gv flag type"); 8834 return Error(Lex.getLoc(), "expected gvar flag type");lib/AsmParser/LLParser.h
194 return Error(Lex.getLoc(), Msg);