/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/ |
H A D | LanaiAsmParser.cpp | 60 StringRef splitMnemonic(StringRef Name, SMLoc NameLoc, 66 SMLoc NameLoc, OperandVector &Operands) override; 1044 StringRef LanaiAsmParser::splitMnemonic(StringRef Name, SMLoc NameLoc, in splitMnemonic() argument 1062 Operands->push_back(LanaiOperand::CreateToken(Mnemonic, NameLoc)); in splitMnemonic() 1064 MCConstantExpr::create(CondCode, getContext()), NameLoc, NameLoc)); in splitMnemonic() 1066 Operands->push_back(LanaiOperand::CreateToken(".r", NameLoc)); in splitMnemonic() 1091 Operands->push_back(LanaiOperand::CreateToken(Mnemonic, NameLoc)); in splitMnemonic() 1093 MCConstantExpr::create(CondCode, getContext()), NameLoc, NameLoc)); in splitMnemonic() 1098 Operands->push_back(LanaiOperand::CreateToken(Mnemonic, NameLoc)); in splitMnemonic() 1100 Operands->push_back(LanaiOperand::CreateToken(".r", NameLoc)); in splitMnemonic() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
H A D | VEAsmParser.cpp | 63 SMLoc NameLoc, OperandVector &Operands) override; 85 StringRef splitMnemonic(StringRef Name, SMLoc NameLoc, 854 bool IntegerCC, bool OmitCC, SMLoc NameLoc, in parseCC() argument 868 Operands->push_back(VEOperand::CreateToken(Name, NameLoc)); in parseCC() 870 SMLoc CondLoc = SMLoc::getFromPointer(NameLoc.getPointer() + Prefix); in parseCC() 871 SMLoc SuffixLoc = SMLoc::getFromPointer(NameLoc.getPointer() + Suffix); in parseCC() 877 Operands->push_back(VEOperand::CreateToken(Name, NameLoc)); in parseCC() 882 static StringRef parseRD(StringRef Name, unsigned Prefix, SMLoc NameLoc, in parseRD() argument 892 Operands->push_back(VEOperand::CreateToken(Name, NameLoc)); in parseRD() 894 SMLoc::getFromPointer(NameLoc.getPointer() + (RD.data() - Name.data())); in parseRD() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/ |
H A D | MSP430AsmParser.cpp | 53 SMLoc NameLoc, OperandVector &Operands) override; 62 SMLoc NameLoc, OperandVector &Operands); 328 StringRef Name, SMLoc NameLoc, in parseJccInstruction() argument 352 return Error(NameLoc, "unknown instruction"); in parseJccInstruction() 355 Operands.push_back(MSP430Operand::CreateToken("jmp", NameLoc)); in parseJccInstruction() 357 Operands.push_back(MSP430Operand::CreateToken("j", NameLoc)); in parseJccInstruction() 389 StringRef Name, SMLoc NameLoc, in ParseInstruction() argument 395 if (!parseJccInstruction(Info, Name, NameLoc, Operands)) in ParseInstruction() 399 Operands.push_back(MSP430Operand::CreateToken(Name, NameLoc)); in ParseInstruction()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TypeLoc.h | 520 SourceLocation NameLoc; member 536 return this->getLocalData()->NameLoc; in getNameLoc() 540 this->getLocalData()->NameLoc = Loc; in setNameLoc() 764 SourceLocation NameLoc; member 782 return this->getLocalData()->NameLoc; in getNameLoc() 786 this->getLocalData()->NameLoc = Loc; in setNameLoc() 1083 SourceLocation NameLoc; member 1098 return getLocalData()->NameLoc; in getNameLoc() 1102 getLocalData()->NameLoc = Loc; in setNameLoc() 1644 SourceLocation NameLoc; member [all …]
|
H A D | ExprCXX.h | 4511 SubstNonTypeTemplateParmExprBits.NameLoc = Loc; in SubstNonTypeTemplateParmExpr() 4516 return SubstNonTypeTemplateParmExprBits.NameLoc; in getNameLoc() 4585 SourceLocation NameLoc; variable 4592 SourceLocation NameLoc, 4608 SourceLocation getParameterPackLocation() const { return NameLoc; } in getParameterPackLocation() 4614 SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; } in getBeginLoc() 4615 SourceLocation getEndLoc() const LLVM_READONLY { return NameLoc; } in getEndLoc() 4656 SourceLocation NameLoc; variable 4662 SourceLocation NameLoc, unsigned NumParams, 4668 SourceLocation NameLoc, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/ |
H A D | XtensaAsmParser.cpp | 49 SMLoc NameLoc, OperandVector &Operands) override; 71 SMLoc NameLoc, OperandVector &Operands); 677 StringRef Name, SMLoc NameLoc, in ParseInstructionWithSR() argument 686 Operands.push_back(XtensaOperand::createToken(Name.take_front(3), NameLoc)); in ParseInstructionWithSR() 695 return Error(NameLoc, "invalid register name"); in ParseInstructionWithSR() 706 Operands.push_back(XtensaOperand::createToken(Name, NameLoc)); in ParseInstructionWithSR() 734 StringRef Name, SMLoc NameLoc, in ParseInstruction() argument 738 return ParseInstructionWithSR(Info, Name, NameLoc, Operands); in ParseInstruction() 742 Operands.push_back(XtensaOperand::createToken(Name, NameLoc)); in ParseInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
H A D | BPFAsmParser.cpp | 47 SMLoc NameLoc, OperandVector &Operands) override; 489 SMLoc NameLoc, OperandVector &Operands) { in ParseInstruction() argument 494 SMLoc E = SMLoc::getFromPointer(NameLoc.getPointer() - 1); in ParseInstruction() 495 Operands.push_back(BPFOperand::createReg(RegNo, NameLoc, E)); in ParseInstruction() 497 Operands.push_back(BPFOperand::createToken(Name, NameLoc)); in ParseInstruction() 499 return Error(NameLoc, "invalid register/token name"); in ParseInstruction()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseInit.cpp | 177 SourceLocation NameLoc = ConsumeToken(); // Eat the identifier. in ParseInitializerWithPotentialDesignator() local 182 Diag(NameLoc, diag::ext_gnu_old_style_field_designator) in ParseInitializerWithPotentialDesignator() 183 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator() 188 FieldName, SourceLocation(), NameLoc)); in ParseInitializerWithPotentialDesignator()
|
H A D | ParseOpenMP.cpp | 867 SourceLocation NameLoc, in checkForDuplicates() argument 870 auto Res = Seen.try_emplace(Name, NameLoc); in checkForDuplicates() 876 P.Diag(NameLoc, diag::warn_omp_declare_variant_ctx_mutiple_use) in checkForDuplicates() 890 SourceLocation NameLoc = Tok.getLocation(); in parseOMPTraitPropertyKind() local 901 if (checkForDuplicates(*this, Name, NameLoc, Seen, CONTEXT_TRAIT_LVL)) in parseOMPTraitPropertyKind() 908 Diag(NameLoc, diag::warn_omp_declare_variant_ctx_not_a_property) in parseOMPTraitPropertyKind() 914 Diag(NameLoc, diag::note_omp_declare_variant_ctx_is_a) in parseOMPTraitPropertyKind() 916 Diag(NameLoc, diag::note_omp_declare_variant_ctx_try) in parseOMPTraitPropertyKind() 923 Diag(NameLoc, diag::note_omp_declare_variant_ctx_is_a) in parseOMPTraitPropertyKind() 930 Diag(NameLoc, diag::note_omp_declare_variant_ctx_try) in parseOMPTraitPropertyKind() [all …]
|
H A D | ParseDeclCXX.cpp | 1894 SourceLocation NameLoc, in ParseClassSpecifier() 1897 Diag(NameLoc, diag::err_explicit_spec_non_template) in ParseClassSpecifier() 1921 SourceLocation NameLoc; in ParseClassSpecifier() local 1925 NameLoc = ConsumeToken(); in ParseClassSpecifier() 1926 DS.SetRangeEnd(NameLoc); in ParseClassSpecifier() 1941 Name, NameLoc, SourceRange(LAngleLoc, RAngleLoc), false); in ParseClassSpecifier() 1945 NameLoc = ConsumeAnnotationToken(); in ParseClassSpecifier() 1950 getCurScope(), TemplateId->Template, TemplateId->Kind, NameLoc, Name); in ParseClassSpecifier() 1953 Name, NameLoc, in ParseClassSpecifier() 1963 SourceRange Range(NameLoc); in ParseClassSpecifier() [all …]
|
H A D | Parser.cpp | 1802 SourceLocation NameLoc = Tok.getLocation(); in TryAnnotateName() local 1822 getCurScope(), SS, Name, NameLoc, Next, SS.isEmpty() ? CCC : nullptr); in TryAnnotateName() 1834 Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, FakeNext, in TryAnnotateName() 1862 SourceLocation BeginLoc = NameLoc; in TryAnnotateName() 1896 Tok.setAnnotationEndLoc(NameLoc); in TryAnnotateName() 1910 Tok.setLocation(NameLoc); in TryAnnotateName() 1911 Tok.setAnnotationEndLoc(NameLoc); in TryAnnotateName() 1923 Tok.setLocation(NameLoc); in TryAnnotateName() 1924 Tok.setAnnotationEndLoc(NameLoc); in TryAnnotateName() 1948 Id.setIdentifier(Name, NameLoc); in TryAnnotateName()
|
H A D | ParseTemplate.cpp | 717 SourceLocation NameLoc = Tok.getLocation(); in ParseTypeParameter() local 734 DiagnoseMisplacedEllipsis(EllipsisLoc, NameLoc, AlreadyHasEllipsis, true); in ParseTypeParameter() 760 KeyLoc, ParamName, NameLoc, in ParseTypeParameter() 855 SourceLocation NameLoc = Tok.getLocation(); in ParseTemplateTemplateParameter() local 872 DiagnoseMisplacedEllipsis(EllipsisLoc, NameLoc, AlreadyHasEllipsis, true); in ParseTemplateTemplateParameter() 895 ParamName, NameLoc, Depth, Position, EqualLoc, DefaultArg); in ParseTemplateTemplateParameter()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
H A D | X86AsmParser.cpp | 1293 SMLoc NameLoc, OperandVector &Operands) override; 3189 SMLoc NameLoc, OperandVector &Operands) { in ParseInstruction() argument 3229 return Error(NameLoc, "unknown prefix"); in ParseInstruction() 3231 NameLoc = Parser.getTok().getLoc(); in ParseInstruction() 3260 NameLoc = Parser.getTok().getLoc(); in ParseInstruction() 3286 NameLoc.getFromPointer(NameLoc.getPointer() + Name.size()); in ParseInstruction() 3500 return Error(NameLoc, "redundant data16 prefix"); in ParseInstruction() 3504 return Error(NameLoc, "redundant data32 prefix"); in ParseInstruction() 3506 return Error(NameLoc, "'data32' is not supported in 64-bit mode"); in ParseInstruction() 3527 Operands.push_back(X86Operand::CreateToken(PatchedName, NameLoc)); in ParseInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
H A D | WebAssemblyAsmParser.cpp | 469 void addBlockTypeOperand(OperandVector &Operands, SMLoc NameLoc, in addBlockTypeOperand() argument 477 WebAssemblyOperand::Integer, NameLoc, NameLoc, in addBlockTypeOperand() 540 SMLoc NameLoc, OperandVector &Operands) override { in ParseInstruction() argument 543 Name = StringRef(NameLoc.getPointer(), Name.size()); in ParseInstruction() 567 WebAssemblyOperand::Token, NameLoc, SMLoc::getFromPointer(Name.end()), in ParseInstruction() 664 addBlockTypeOperand(Operands, NameLoc, BT); in ParseInstruction() 731 addBlockTypeOperand(Operands, NameLoc, WebAssembly::BlockType::Void); in ParseInstruction()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaDecl.cpp | 153 SourceLocation NameLoc, in lookupUnqualifiedTypeNameInBase() argument 191 switch (lookupUnqualifiedTypeNameInBase(S, II, NameLoc, BaseRD)) { in lookupUnqualifiedTypeNameInBase() 209 SourceLocation NameLoc) { in recoverFromTypeInKnownDependentBase() argument 221 FoundTypeDecl = lookupUnqualifiedTypeNameInBase(S, II, NameLoc, RD); in recoverFromTypeInKnownDependentBase() 229 S.Diag(NameLoc, diag::ext_found_in_dependent_base) << &II; in recoverFromTypeInKnownDependentBase() 238 SS.MakeTrivial(Context, NNS, SourceRange(NameLoc)); in recoverFromTypeInKnownDependentBase() 242 DepTL.setNameLoc(NameLoc); in recoverFromTypeInKnownDependentBase() 250 SourceLocation NameLoc, in buildNamedType() argument 280 Builder.pushTypeSpec(T).setNameLoc(NameLoc); in buildNamedType() 287 ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc, in getTypeName() argument [all …]
|
H A D | SemaTemplate.cpp | 323 SourceLocation NameLoc, CXXScopeSpec &SS, in isDeductionGuideName() argument 328 LookupResult R(*this, DeclarationName(&Name), NameLoc, LookupOrdinaryName); in isDeductionGuideName() 1577 SourceLocation NameLoc, unsigned Depth, unsigned Position, in ActOnTemplateTemplateParameter() argument 1586 NameLoc.isInvalid() ? TmpLoc : NameLoc, Depth, Position, IsParameterPack, in ActOnTemplateTemplateParameter() 1597 maybeDiagnoseTemplateParameterShadow(*this, S, NameLoc, Name); in ActOnTemplateTemplateParameter() 1796 CXXScopeSpec &SS, IdentifierInfo *Name, SourceLocation NameLoc, in CheckClassTemplate() argument 1825 LookupResult Previous(*this, Name, NameLoc, in CheckClassTemplate() 1836 Diag(NameLoc, TUK == TagUseKind::Friend in CheckClassTemplate() 1856 diagnoseQualifiedDeclaration(SS, SemanticContext, Name, NameLoc, in CheckClassTemplate() 1870 DeclarationNameInfo(Name, NameLoc))) in CheckClassTemplate() [all …]
|
H A D | SemaTemplateVariadic.cpp | 1020 SourceLocation NameLoc, in ActOnSizeofParameterPackExpr() argument 1024 LookupResult R(*this, &Name, NameLoc, LookupOrdinaryName); in ActOnSizeofParameterPackExpr() 1056 Diag(NameLoc, diag::err_expected_name_of_pack) << &Name; in ActOnSizeofParameterPackExpr() 1062 return SizeOfPackExpr::Create(Context, OpLoc, ParameterPack, NameLoc, in ActOnSizeofParameterPackExpr()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclarationName.cpp | 502 return NameLoc; in getEndLocPrivate() 516 return NameLoc; in getEndLocPrivate() 523 return NameLoc; in getEndLocPrivate()
|
H A D | ExprCXX.cpp | 1763 QualType T, ExprValueKind ValueKind, SourceLocation NameLoc, in SubstNonTypeTemplateParmPackExpr() argument 1767 NumArguments(ArgPack.pack_size()), Index(Index), NameLoc(NameLoc) { in SubstNonTypeTemplateParmPackExpr() 1784 SourceLocation NameLoc, in FunctionParmPackExpr() argument 1788 ParamPack(ParamPack), NameLoc(NameLoc), NumParameters(NumParams) { in FunctionParmPackExpr() 1798 VarDecl *ParamPack, SourceLocation NameLoc, in Create() argument 1801 FunctionParmPackExpr(T, ParamPack, NameLoc, Params.size(), Params.data()); in Create()
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 292 virtual void PragmaOpenCLExtension(SourceLocation NameLoc, in PragmaOpenCLExtension() argument 626 void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *Name, in PragmaOpenCLExtension() argument 628 First->PragmaOpenCLExtension(NameLoc, Name, StateLoc, State); in PragmaOpenCLExtension() 629 Second->PragmaOpenCLExtension(NameLoc, Name, StateLoc, State); in PragmaOpenCLExtension()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | MasmParser.cpp | 595 const MCAsmMacro *M, SMLoc NameLoc, 602 bool handleMacroInvocation(const MCAsmMacro *M, SMLoc NameLoc); 867 StringRef Name, SMLoc NameLoc); 880 SMLoc NameLoc); 934 DirectiveKind DirKind, SMLoc NameLoc); 990 bool parseDirectiveMacro(StringRef Name, SMLoc NameLoc); 993 StringRef Name, SMLoc NameLoc); 995 bool parseDirectiveEnds(StringRef Name, SMLoc NameLoc); 3210 bool MasmParser::handleMacroEntry(const MCAsmMacro *M, SMLoc NameLoc, in handleMacroEntry() argument 3247 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | TGParser.cpp | 139 StringInit *Name, SMRange NameLoc, in getVar() argument 155 RV->addReferenceLoc(NameLoc); in getVar() 173 RV->addReferenceLoc(NameLoc); in getVar() 204 return Parent->getVar(Records, ParsingMultiClass, Name, NameLoc, in getVar() 1153 Init *TGParser::ParseIDValue(Record *CurRec, StringInit *Name, SMRange NameLoc, in ParseIDValue() argument 1155 if (Init *I = CurScope->getVar(Records, CurMultiClass, Name, NameLoc, in ParseIDValue() 1166 Def->getDef()->appendReferenceLoc(NameLoc); in ParseIDValue() 1177 Error(NameLoc.Start, "Variable not defined: '" + Name->getValue() + "'"); in ParseIDValue() 2673 SMRange NameLoc = Lex.getLocRange(); in ParseSimpleValue() local 2679 return ParseIDValue(CurRec, Name, NameLoc, Mode); // Value ::= IDValue in ParseSimpleValue() [all …]
|
H A D | TGParser.h | 122 StringInit *Name, SMRange NameLoc, 289 Init *ParseIDValue(Record *CurRec, StringInit *Name, SMRange NameLoc,
|
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 704 LocTy NameLoc = Lex.getLoc(); in parseNamedType() local 712 if (parseStructDefinition(NameLoc, Name, NamedTypes[Name], Result)) in parseNamedType() 718 return error(NameLoc, "non-struct types may not be recursive"); in parseNamedType() 805 LocTy NameLoc = Lex.getLoc(); in parseUnnamedGlobal() local 810 if (checkValueID(NameLoc, "global", "@", NumberedVals.getNext(), VarID)) in parseUnnamedGlobal() 832 return parseGlobal(Name, VarID, NameLoc, Linkage, HasLinkage, Visibility, in parseUnnamedGlobal() 836 return parseAliasOrIFunc(Name, VarID, NameLoc, Linkage, Visibility, in parseUnnamedGlobal() 848 LocTy NameLoc = Lex.getLoc(); in parseNamedGlobal() local 865 return parseGlobal(Name, -1, NameLoc, Linkage, HasLinkage, Visibility, in parseNamedGlobal() 869 return parseAliasOrIFunc(Name, -1, NameLoc, Linkage, Visibility, in parseNamedGlobal() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 64 SMLoc NameLoc, OperandVector &Operands) override; 627 StringRef Mnemonic, SMLoc NameLoc, in ParseInstruction() argument 629 Operands.push_back(AVROperand::CreateToken(Mnemonic, NameLoc)); in ParseInstruction()
|