| /NextBSD/contrib/llvm/tools/clang/include/clang/Lex/ |
| HD | PPCallbacks.h | 50 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 …]
|
| HD | PPConditionalDirectiveRecord.h | 32 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 …]
|
| /NextBSD/contrib/compiler-rt/lib/ubsan/ |
| HD | ubsan_handlers.cc | 43 Location Loc = Data->Loc.acquire(); in handleTypeMismatchImpl() local 45 if (ignoreReport(Loc.getSourceLocation(), Opts)) in handleTypeMismatchImpl() 49 if (Data->Loc.isInvalid()) { in handleTypeMismatchImpl() 51 Loc = FallbackLoc; in handleTypeMismatchImpl() 54 ScopedReport R(Opts, Loc); in handleTypeMismatchImpl() 57 Diag(Loc, DL_Error, "%0 null pointer of type %1") in handleTypeMismatchImpl() 60 Diag(Loc, DL_Error, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl() 65 Diag(Loc, DL_Error, "%0 address %1 with insufficient space " in handleTypeMismatchImpl() 89 SourceLocation Loc = Data->Loc.acquire(); in handleIntegerOverflowImpl() local 90 if (ignoreReport(Loc, Opts)) in handleIntegerOverflowImpl() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/AST/ |
| HD | TypeLoc.h | 159 void initialize(ASTContext &Context, SourceLocation Loc) const { in initialize() argument 160 initializeImpl(Context, *this, Loc); in initialize() 201 SourceLocation Loc); 255 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument 290 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) in getUnqualifiedLoc() local 291 return Loc.getUnqualifiedLoc(); in getUnqualifiedLoc() 488 void setNameLoc(SourceLocation Loc) { in setNameLoc() argument 489 this->getLocalData()->NameLoc = Loc; in setNameLoc() 494 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument 495 setNameLoc(Loc); in initializeLocal() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/Frontend/ |
| HD | DiagnosticRenderer.cpp | 42 static StringRef getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName() argument 45 assert(Loc.isMacroID() && "Only reasonble to call this on macros"); in getImmediateMacroName() 47 while (SM.isMacroArgExpansion(Loc)) in getImmediateMacroName() 48 Loc = SM.getImmediateExpansionRange(Loc).first; in getImmediateMacroName() 52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc)))) in getImmediateMacroName() 58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); in getImmediateMacroName() 62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); in getImmediateMacroName() 63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName() 123 void DiagnosticRenderer::emitDiagnostic(SourceLocation Loc, in emitDiagnostic() argument 130 assert(SM || Loc.isInvalid()); in emitDiagnostic() [all …]
|
| HD | PrintPreprocessedOutput.cpp | 123 void FileChanged(SourceLocation Loc, FileChangeReason Reason, 131 void Ident(SourceLocation Loc, StringRef str) override; 132 void PragmaMessage(SourceLocation Loc, StringRef Namespace, 134 void PragmaDebug(SourceLocation Loc, StringRef DebugType) override; 135 void PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) override; 136 void PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) override; 137 void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, 139 void PragmaWarning(SourceLocation Loc, StringRef WarningSpec, 141 void PragmaWarningPush(SourceLocation Loc, int Level) override; 142 void PragmaWarningPop(SourceLocation Loc) override; [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/Lex/ |
| HD | PPConditionalDirectiveRecord.cpp | 49 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 …]
|
| /NextBSD/contrib/llvm/include/llvm/IR/ |
| HD | DebugLoc.h | 35 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; }
|
| /NextBSD/contrib/llvm/lib/TableGen/ |
| HD | SetTheory.cpp | 31 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 …]
|
| HD | Error.cpp | 26 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, in PrintMessage() argument 34 if (Loc.empty()) in PrintMessage() 35 Loc = NullLoc; in PrintMessage() 36 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage() 37 for (unsigned i = 1; i < Loc.size(); ++i) in PrintMessage() 38 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage() 46 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning() argument 47 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning() 58 void PrintError(const char *Loc, const Twine &Msg) { in PrintError() argument 59 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Basic/ |
| HD | SourceManager.h | 173 SourceLocation Loc = SourceLocation(), 789 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc, 796 SourceLocation createExpansionLoc(SourceLocation Loc, 862 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, 873 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc, 1010 getModuleImportLoc(SourceLocation Loc) const { in getModuleImportLoc() argument 1011 FileID FID = getFileID(Loc); in getModuleImportLoc() 1023 SourceLocation getExpansionLoc(SourceLocation Loc) const { in getExpansionLoc() argument 1026 if (Loc.isFileID()) return Loc; in getExpansionLoc() 1027 return getExpansionLocSlowCase(Loc); in getExpansionLoc() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Sema/ |
| HD | TemplateDeduction.h | 38 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() 248 SourceLocation Loc; variable 257 TemplateSpecCandidateSet(SourceLocation Loc) : Loc(Loc) {} in TemplateSpecCandidateSet() argument [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/AST/ |
| HD | TypeLoc.cpp | 113 SourceLocation Loc) { in initializeImpl() argument 120 TLCasted.initializeLocal(Context, Loc); \ in initializeImpl() 369 SourceLocation Loc) { in initializeLocal() argument 371 setTypeArgsLAngleLoc(Loc); in initializeLocal() 372 setTypeArgsRAngleLoc(Loc); in initializeLocal() 376 getTypePtr()->getTypeArgsAsWritten()[i], Loc)); in initializeLocal() 378 setProtocolLAngleLoc(Loc); in initializeLocal() 379 setProtocolRAngleLoc(Loc); in initializeLocal() 381 setProtocolLoc(i, Loc); in initializeLocal() 385 SourceLocation Loc) { in initializeLocal() argument [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | CGOpenMPRuntime.h | 285 llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc, 325 SourceLocation Loc); 329 llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc); 351 llvm::Value *Dtor, SourceLocation Loc); 404 virtual void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc, 415 SourceLocation Loc); 422 SourceLocation Loc); 425 virtual void emitTaskyieldCall(CodeGenFunction &CGF, SourceLocation Loc); 432 SourceLocation Loc); 439 SourceLocation Loc, [all …]
|
| HD | CoverageMappingGen.cpp | 67 void setStartLoc(SourceLocation Loc) { LocStart = Loc; } in setStartLoc() argument 76 void setEndLoc(SourceLocation Loc) { LocEnd = Loc; } in setEndLoc() argument 108 SourceLocation getPreciseTokenLocEnd(SourceLocation Loc) { in getPreciseTokenLocEnd() argument 112 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd() 113 return Loc.getLocWithOffset(TokLen); in getPreciseTokenLocEnd() 117 SourceLocation getStartOfFileOrMacro(SourceLocation Loc) { in getStartOfFileOrMacro() argument 118 if (Loc.isMacroID()) in getStartOfFileOrMacro() 119 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro() 120 return SM.getLocForStartOfFile(SM.getFileID(Loc)); in getStartOfFileOrMacro() 124 SourceLocation getEndOfFileOrMacro(SourceLocation Loc) { in getEndOfFileOrMacro() argument [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Frontend/ |
| HD | DiagnosticRenderer.h | 75 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 …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/Basic/ |
| HD | SourceManager.cpp | 86 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() 291 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument 293 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote() 311 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument 320 return AddLineNote(Loc, LineNo, FilenameID); in AddLineNote() 323 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote() 889 getExpansionLocSlowCase(SourceLocation Loc) const { in getExpansionLocSlowCase() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/Sema/ |
| HD | DeclSpec.cpp | 35 static DiagnosticBuilder Diag(DiagnosticsEngine &D, SourceLocation Loc, in Diag() argument 37 return D.Report(Loc, DiagID); in Diag() 195 I.Loc = LocalRangeBegin; in getFunction() 494 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec() argument 532 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, Policy); in SetStorageClassSpec() 550 StorageClassSpecLoc = Loc; in SetStorageClassSpec() 555 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread() argument 562 ThreadStorageClassSpecLoc = Loc; in SetStorageClassSpecThread() 569 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, in SetTypeSpecWidth() argument 576 TSWLoc = Loc; in SetTypeSpecWidth() [all …]
|
| /NextBSD/contrib/llvm/lib/DebugInfo/DWARF/ |
| HD | DWARFDebugLoc.cpp | 30 for (unsigned char Loc : E.Loc) { in dump() local 31 OS << format("%2.2x ", Loc); in dump() 42 LocationList &Loc = Locations.back(); in parse() local 43 Loc.Offset = Offset; in parse() 70 E.Loc.append(str.begin(), str.end()); in parse() 71 Loc.Entries.push_back(std::move(E)); in parse() 82 LocationList &Loc = Locations.back(); in parse() local 83 Loc.Offset = Offset; in parse() 103 E.Loc.resize(str.size()); in parse() 104 std::copy(str.begin(), str.end(), E.Loc.begin()); in parse() [all …]
|
| /NextBSD/contrib/llvm/lib/AsmParser/ |
| HD | LLParser.h | 60 LLLexer::LocTy Loc; member 104 SMLoc Loc; member 160 GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc); 161 GlobalValue *GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc); 165 Comdat *getComdat(const std::string &N, LocTy Loc); 190 LocTy *Loc = nullptr) { 194 if (Loc) 195 *Loc = Lex.getLoc(); 203 bool ParseUInt32(unsigned &Val, LocTy &Loc) { in ParseUInt32() argument 204 Loc = Lex.getLoc(); in ParseUInt32() [all …]
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | AliasAnalysis.cpp | 57 bool AliasAnalysis::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory() argument 60 return AA->pointsToConstantMemory(Loc, OrLocal); in pointsToConstantMemory() 98 AliasAnalysis::getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc) { in getModRefInfo() argument 121 if (!isNoAlias(ArgLoc, Loc)) { in getModRefInfo() 135 if ((Mask & Mod) && pointsToConstantMemory(Loc)) in getModRefInfo() 143 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask); in getModRefInfo() 265 AliasAnalysis::getModRefInfo(const LoadInst *L, const MemoryLocation &Loc) { in getModRefInfo() argument 272 if (Loc.Ptr && !alias(MemoryLocation::get(L), Loc)) in getModRefInfo() 280 AliasAnalysis::getModRefInfo(const StoreInst *S, const MemoryLocation &Loc) { in getModRefInfo() argument 285 if (Loc.Ptr) { in getModRefInfo() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Analysis/ |
| HD | AliasAnalysis.h | 176 virtual bool pointsToConstantMemory(const MemoryLocation &Loc, 341 ModRefResult getModRefInfo(const Instruction *I, const MemoryLocation &Loc) { in getModRefInfo() argument 343 case Instruction::VAArg: return getModRefInfo((const VAArgInst*)I, Loc); in getModRefInfo() 344 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc); in getModRefInfo() 345 case Instruction::Store: return getModRefInfo((const StoreInst*)I, Loc); in getModRefInfo() 346 case Instruction::Fence: return getModRefInfo((const FenceInst*)I, Loc); in getModRefInfo() 348 return getModRefInfo((const AtomicCmpXchgInst*)I, Loc); in getModRefInfo() 350 return getModRefInfo((const AtomicRMWInst*)I, Loc); in getModRefInfo() 351 case Instruction::Call: return getModRefInfo((const CallInst*)I, Loc); in getModRefInfo() 352 case Instruction::Invoke: return getModRefInfo((const InvokeInst*)I,Loc); in getModRefInfo() [all …]
|
| /NextBSD/contrib/llvm/tools/llvm-readobj/ |
| HD | StackMapPrinter.h | 43 for (const auto &Loc : R.locations()) { in prettyPrintStackMap() local 45 switch (Loc.getKind()) { in prettyPrintStackMap() 47 OS << "Register R#" << Loc.getDwarfRegNum(); in prettyPrintStackMap() 50 OS << "Direct R#" << Loc.getDwarfRegNum() << " + " in prettyPrintStackMap() 51 << Loc.getOffset(); in prettyPrintStackMap() 54 OS << "Indirect [R#" << Loc.getDwarfRegNum() << " + " in prettyPrintStackMap() 55 << Loc.getOffset() << "]"; in prettyPrintStackMap() 58 OS << "Constant " << Loc.getSmallConstant(); in prettyPrintStackMap() 61 OS << "ConstantIndex #" << Loc.getConstantIndex() << " (" in prettyPrintStackMap() 62 << SMP.getConstant(Loc.getConstantIndex()).getValue() << ")"; in prettyPrintStackMap()
|
| /NextBSD/contrib/llvm/lib/CodeGen/ |
| HD | StackMaps.cpp | 169 for (const auto &Loc : CSLocs) { in print() local 171 switch (Loc.Type) { in print() 178 OS << TRI->getName(Loc.Reg); in print() 180 OS << Loc.Reg; in print() 185 OS << TRI->getName(Loc.Reg); in print() 187 OS << Loc.Reg; in print() 188 if (Loc.Offset) in print() 189 OS << " + " << Loc.Offset; in print() 194 OS << TRI->getName(Loc.Reg); in print() 196 OS << Loc.Reg; in print() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| HD | SValBuilder.cpp | 33 if (Loc::isLocType(type)) in makeZeroVal() 50 assert(!Loc::isLocType(type)); in makeNonLoc() 58 assert(!Loc::isLocType(type)); in makeNonLoc() 65 assert(!Loc::isLocType(type)); in makeNonLoc() 72 assert(!Loc::isLocType(toTy)); in makeNonLoc() 103 if (Loc::isLocType(T)) in getRegionValueSymbolVal() 134 if (Loc::isLocType(type)) in conjureSymbolVal() 150 if (Loc::isLocType(type)) in conjureSymbolVal() 161 assert(Loc::isLocType(T)); in getConjuredHeapSymbolVal() 177 if (Loc::isLocType(type)) in getMetadataSymbolVal() [all …]
|