Home
last modified time | relevance | path

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

12345678910>>...34

/external/clang/include/clang/Lex/
DPPCallbacks.h50 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
158 virtual void Ident(SourceLocation Loc, StringRef str) { in Ident() argument
162 virtual void PragmaDirective(SourceLocation Loc, in PragmaDirective() argument
167 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, in PragmaComment() argument
173 virtual void PragmaDetectMismatch(SourceLocation Loc, StringRef Name, in PragmaDetectMismatch() argument
180 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { in PragmaDebug() argument
200 virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace, in PragmaMessage() argument
206 virtual void PragmaDiagnosticPush(SourceLocation Loc, in PragmaDiagnosticPush() argument
212 virtual void PragmaDiagnosticPop(SourceLocation Loc, in PragmaDiagnosticPop() argument
217 virtual void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, in PragmaDiagnostic() argument
[all …]
DPPConditionalDirectiveRecord.h32 SourceLocation Loc; variable
36 CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc) in CondDirectiveLoc() argument
37 : Loc(Loc), RegionLoc(RegionLoc) {} in CondDirectiveLoc()
39 SourceLocation getLoc() const { return Loc; } in getLoc()
86 SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const;
89 void If(SourceLocation Loc, SourceRange ConditionRange,
91 void Elif(SourceLocation Loc, SourceRange ConditionRange,
93 void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
95 void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
97 void Else(SourceLocation Loc, SourceLocation IfLoc) override;
[all …]
/external/clang/lib/Sema/
DSemaCoroutine.cpp27 SourceLocation Loc) { in lookupPromiseType() argument
31 S.Diag(Loc, diag::err_implied_std_coroutine_traits_not_found); in lookupPromiseType()
36 Loc, Sema::LookupOrdinaryName); in lookupPromiseType()
38 S.Diag(Loc, diag::err_implied_std_coroutine_traits_not_found); in lookupPromiseType()
52 TemplateArgumentListInfo Args(Loc, Loc); in lookupPromiseType()
55 S.Context.getTrivialTypeSourceInfo(FnType->getReturnType(), Loc))); in lookupPromiseType()
60 TemplateArgument(T), S.Context.getTrivialTypeSourceInfo(T, Loc))); in lookupPromiseType()
64 S.CheckTemplateIdType(TemplateName(CoroTraits), Loc, Args); in lookupPromiseType()
67 if (S.RequireCompleteType(Loc, CoroTrait, in lookupPromiseType()
75 LookupResult R(S, &S.PP.getIdentifierTable().get("promise_type"), Loc, in lookupPromiseType()
[all …]
DDeclSpec.cpp185 I.Loc = LocalRangeBegin; in getFunction()
502 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec() argument
540 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, Policy); in SetStorageClassSpec()
558 StorageClassSpecLoc = Loc; in SetStorageClassSpec()
563 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread() argument
570 ThreadStorageClassSpecLoc = Loc; in SetStorageClassSpecThread()
577 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, in SetTypeSpecWidth() argument
584 TSWLoc = Loc; in SetTypeSpecWidth()
592 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex() argument
598 TSCLoc = Loc; in SetTypeSpecComplex()
[all …]
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp81 void DiagnosticRenderer::emitDiagnostic(SourceLocation Loc, in emitDiagnostic() argument
88 assert(SM || Loc.isInvalid()); in emitDiagnostic()
92 if (!Loc.isValid()) in emitDiagnostic()
94 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, SM, D); in emitDiagnostic()
112 SourceLocation UnexpandedLoc = Loc; in emitDiagnostic()
115 Loc = SM->getFileLoc(Loc); in emitDiagnostic()
117 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitDiagnostic()
121 emitIncludeStack(Loc, PLoc, Level, *SM); in emitDiagnostic()
124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); in emitDiagnostic()
125 emitCaret(Loc, Level, MutableRanges, FixItHints, *SM); in emitDiagnostic()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc46 Location Loc = Data->Loc.acquire(); in handleTypeMismatchImpl() local
58 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) in handleTypeMismatchImpl()
62 if (Data->Loc.isInvalid()) { in handleTypeMismatchImpl()
64 Loc = FallbackLoc; in handleTypeMismatchImpl()
67 ScopedReport R(Opts, Loc, ET); in handleTypeMismatchImpl()
71 Diag(Loc, DL_Error, "%0 null pointer of type %1") in handleTypeMismatchImpl()
75 Diag(Loc, DL_Error, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl()
81 Diag(Loc, DL_Error, "%0 address %1 with insufficient space " in handleTypeMismatchImpl()
110 SourceLocation Loc = Data->Loc.acquire(); in handleIntegerOverflowImpl() local
115 if (ignoreReport(Loc, Opts, ET)) in handleIntegerOverflowImpl()
[all …]
/external/clang/include/clang/AST/
DTypeLoc.h167 void initialize(ASTContext &Context, SourceLocation Loc) const { in initialize() argument
168 initializeImpl(Context, *this, Loc); in initialize()
208 SourceLocation Loc);
263 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument
298 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) in getUnqualifiedLoc() local
299 return Loc.getUnqualifiedLoc(); in getUnqualifiedLoc()
496 void setNameLoc(SourceLocation Loc) { in setNameLoc() argument
497 this->getLocalData()->NameLoc = Loc; in setNameLoc()
502 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument
503 setNameLoc(Loc); in initializeLocal()
[all …]
/external/clang/lib/Lex/
DPPConditionalDirectiveRecord.cpp49 SourceLocation Loc) const { in findConditionalDirectiveRegionLoc()
50 if (Loc.isInvalid()) in findConditionalDirectiveRegionLoc()
56 Loc)) in findConditionalDirectiveRegionLoc()
61 Loc, CondDirectiveLoc::Comp(SourceMgr)); in findConditionalDirectiveRegionLoc()
78 void PPConditionalDirectiveRecord::If(SourceLocation Loc, in If() argument
81 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in If()
82 CondDirectiveStack.push_back(Loc); in If()
85 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, in Ifdef() argument
88 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Ifdef()
89 CondDirectiveStack.push_back(Loc); in Ifdef()
[all …]
/external/llvm/include/llvm/IR/
DDebugLoc.h35 TrackingMDNodeRef Loc; variable
39 DebugLoc(DebugLoc &&X) : Loc(std::move(X.Loc)) {} in DebugLoc()
40 DebugLoc(const DebugLoc &X) : Loc(X.Loc) {} in DebugLoc()
42 Loc = std::move(X.Loc);
46 Loc = X.Loc;
77 explicit operator bool() const { return Loc; }
80 bool hasTrivialDestructor() const { return Loc.hasTrivialDestructor(); } in hasTrivialDestructor()
113 MDNode *getAsMDNode() const { return Loc; } in getAsMDNode()
115 bool operator==(const DebugLoc &DL) const { return Loc == DL.Loc; }
116 bool operator!=(const DebugLoc &DL) const { return Loc != DL.Loc; }
/external/llvm/lib/TableGen/
DSetTheory.cpp31 ArrayRef<SMLoc> Loc) override { in apply()
32 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply()
39 ArrayRef<SMLoc> Loc) override { in apply()
41 PrintFatalError(Loc, "Set difference needs at least two arguments: " + in apply()
44 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply()
45 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply()
55 ArrayRef<SMLoc> Loc) override { in apply()
57 PrintFatalError(Loc, "Set intersection requires two arguments: " + in apply()
60 ST.evaluate(Expr->arg_begin()[0], S1, Loc); in apply()
61 ST.evaluate(Expr->arg_begin()[1], S2, Loc); in apply()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DSetTheory.cpp42 ArrayRef<SMLoc> Loc) override { in apply()
43 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply()
50 ArrayRef<SMLoc> Loc) override { in apply()
52 PrintFatalError(Loc, "Set difference needs at least two arguments: " + in apply()
55 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply()
56 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply()
66 ArrayRef<SMLoc> Loc) override { in apply()
68 PrintFatalError(Loc, "Set intersection requires two arguments: " + in apply()
71 ST.evaluate(Expr->arg_begin()[0], S1, Loc); in apply()
72 ST.evaluate(Expr->arg_begin()[1], S2, Loc); in apply()
[all …]
/external/clang/include/clang/Basic/
DSourceManager.h178 SourceLocation Loc = SourceLocation(),
813 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
820 SourceLocation createExpansionLoc(SourceLocation Loc,
895 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc,
906 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc,
1043 getModuleImportLoc(SourceLocation Loc) const { in getModuleImportLoc() argument
1044 FileID FID = getFileID(Loc); in getModuleImportLoc()
1056 SourceLocation getExpansionLoc(SourceLocation Loc) const { in getExpansionLoc() argument
1059 if (Loc.isFileID()) return Loc; in getExpansionLoc()
1060 return getExpansionLocSlowCase(Loc); in getExpansionLoc()
[all …]
/external/clang/include/clang/Sema/
DTemplateDeduction.h38 SourceLocation Loc; variable
51 TemplateDeductionInfo(SourceLocation Loc) in TemplateDeductionInfo() argument
52 : Deduced(nullptr), Loc(Loc), HasSFINAEDiagnostic(false), in TemplateDeductionInfo()
58 return Loc; in getLocation()
89 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { in addSFINAEDiagnostic() argument
94 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSFINAEDiagnostic()
99 void addSuppressedDiagnostic(SourceLocation Loc, in addSuppressedDiagnostic() argument
103 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSuppressedDiagnostic()
274 SourceLocation Loc; variable
287 TemplateSpecCandidateSet(SourceLocation Loc, bool ForTakingAddress = false)
[all …]
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc,
82 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
87 virtual void emitCodeContext(SourceLocation Loc,
93 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
95 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
98 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
110 void emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc,
112 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM);
113 void emitImportStack(SourceLocation Loc, const SourceManager &SM);
114 void emitImportStackRecursively(SourceLocation Loc, StringRef ModuleName,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mca/
DCodeRegion.cpp21 bool CodeRegion::isLocInRange(SMLoc Loc) const { in isLocInRange()
22 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) in isLocInRange()
24 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) in isLocInRange()
29 void CodeRegions::beginRegion(StringRef Description, SMLoc Loc) { in beginRegion() argument
33 SM.PrintMessage(Loc, SourceMgr::DK_Warning, in beginRegion()
41 addRegion(Description, Loc); in beginRegion()
44 void CodeRegions::endRegion(SMLoc Loc) { in endRegion() argument
48 SM.PrintMessage(Loc, SourceMgr::DK_Warning, "Ignoring invalid region end"); in endRegion()
52 CurrentRegion.setEndLocation(Loc); in endRegion()
56 const SMLoc &Loc = Instruction->getLoc(); in addInstruction() local
[all …]
/external/clang/lib/AST/
DTypeLoc.cpp113 SourceLocation Loc) { in initializeImpl() argument
120 TLCasted.initializeLocal(Context, Loc); \ in initializeImpl()
393 SourceLocation Loc) { in initializeLocal() argument
395 setTypeArgsLAngleLoc(Loc); in initializeLocal()
396 setTypeArgsRAngleLoc(Loc); in initializeLocal()
400 getTypePtr()->getTypeArgsAsWritten()[i], Loc)); in initializeLocal()
402 setProtocolLAngleLoc(Loc); in initializeLocal()
403 setProtocolRAngleLoc(Loc); in initializeLocal()
405 setProtocolLoc(i, Loc); in initializeLocal()
409 SourceLocation Loc) { in initializeLocal() argument
[all …]
/external/clang/lib/Basic/
DSourceManager.cpp86 SourceLocation Loc, in getBuffer() argument
124 Diag.Report(Loc, diag::err_cannot_open_file) in getBuffer()
142 Diag.Report(Loc, diag::err_file_modified) in getBuffer()
168 Diag.Report(Loc, diag::err_unsupported_bom) in getBuffer()
289 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument
291 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
307 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument
316 return AddLineNote(Loc, LineNo, FilenameID); in AddLineNote()
319 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
892 getExpansionLocSlowCase(SourceLocation Loc) const { in getExpansionLocSlowCase()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DSourceMgr.cpp72 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const { in FindBufferContainingLoc()
74 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
77 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd()) in FindBufferContainingLoc()
84 unsigned SourceMgr::FindLineNumber(SMLoc Loc, int BufferID) const { in FindLineNumber() argument
85 if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc); in FindLineNumber()
101 Cache->LastQuery <= Loc.getPointer()) { in FindLineNumber()
108 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr) in FindLineNumber()
143 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, const Twine &Msg, in GetMessage() argument
148 int CurBuf = FindBufferContainingLoc(Loc); in GetMessage()
154 const char *LineStart = Loc.getPointer(); in GetMessage()
[all …]
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp58 void setStartLoc(SourceLocation Loc) { LocStart = Loc; } in setStartLoc() argument
67 void setEndLoc(SourceLocation Loc) { LocEnd = Loc; } in setEndLoc() argument
99 SourceLocation getPreciseTokenLocEnd(SourceLocation Loc) { in getPreciseTokenLocEnd() argument
103 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd()
104 return Loc.getLocWithOffset(TokLen); in getPreciseTokenLocEnd()
108 SourceLocation getStartOfFileOrMacro(SourceLocation Loc) { in getStartOfFileOrMacro() argument
109 if (Loc.isMacroID()) in getStartOfFileOrMacro()
110 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro()
111 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro()
115 SourceLocation getEndOfFileOrMacro(SourceLocation Loc) { in getEndOfFileOrMacro() argument
[all …]
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h234 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
344 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
354 ModRefInfo getModRefInfo(const CallInst *C, const MemoryLocation &Loc) { in getModRefInfo() argument
355 return getModRefInfo(ImmutableCallSite(C), Loc); in getModRefInfo()
365 ModRefInfo getModRefInfo(const InvokeInst *I, const MemoryLocation &Loc) { in getModRefInfo() argument
366 return getModRefInfo(ImmutableCallSite(I), Loc); in getModRefInfo()
376 ModRefInfo getModRefInfo(const LoadInst *L, const MemoryLocation &Loc);
385 ModRefInfo getModRefInfo(const StoreInst *S, const MemoryLocation &Loc);
394 ModRefInfo getModRefInfo(const FenceInst *S, const MemoryLocation &Loc) { in getModRefInfo() argument
408 const MemoryLocation &Loc);
[all …]
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugLoc.cpp29 for (unsigned char Loc : E.Loc) { in dump() local
30 OS << format("%2.2x ", Loc); in dump()
41 LocationList &Loc = Locations.back(); in parse() local
42 Loc.Offset = Offset; in parse()
69 E.Loc.append(str.begin(), str.end()); in parse()
70 Loc.Entries.push_back(std::move(E)); in parse()
81 LocationList &Loc = Locations.back(); in parse() local
82 Loc.Offset = Offset; in parse()
102 E.Loc.resize(str.size()); in parse()
103 std::copy(str.begin(), str.end(), E.Loc.begin()); in parse()
[all …]
/external/llvm/test/CodeGen/PowerPC/
Dppc64-anyregcc.ll68 ; Loc 0: Register
73 ; Loc 1: Register
78 ; Loc 2: Constant 3
94 ; Loc 0: Register <-- this is the return register
99 ; Loc 1: Register
116 ; Loc 0: Register <-- this is the return register
121 ; Loc 1: Register
139 ; Loc 0: Register <-- this is the return register
144 ; Loc 1: Direct FP - 8
162 ; Loc 0: Register <-- this is the return register
[all …]
/external/llvm/test/CodeGen/AArch64/
Darm64-anyregcc.ll41 ; Loc 0: Register
46 ; Loc 1: Register
51 ; Loc 2: Constant 3
67 ; Loc 0: Register <-- this is the return register
72 ; Loc 1: Register
89 ; Loc 0: Register <-- this is the return register
94 ; Loc 1: Register
112 ; Loc 0: Register <-- this is the return register
117 ; Loc 1: Direct FP - 8
135 ; Loc 0: Register <-- this is the return register
[all …]
/external/llvm/lib/AsmParser/
DLLParser.h60 LLLexer::LocTy Loc; member
71 : Kind(RHS.Kind), Loc(RHS.Loc), UIntVal(RHS.UIntVal), FTy(RHS.FTy), in ValID()
107 SMLoc Loc; member
172 GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc);
173 GlobalValue *GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc);
177 Comdat *getComdat(const std::string &N, LocTy Loc);
202 LocTy *Loc = nullptr) {
206 if (Loc)
207 *Loc = Lex.getLoc();
215 bool ParseUInt32(unsigned &Val, LocTy &Loc) { in ParseUInt32() argument
[all …]
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp86 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory() argument
89 if (AA->pointsToConstantMemory(Loc, OrLocal)) in pointsToConstantMemory()
127 const MemoryLocation &Loc) { in getModRefInfo() argument
131 Result = ModRefInfo(Result & AA->getModRefInfo(CS, Loc)); in getModRefInfo()
159 AliasResult ArgAlias = alias(ArgLoc, Loc); in getModRefInfo()
175 pointsToConstantMemory(Loc, /*OrLocal*/ false)) in getModRefInfo()
313 const MemoryLocation &Loc) { in getModRefInfo() argument
320 if (Loc.Ptr && !alias(MemoryLocation::get(L), Loc)) in getModRefInfo()
328 const MemoryLocation &Loc) { in getModRefInfo() argument
333 if (Loc.Ptr) { in getModRefInfo()
[all …]

12345678910>>...34