/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 49 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, 73 FileID PrevFID, SourceLocation Loc) {} in LexedFileChanged() argument 224 virtual void Ident(SourceLocation Loc, StringRef str) { in Ident() argument 228 virtual void PragmaDirective(SourceLocation Loc, in PragmaDirective() argument 233 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, in PragmaComment() argument 238 virtual void PragmaMark(SourceLocation Loc, StringRef Trivia) { in PragmaMark() argument 243 virtual void PragmaDetectMismatch(SourceLocation Loc, StringRef Name, in PragmaDetectMismatch() argument 250 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { in PragmaDebug() argument 270 virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace, in PragmaMessage() argument 276 virtual void PragmaDiagnosticPush(SourceLocation Loc, in PragmaDiagnosticPush() argument [all …]
|
H A D | PPConditionalDirectiveRecord.h | 31 SourceLocation Loc; variable 35 CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc) in CondDirectiveLoc() argument 36 : Loc(Loc), RegionLoc(RegionLoc) {} in CondDirectiveLoc() 38 SourceLocation getLoc() const { return Loc; } in getLoc() 85 SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const; 88 void If(SourceLocation Loc, SourceRange ConditionRange, 90 void Elif(SourceLocation Loc, SourceRange ConditionRange, 92 void Ifdef(SourceLocation Loc, const Token &MacroNameTok, 94 void Ifndef(SourceLocation Loc, const Token &MacroNameTok, 96 void Elifdef(SourceLocation Loc, const Token &MacroNameTok, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DIExpressionOptimizer.cpp | 96 static void consumeOneOperator(DIExpressionCursor &Cursor, uint64_t &Loc, in consumeOneOperator() argument 99 Loc = Loc + Op.getSize(); in consumeOneOperator() 103 void startFromBeginning(uint64_t &Loc, DIExpressionCursor &Cursor, in startFromBeginning() argument 106 Loc = 0; in startFromBeginning() 115 uint64_t Loc = 0; in canonicalizeDwarfOperations() local 117 while (Loc < WorkingOps.size()) { in canonicalizeDwarfOperations() 127 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations() 134 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations() 137 uint64_t PrevLoc = Loc; in canonicalizeDwarfOperations() 138 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations() [all …]
|
H A D | DebugLoc.cpp | 17 DebugLoc::DebugLoc(const DILocation *L) : Loc(const_cast<DILocation *>(L)) {} in DebugLoc() 18 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() 21 return cast_or_null<DILocation>(Loc.get()); in get() 45 return cast<DILocation>(Loc)->getInlinedAtScope(); in getInlinedAtScope() 58 if (DILocation *Loc = get()) { in isImplicitCode() local 59 return Loc->isImplicitCode(); in isImplicitCode() 65 if (DILocation *Loc = get()) { in setImplicitCode() local 66 Loc->setImplicitCode(ImplicitCode); in setImplicitCode() 78 for (DILocation *Loc = RootLoc; Loc; Loc = Loc->getInlinedAt()) { in replaceInlinedAtSubprogram() local 79 if (auto It = Cache.find(Loc); It != Cache.end()) { in replaceInlinedAtSubprogram() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPConditionalDirectiveRecord.cpp | 47 SourceLocation Loc) const { in findConditionalDirectiveRegionLoc() 48 if (Loc.isInvalid()) in findConditionalDirectiveRegionLoc() 54 Loc)) in findConditionalDirectiveRegionLoc() 58 CondDirectiveLocs, Loc, CondDirectiveLoc::Comp(SourceMgr)); in findConditionalDirectiveRegionLoc() 75 void PPConditionalDirectiveRecord::If(SourceLocation Loc, in If() argument 78 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in If() 79 CondDirectiveStack.push_back(Loc); in If() 82 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, in Ifdef() argument 85 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Ifdef() 86 CondDirectiveStack.push_back(Loc); in Ifdef() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 86 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, in emitDiagnostic() argument 92 assert(Loc.hasManager() || Loc.isInvalid()); in emitDiagnostic() 96 if (!Loc.isValid()) in emitDiagnostic() 98 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); in emitDiagnostic() 106 mergeFixits(FixItHints, Loc.getManager(), LangOpts, MergedFixits); in emitDiagnostic() 114 FullSourceLoc UnexpandedLoc = Loc; in emitDiagnostic() 117 Loc = Loc.getFileLoc(); in emitDiagnostic() 119 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitDiagnostic() 123 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic() 126 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_handlers.cpp | 88 Location Loc = Data->Loc.acquire(); in handleTypeMismatchImpl() local 103 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) in handleTypeMismatchImpl() 107 if (Data->Loc.isInvalid()) { in handleTypeMismatchImpl() 109 Loc = FallbackLoc; in handleTypeMismatchImpl() 112 ScopedReport R(Opts, Loc, ET); in handleTypeMismatchImpl() 117 Diag(Loc, DL_Error, ET, "%0 null pointer of type %1") in handleTypeMismatchImpl() 121 Diag(Loc, DL_Error, ET, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl() 127 Diag(Loc, DL_Error, ET, "%0 address %1 with insufficient space " in handleTypeMismatchImpl() 156 Location Loc = Data->Loc.acquire(); in handleAlignmentAssumptionImpl() local 161 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) in handleAlignmentAssumptionImpl() [all …]
|
H A D | ubsan_handlers.h | 20 SourceLocation Loc; member 42 SourceLocation Loc; member 53 SourceLocation Loc; member 74 SourceLocation Loc; member 85 SourceLocation Loc; member 94 SourceLocation Loc; member 103 SourceLocation Loc; member 118 SourceLocation Loc; member 128 SourceLocation Loc; member 146 SourceLocation Loc; member [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TypeLoc.h | 200 void initialize(ASTContext &Context, SourceLocation Loc) const { in initialize() argument 201 initializeImpl(Context, *this, Loc); in initialize() 244 SourceLocation Loc); 303 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument 339 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) in getUnqualifiedLoc() local 340 return Loc.getUnqualifiedLoc(); in getUnqualifiedLoc() 539 void setNameLoc(SourceLocation Loc) { in setNameLoc() argument 540 this->getLocalData()->NameLoc = Loc; in setNameLoc() 547 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument 548 setNameLoc(Loc); in initializeLocal() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCoroutine.cpp | 35 SourceLocation Loc, bool &Res) { in lookupMember() argument 37 LookupResult LR(S, DN, Loc, Sema::LookupMemberName); in lookupMember() 46 SourceLocation Loc) { in lookupMember() argument 48 lookupMember(S, Name, RD, Loc, Res); in lookupMember() 142 SourceLocation Loc) { in lookupCoroutineHandleType() argument 150 Loc, Sema::LookupOrdinaryName); in lookupCoroutineHandleType() 152 S.Diag(Loc, diag::err_implied_coroutine_type_not_found) in lookupCoroutineHandleType() 167 TemplateArgumentListInfo Args(Loc, Loc); in lookupCoroutineHandleType() 170 S.Context.getTrivialTypeSourceInfo(PromiseType, Loc))); in lookupCoroutineHandleType() 174 S.CheckTemplateIdType(TemplateName(CoroHandle), Loc, Args); in lookupCoroutineHandleType() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
H A D | CodeRegion.cpp | 19 bool CodeRegion::isLocInRange(SMLoc Loc) const { in isLocInRange() 20 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) in isLocInRange() 22 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) in isLocInRange() 28 SMLoc Loc = Instruction.getLoc(); in addInstruction() local 30 if (Region->isLocInRange(Loc)) in addInstruction() 39 void AnalysisRegions::beginRegion(StringRef Description, SMLoc Loc) { in beginRegion() argument 46 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); in beginRegion() 54 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in beginRegion() 62 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, in beginRegion() 72 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); in beginRegion() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
H A D | SystemZMCObjectWriter.cpp |
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | SetTheory.cpp | 40 ArrayRef<SMLoc> Loc) override { in apply() 41 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 48 ArrayRef<SMLoc> Loc) override { in apply() 50 PrintFatalError(Loc, "Set difference needs at least two arguments: " + in apply() 53 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 54 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 64 ArrayRef<SMLoc> Loc) override { in apply() 66 PrintFatalError(Loc, "Set intersection requires two arguments: " + in apply() 69 ST.evaluate(Expr->arg_begin()[0], S1, Loc); in apply() 70 ST.evaluate(Expr->arg_begin()[1], S2, Loc); in apply() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 76 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 86 virtual void emitCodeContext(FullSourceLoc Loc, 91 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0; 92 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 94 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 104 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 106 void emitIncludeStackRecursively(FullSourceLoc Loc); 107 void emitImportStack(FullSourceLoc Loc); 108 void emitImportStackRecursively(FullSourceLoc Loc, StringRef ModuleName); [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCDwarf.h | 481 SMLoc &Loc); 526 SMLoc Loc; variable 530 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int64_t O, SMLoc Loc, 532 : Label(L), Operation(Op), Loc(Loc), Values(V.begin(), V.end()), in Label() 537 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R1, unsigned R2, SMLoc Loc) in MCCFIInstruction() argument 538 : Label(L), Operation(Op), Loc(Loc) { in MCCFIInstruction() 543 SMLoc Loc) in MCCFIInstruction() argument 544 : Label(L), Operation(Op), Loc(Loc) { in MCCFIInstruction() 549 MCCFIInstruction(OpType Op, MCSymbol *L, MCSymbol *CfiLabel, SMLoc Loc) in MCCFIInstruction() argument 550 : Label(L), Operation(Op), Loc(Loc) { in MCCFIInstruction() [all …]
|
H A D | MCStreamer.h | 193 const MCExpr *addConstantPoolEntry(const MCExpr *, SMLoc Loc); 277 bool checkCVLocSection(unsigned FuncId, unsigned FileNo, SMLoc Loc); 291 void setStartTokLocPtr(const SMLoc *Loc) { StartTokLocPtr = Loc; } in setStartTokLocPtr() argument 322 WinEH::FrameInfo *EnsureValidWinFrameInfo(SMLoc Loc); 456 virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()); 665 SMLoc Loc = SMLoc()) = 0; 701 SMLoc Loc = SMLoc()); 703 void emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc = SMLoc()); 800 SMLoc Loc = SMLoc()); 811 SMLoc Loc = SMLoc()); [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | TypeLoc.cpp | 133 SourceLocation Loc) { in initializeImpl() argument 140 TLCasted.initializeLocal(Context, Loc); \ in initializeImpl() 483 SourceLocation Loc) { in initializeLocal() argument 484 setNameLoc(Loc); in initializeLocal() 487 setProtocolLAngleLoc(Loc); in initializeLocal() 488 setProtocolRAngleLoc(Loc); in initializeLocal() 490 setProtocolLoc(i, Loc); in initializeLocal() 494 SourceLocation Loc) { in initializeLocal() argument 496 setTypeArgsLAngleLoc(Loc); in initializeLocal() 497 setTypeArgsRAngleLoc(Loc); in initializeLocal() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | TemplateDeduction.h | 49 SourceLocation Loc; variable 66 TemplateDeductionInfo(SourceLocation Loc, unsigned DeducedDepth = 0) 67 : Loc(Loc), DeducedDepth(DeducedDepth) {} in Loc() function 75 : DeducedSugared(Info.DeducedSugared), Loc(Info.Loc), in TemplateDeductionInfo() 81 return Loc; in getLocation() 151 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { in addSFINAEDiagnostic() argument 156 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSFINAEDiagnostic() 161 void addSuppressedDiagnostic(SourceLocation Loc, in addSuppressedDiagnostic() argument 165 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSuppressedDiagnostic() 340 SourceLocation Loc; variable [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | AliasAnalysis.cpp | 151 ModRefInfo AAResults::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask() argument 154 return getModRefInfoMask(Loc, AAQIP, IgnoreLocals); in getModRefInfoMask() 157 ModRefInfo AAResults::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask() argument 162 Result &= AA->getModRefInfoMask(Loc, AAQI, IgnoreLocals); in getModRefInfoMask() 214 const MemoryLocation &Loc, in getModRefInfo() argument 219 Result &= AA->getModRefInfo(Call, Loc, AAQI); in getModRefInfo() 249 AliasResult ArgAlias = alias(ArgLoc, Loc, AAQI, Call); in getModRefInfo() 262 Result &= getModRefInfoMask(Loc); in getModRefInfo() 447 for (IRMemLocation Loc : MemoryEffects::locations()) { in operator <<() local 448 switch (Loc) { in operator <<() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | SourceManager.h | 222 SourceLocation Loc = SourceLocation()) const; 1051 getBufferOrNone(FileID FID, SourceLocation Loc = SourceLocation()) const { 1054 Diag, getFileManager(), Loc); 1063 getBufferOrFake(FileID FID, SourceLocation Loc = SourceLocation()) const { 1064 if (auto B = getBufferOrNone(FID, Loc)) 1181 getModuleImportLoc(SourceLocation Loc) const { in getModuleImportLoc() argument 1182 FileID FID = getFileID(Loc); in getModuleImportLoc() 1194 SourceLocation getExpansionLoc(SourceLocation Loc) const { in getExpansionLoc() argument 1197 if (Loc.isFileID()) return Loc; in getExpansionLoc() 1198 return getExpansionLocSlowCase(Loc); in getExpansionLoc() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCStreamer.cpp | 179 void MCStreamer::emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc) { in emitValue() argument 180 emitValueImpl(Value, Size, Loc); in emitValue() 308 SMLoc Loc) { in emitCVInlineSiteIdDirective() argument 310 getContext().reportError(Loc, "parent function id not introduced by " in emitCVInlineSiteIdDirective() 322 StringRef FileName, SMLoc Loc) {} in emitCVLocDirective() argument 325 SMLoc Loc) { in checkCVLocSection() argument 330 Loc, "function id not introduced by .cv_func_id or .cv_inline_site_id"); in checkCVLocSection() 339 Loc, in checkCVLocSection() 414 void MCStreamer::emitLabel(MCSymbol *Symbol, SMLoc Loc) { in emitLabel() argument 418 return getContext().reportError(Loc, "symbol '" + Twine(Symbol->getName()) + in emitLabel() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | SourceManager.cpp | 111 SourceLocation Loc) const { in getBufferOrNone() 138 Diag.Report(Loc, diag::err_cannot_open_file) in getBufferOrNone() 160 Diag.Report(Loc, diag::err_file_too_large) in getBufferOrNone() 175 Diag.Report(Loc, diag::err_file_modified) in getBufferOrNone() 188 Diag.Report(Loc, diag::err_unsupported_bom) in getBufferOrNone() 280 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument 284 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote() 888 getExpansionLocSlowCase(SourceLocation Loc) const { in getExpansionLocSlowCase() 896 Loc = getSLocEntry(getFileID(Loc)).getExpansion().getExpansionLocStart(); in getExpansionLocSlowCase() 897 } while (!Loc.isFileID()); in getExpansionLocSlowCase() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGOpenMPRuntime.h | 343 llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc); 353 void emitCall(CodeGenFunction &CGF, SourceLocation Loc, 359 virtual Address emitThreadIDAddress(CodeGenFunction &CGF, SourceLocation Loc); 559 llvm::Value *Dtor, SourceLocation Loc); 600 TaskResultTy emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc, 608 SourceLocation Loc); 616 SourceLocation Loc); 635 llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc, 799 virtual void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc, 811 SourceLocation Loc, [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | StackMapPrinter.h | 45 for (const auto &Loc : R.locations()) { in prettyPrintStackMap() local 48 switch (Loc.getKind()) { in prettyPrintStackMap() 50 OS << "Register R#" << Loc.getDwarfRegNum(); in prettyPrintStackMap() 53 OS << "Direct R#" << Loc.getDwarfRegNum() << " + " << Loc.getOffset(); in prettyPrintStackMap() 56 OS << "Indirect [R#" << Loc.getDwarfRegNum() << " + " << Loc.getOffset() in prettyPrintStackMap() 60 OS << "Constant " << Loc.getSmallConstant(); in prettyPrintStackMap() 63 OS << "ConstantIndex #" << Loc.getConstantIndex() << " (" in prettyPrintStackMap() 64 << SMP.getConstant(Loc.getConstantIndex()).getValue() << ")"; in prettyPrintStackMap() 67 OS << ", size: " << Loc.getSizeInBytes() << "\n"; in prettyPrintStackMap()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | ModRef.h | 82 static uint32_t getLocationPos(Location Loc) { in getLocationPos() argument 83 return (uint32_t)Loc * BitsPerLoc; in getLocationPos() 88 void setModRef(Location Loc, ModRefInfo MR) { in setModRef() argument 89 Data &= ~(LocMask << getLocationPos(Loc)); in setModRef() 90 Data |= static_cast<uint32_t>(MR) << getLocationPos(Loc); in setModRef() 102 MemoryEffectsBase(Location Loc, ModRefInfo MR) { setModRef(Loc, MR); } in MemoryEffectsBase() argument 107 for (Location Loc : locations()) in MemoryEffectsBase() local 108 setModRef(Loc, MR); in MemoryEffectsBase() 165 ModRefInfo getModRef(Location Loc) const { in getModRef() argument 166 return ModRefInfo((Data >> getLocationPos(Loc)) & LocMask); in getModRef() [all …]
|