Home
last modified time | relevance | path

Searched refs:Loc (Results 1 – 25 of 808) sorted by relevance

12345678910>>...33

/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPPCallbacks.h50 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
74 FileID PrevFID, SourceLocation Loc) {} in LexedFileChanged() argument
225 virtual void Ident(SourceLocation Loc, StringRef str) { in Ident() argument
229 virtual void PragmaDirective(SourceLocation Loc, in PragmaDirective() argument
234 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, in PragmaComment() argument
239 virtual void PragmaMark(SourceLocation Loc, StringRef Trivia) { in PragmaMark() argument
244 virtual void PragmaDetectMismatch(SourceLocation Loc, StringRef Name, in PragmaDetectMismatch() argument
251 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { in PragmaDebug() argument
271 virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace, in PragmaMessage() argument
277 virtual void PragmaDiagnosticPush(SourceLocation Loc, in PragmaDiagnosticPush() argument
[all …]
H A DPPConditionalDirectiveRecord.h31 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 DDIExpressionOptimizer.cpp98 static void consumeOneOperator(DIExpressionCursor &Cursor, uint64_t &Loc, in consumeOneOperator() argument
101 Loc = Loc + Op.getSize(); in consumeOneOperator()
105 void startFromBeginning(uint64_t &Loc, DIExpressionCursor &Cursor, in startFromBeginning() argument
108 Loc = 0; in startFromBeginning()
117 uint64_t Loc = 0; in canonicalizeDwarfOperations() local
119 while (Loc < WorkingOps.size()) { in canonicalizeDwarfOperations()
129 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations()
136 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations()
139 uint64_t PrevLoc = Loc; in canonicalizeDwarfOperations()
140 consumeOneOperator(Cursor, Loc, *Cursor.peek()); in canonicalizeDwarfOperations()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPConditionalDirectiveRecord.cpp47 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/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cpp88 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 Dubsan_handlers.h20 SourceLocation Loc; member
42 SourceLocation Loc; member
53 SourceLocation Loc; member
74 SourceLocation Loc; member
85 SourceLocation Loc; member
97 SourceLocation Loc; member
106 SourceLocation Loc; member
121 SourceLocation Loc; member
131 SourceLocation Loc; member
149 SourceLocation Loc; member
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp85 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, in emitDiagnostic() argument
91 assert(Loc.hasManager() || Loc.isInvalid()); in emitDiagnostic()
95 if (!Loc.isValid()) in emitDiagnostic()
97 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); in emitDiagnostic()
104 mergeFixits(FixItHints, Loc.getManager(), LangOpts, MergedFixits); in emitDiagnostic()
112 FullSourceLoc UnexpandedLoc = Loc; in emitDiagnostic()
115 Loc = Loc.getFileLoc(); in emitDiagnostic()
117 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts.ShowPresumedLoc); in emitDiagnostic()
121 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic()
124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeLoc.h201 void initialize(ASTContext &Context, SourceLocation Loc) const { in initialize() argument
202 initializeImpl(Context, *this, Loc); in initialize()
245 SourceLocation Loc);
304 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument
340 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) in getUnqualifiedLoc() local
341 return Loc.getUnqualifiedLoc(); in getUnqualifiedLoc()
541 void setNameLoc(SourceLocation Loc) { in setNameLoc() argument
542 this->getLocalData()->NameLoc = Loc; in setNameLoc()
549 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument
550 setNameLoc(Loc); in initializeLocal()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCoroutine.cpp33 SourceLocation Loc, bool &Res) { in lookupMember() argument
35 LookupResult LR(S, DN, Loc, Sema::LookupMemberName); in lookupMember()
44 SourceLocation Loc) { in lookupMember() argument
46 lookupMember(S, Name, RD, Loc, Res); in lookupMember()
139 SourceLocation Loc) { in lookupCoroutineHandleType() argument
147 Loc, Sema::LookupOrdinaryName); in lookupCoroutineHandleType()
149 S.Diag(Loc, diag::err_implied_coroutine_type_not_found) in lookupCoroutineHandleType()
164 TemplateArgumentListInfo Args(Loc, Loc); in lookupCoroutineHandleType()
167 S.Context.getTrivialTypeSourceInfo(PromiseType, Loc))); in lookupCoroutineHandleType()
171 S.CheckTemplateIdType(TemplateName(CoroHandle), Loc, Args); in lookupCoroutineHandleType()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegion.cpp19 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 DSystemZMCObjectWriter.cpp
H A DSystemZELFObjectWriter.cpp38 unsigned getAbsoluteReloc(SMLoc Loc, unsigned Kind) const;
39 unsigned getPCRelReloc(SMLoc Loc, unsigned Kind) const;
49 unsigned SystemZELFObjectWriter::getAbsoluteReloc(SMLoc Loc, in getAbsoluteReloc() argument
71 reportError(Loc, "Unsupported absolute address"); in getAbsoluteReloc()
76 unsigned SystemZELFObjectWriter::getPCRelReloc(SMLoc Loc, unsigned Kind) const { in getPCRelReloc() argument
97 reportError(Loc, "Unsupported PC-relative address"); in getPCRelReloc()
104 SMLoc Loc = Fixup.getLoc(); in getRelocType() local
124 return getPCRelReloc(Loc, Kind); in getRelocType()
125 return getAbsoluteReloc(Loc, Kind); in getRelocType()
135 reportError(Loc, "Unsupported thread-local address (local-exec)"); in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DSetTheory.cpp41 ArrayRef<SMLoc> Loc) override { in apply()
42 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply()
49 ArrayRef<SMLoc> Loc) override { in apply()
51 PrintFatalError(Loc, "Set difference needs at least two arguments: " + in apply()
54 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply()
55 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply()
65 ArrayRef<SMLoc> Loc) override { in apply()
67 PrintFatalError(Loc, "Set intersection requires two arguments: " + in apply()
70 ST.evaluate(Expr->arg_begin()[0], S1, Loc); in apply()
71 ST.evaluate(Expr->arg_begin()[1], S2, Loc); in apply()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTypeLoc.cpp134 SourceLocation Loc) { in initializeImpl() argument
141 TLCasted.initializeLocal(Context, Loc); \ in initializeImpl()
486 SourceLocation Loc) { in initializeLocal() argument
487 setNameLoc(Loc); in initializeLocal()
490 setProtocolLAngleLoc(Loc); in initializeLocal()
491 setProtocolRAngleLoc(Loc); in initializeLocal()
493 setProtocolLoc(i, Loc); in initializeLocal()
497 SourceLocation Loc) { in initializeLocal() argument
499 setTypeArgsLAngleLoc(Loc); in initializeLocal()
500 setTypeArgsRAngleLoc(Loc); in initializeLocal()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h75 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
81 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
85 virtual void emitCodeContext(FullSourceLoc Loc,
90 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0;
91 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc,
93 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
103 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc,
105 void emitIncludeStackRecursively(FullSourceLoc Loc);
106 void emitImportStack(FullSourceLoc Loc);
107 void emitImportStackRecursively(FullSourceLoc Loc, StringRef ModuleName);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCStreamer.cpp179 void MCStreamer::emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc) { in emitValue() argument
180 emitValueImpl(Value, Size, Loc); in emitValue()
246 void MCStreamer::emitDwarfLocLabelDirective(SMLoc Loc, StringRef Name) { in emitDwarfLocLabelDirective() argument
249 .endCurrentSeqAndEmitLineStreamLabel(this, Loc, Name); in emitDwarfLocLabelDirective()
290 SMLoc Loc) { in emitCVInlineSiteIdDirective() argument
292 getContext().reportError(Loc, "parent function id not introduced by " in emitCVInlineSiteIdDirective()
304 StringRef FileName, SMLoc Loc) {} in emitCVLocDirective() argument
307 SMLoc Loc) { in checkCVLocSection() argument
312 Loc, "function id not introduced by .cv_func_id or .cv_inline_site_id"); in checkCVLocSection()
321 Loc, in checkCVLocSection()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCDwarf.h506 SourceMgr &SrcMgr, SMLoc &Loc);
553 SMLoc Loc; variable
557 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int64_t O, SMLoc Loc,
559 : Label(L), Operation(Op), Loc(Loc), Values(V.begin(), V.end()), in Label()
564 MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R1, unsigned R2, SMLoc Loc) in MCCFIInstruction() argument
565 : Label(L), Operation(Op), Loc(Loc) { in MCCFIInstruction()
570 SMLoc Loc) in MCCFIInstruction() argument
571 : Label(L), Operation(Op), Loc(Loc) { in MCCFIInstruction()
576 MCCFIInstruction(OpType Op, MCSymbol *L, MCSymbol *CfiLabel, SMLoc Loc) in MCCFIInstruction() argument
577 : Label(L), Operation(Op), Loc(Loc) { in MCCFIInstruction()
[all …]
H A DMCStreamer.h200 const MCExpr *addConstantPoolEntry(const MCExpr *, SMLoc Loc);
287 bool checkCVLocSection(unsigned FuncId, unsigned FileNo, SMLoc Loc);
301 void setStartTokLocPtr(const SMLoc *Loc) { StartTokLocPtr = Loc; } in setStartTokLocPtr() argument
334 WinEH::FrameInfo *EnsureValidWinFrameInfo(SMLoc Loc);
474 virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc());
687 SMLoc Loc = SMLoc());
723 SMLoc Loc = SMLoc());
725 void emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc = SMLoc());
780 SMLoc Loc = SMLoc());
791 SMLoc Loc = SMLoc());
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplateDeduction.h49 SourceLocation Loc; variable
71 TemplateDeductionInfo(SourceLocation Loc, unsigned DeducedDepth = 0)
72 : Loc(Loc), DeducedDepth(DeducedDepth) {} in Loc() argument
80 : DeducedSugared(Info.DeducedSugared), Loc(Info.Loc), in TemplateDeductionInfo()
86 return Loc; in getLocation()
160 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { in addSFINAEDiagnostic() argument
165 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSFINAEDiagnostic()
170 void addSuppressedDiagnostic(SourceLocation Loc, in addSuppressedDiagnostic() argument
174 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSuppressedDiagnostic()
349 SourceLocation Loc; variable
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h222 SourceLocation Loc = SourceLocation()) const;
1055 getBufferOrNone(FileID FID, SourceLocation Loc = SourceLocation()) const {
1058 Diag, getFileManager(), Loc);
1067 getBufferOrFake(FileID FID, SourceLocation Loc = SourceLocation()) const {
1068 if (auto B = getBufferOrNone(FID, Loc))
1185 getModuleImportLoc(SourceLocation Loc) const { in getModuleImportLoc() argument
1186 FileID FID = getFileID(Loc); in getModuleImportLoc()
1198 SourceLocation getExpansionLoc(SourceLocation Loc) const { in getExpansionLoc() argument
1201 if (Loc.isFileID()) return Loc; in getExpansionLoc()
1202 return getExpansionLocSlowCase(Loc); in getExpansionLoc()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysis.cpp151 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()
230 Result &= getModRefInfoMask(Loc); in getModRefInfo()
421 const MemoryLocation &Loc, in getModRefInfo() argument
429 if (Loc.Ptr) { in getModRefInfo()
430 AliasResult AR = alias(MemoryLocation::get(L), Loc, AAQI, L); in getModRefInfo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp109 SourceLocation Loc) const { in getBufferOrNone()
131 Diag.Report(Loc, diag::err_cannot_open_file) in getBufferOrNone()
149 Diag.Report(Loc, diag::err_file_too_large) << ContentsEntry->getName(); in getBufferOrNone()
162 Diag.Report(Loc, diag::err_file_modified) << ContentsEntry->getName(); in getBufferOrNone()
174 Diag.Report(Loc, diag::err_unsupported_bom) in getBufferOrNone()
266 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument
270 FileIDAndOffset LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
895 getExpansionLocSlowCase(SourceLocation Loc) const { in getExpansionLocSlowCase()
903 Loc = getSLocEntry(getFileID(Loc)).getExpansion().getExpansionLocStart(); in getExpansionLocSlowCase()
904 } while (!Loc.isFileID()); in getExpansionLocSlowCase()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.h341 llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc);
351 void emitCall(CodeGenFunction &CGF, SourceLocation Loc,
357 virtual Address emitThreadIDAddress(CodeGenFunction &CGF, SourceLocation Loc);
550 llvm::Value *Dtor, SourceLocation Loc);
582 TaskResultTy emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
590 SourceLocation Loc);
598 SourceLocation Loc);
617 llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc,
781 virtual void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
793 SourceLocation Loc,
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DStackMapPrinter.h45 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/IR/
H A DDebugLoc.h88 DILocAndCoverageTracking(const MDNode *Loc) in DILocAndCoverageTracking() argument
89 : TrackingMDNodeRef(const_cast<MDNode *>(Loc)), DbgLocOrigin(!Loc), in DILocAndCoverageTracking()
91 LLVM_ABI DILocAndCoverageTracking(const DILocation *Loc);
126 DebugLocTrackingRef Loc;
143 DebugLoc(DebugLocKind Kind) : Loc(Kind) {}
144 DebugLocKind getKind() const { return Loc.Kind; }
214 return Loc.getOriginStackTraces();
218 NewDL.Loc.addTrace();
241 explicit operator bool() const { return Loc; }
244 bool hasTrivialDestructor() const { return Loc.hasTrivialDestructor(); }
[all …]

12345678910>>...33