| /freebsd-12.1/contrib/llvm/tools/lld/ELF/Arch/ |
| H A D | RISCV.cpp | 137 write16le(Loc, (read16le(Loc) & 0x0F83) | 0x4000); in relocateOne() 215 *Loc += Val; in relocateOne() 218 write16le(Loc, read16le(Loc) + Val); in relocateOne() 221 write32le(Loc, read32le(Loc) + Val); in relocateOne() 224 write64le(Loc, read64le(Loc) + Val); in relocateOne() 227 *Loc = (*Loc & 0xc0) | (((*Loc & 0x3f) - Val) & 0x3f); in relocateOne() 233 write16le(Loc, read16le(Loc) - Val); in relocateOne() 236 write32le(Loc, read32le(Loc) - Val); in relocateOne() 239 write64le(Loc, read64le(Loc) - Val); in relocateOne() 242 *Loc = (*Loc & 0xc0) | (Val & 0x3f); in relocateOne() [all …]
|
| H A D | X86_64.cpp | 271 write64le(Loc, Val); in relaxTlsLdToLe() 285 if (Loc[4] == 0xe8) { in relaxTlsLdToLe() 299 if (Loc[4] == 0xff && Loc[5] == 0x15) { in relaxTlsLdToLe() 308 Loc[-3] = 0x66; in relaxTlsLdToLe() 322 *Loc = Val; in relocateOne() 422 Loc[-2] = 0xf7; in relaxGotNoPic() 455 Loc[-2] = 0x81; in relaxGotNoPic() 457 write32le(Loc, Val); in relaxGotNoPic() 467 Loc[-2] = 0x8d; in relaxGot() 511 if (Loc + 8 >= End) in adjustPrologueForCrossSplitStack() [all …]
|
| H A D | PPC64.cpp | 403 write32(Loc, ((DFormOp << 26) | (read32(Loc) & 0x03FFFFFF))); in relaxTlsIeToLe() 628 uint8_t AALK = Loc[3]; in relocateOne() 635 write16(Loc, Val); in relocateOne() 644 write16(Loc, (read16(Loc) & Mask) | lo(Val)); in relocateOne() 657 write16(Loc, hi(Val)); in relocateOne() 710 write16(Loc, (read16(Loc) & Mask) | lo(Val)); in relocateOne() 715 write32(Loc, Val); in relocateOne() 720 write64(Loc, Val); in relocateOne() 726 write32(Loc, (read32(Loc) & ~Mask) | (Val & Mask)); in relocateOne() 733 write32(Loc, (read32(Loc) & ~Mask) | (Val & Mask)); in relocateOne() [all …]
|
| H A D | AArch64.cpp | 256 write16le(Loc, Val); in relocateOne() 261 write32le(Loc, Val); in relocateOne() 266 write64le(Loc, Val); in relocateOne() 269 or32AArch64Imm(Loc, Val); in relocateOne() 275 checkInt(Loc, Val, 33, Type); in relocateOne() 279 checkInt(Loc, Val, 21, Type); in relocateOne() 280 write32AArch64Addr(Loc, Val); in relocateOne() 290 write32le(Loc, 0x14000000); in relocateOne() 351 or32AArch64Imm(Loc, Val); in relocateOne() 370 checkUInt(Loc, Val, 32, Type); in relaxTlsGdToLe() [all …]
|
| H A D | SPARCV9.cpp | 82 write32be(Loc, Val); in relocateOne() 86 checkInt(Loc, Val, 32, Type); in relocateOne() 87 write32be(Loc, Val); in relocateOne() 92 checkInt(Loc, Val, 32, Type); in relocateOne() 93 write32be(Loc, (read32be(Loc) & ~0x3fffffff) | ((Val >> 2) & 0x3fffffff)); in relocateOne() 98 write32be(Loc, (read32be(Loc) & ~0x003fffff) | (Val & 0x003fffff)); in relocateOne() 103 write32be(Loc, (read32be(Loc) & ~0x003fffff) | ((Val >> 10) & 0x003fffff)); in relocateOne() 107 checkInt(Loc, Val, 21, Type); in relocateOne() 108 write32be(Loc, (read32be(Loc) & ~0x0007ffff) | ((Val >> 2) & 0x0007ffff)); in relocateOne() 113 write32be(Loc, (read32be(Loc) & ~0x000003ff) | (Val & 0x000003ff)); in relocateOne() [all …]
|
| H A D | Mips.cpp | 204 uint32_t V = read32<E>(Loc); in readShuffle() 213 uint32_t Instr = read32<E>(Loc); in writeValue() 216 write32<E>(Loc, Data); in writeValue() 236 uint16_t Instr = read16<E>(Loc); in writeMicroRelocation16() 239 write16<E>(Loc, Data); in writeMicroRelocation16() 488 write32<E>(Loc, Val); in relocateOne() 493 write64<E>(Loc, Val); in relocateOne() 524 checkInt(Loc, Val, 16, Type); in relocateOne() 538 checkInt(Loc, Val, 16, Type); in relocateOne() 550 checkInt(Loc, Val, 7, Type); in relocateOne() [all …]
|
| H A D | X86.cpp | 272 *Loc = Val; in relocateOne() 276 *Loc = Val; in relocateOne() 280 write16le(Loc, Val); in relocateOne() 294 write16le(Loc, Val); in relocateOne() 317 write32le(Loc, Val); in relocateOne() 368 Loc[-1] = 0xb8; in relaxTlsIeToLe() 371 Loc[-2] = 0xc7; in relaxTlsIeToLe() 375 Loc[-2] = 0x81; in relaxTlsIeToLe() 382 Loc[-2] = 0xc7; in relaxTlsIeToLe() 386 Loc[-2] = 0x8d; in relaxTlsIeToLe() [all …]
|
| H A D | Hexagon.cpp | 188 or32le(Loc, applyMask(findMaskR6(read32le(Loc)), Val)); in relocateOne() 191 or32le(Loc, applyMask(findMaskR8(read32le(Loc)), Val)); in relocateOne() 201 or32le(Loc, applyMask(findMaskR11(read32le(Loc)), Val & 0x3f)); in relocateOne() 204 or32le(Loc, applyMask(0x000007e0, Val)); in relocateOne() 208 or32le(Loc, applyMask(findMaskR16(read32le(Loc)), Val & 0x3f)); in relocateOne() 212 or32le(Loc, Val); in relocateOne() 216 or32le(Loc, applyMask(0x0fff3fff, Val >> 6)); in relocateOne() 219 or32le(Loc, applyMask(0x003000fe, Val >> 2)); in relocateOne() 225 or32le(Loc, applyMask(0x00202ffe, Val >> 2)); in relocateOne() 235 or32le(Loc, applyMask(0x1ff3ffe, Val >> 2)); in relocateOne() [all …]
|
| H A D | ARM.cpp | 402 write32le(Loc, 1); in relocateOne() 406 write32le(Loc, (read32le(Loc) & 0x80000000) | (Val & ~0x80000000)); in relocateOne() 423 write32le(Loc, 0xeb000000 | (read32le(Loc) & 0x00ffffff)); in relocateOne() 434 write16le(Loc, (read32le(Loc) & 0xf800) | ((Val >> 1) & 0x07ff)); in relocateOne() 439 write16le(Loc, in relocateOne() 458 write16le(Loc + 2, (read16le(Loc + 2) & ~0x1000) | (Val & 1) << 12); in relocateOne() 463 write16le(Loc, in relocateOne() 477 write16le(Loc, in relocateOne() 494 write32le(Loc, (read32le(Loc) & ~0x000f0fff) | in relocateOne() 500 write16le(Loc, in relocateOne() [all …]
|
| H A D | MSP430.cpp | 38 const uint8_t *Loc) const override; 49 const uint8_t *Loc) const { in getRelExpr() 63 void MSP430::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne() argument 66 checkIntUInt(Loc, Val, 8, Type); in relocateOne() 67 *Loc = Val; in relocateOne() 73 checkIntUInt(Loc, Val, 16, Type); in relocateOne() 74 write16le(Loc, Val); in relocateOne() 77 checkIntUInt(Loc, Val, 32, Type); in relocateOne() 78 write32le(Loc, Val); in relocateOne() 82 checkInt(Loc, Offset, 10, Type); in relocateOne() [all …]
|
| H A D | PPC.cpp | 25 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override; 27 const uint8_t *Loc) const override; 38 const uint8_t *Loc) const { in getRelExpr() 51 void PPC::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne() argument 54 write16be(Loc, (Val + 0x8000) >> 16); in relocateOne() 57 write16be(Loc, Val >> 16); in relocateOne() 60 write16be(Loc, Val); in relocateOne() 64 write32be(Loc, Val); in relocateOne() 67 write32be(Loc, read32be(Loc) | (Val & 0xFFFC)); in relocateOne() 71 write32be(Loc, read32be(Loc) | (Val & 0x3FFFFFC)); in relocateOne() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Lex/ |
| H A D | PPCallbacks.h | 403 First->Ident(Loc, str); in Ident() 404 Second->Ident(Loc, str); in Ident() 426 First->PragmaDebug(Loc, DebugType); in PragmaDebug() 427 Second->PragmaDebug(Loc, DebugType); in PragmaDebug() 477 First->PragmaWarningPop(Loc); in PragmaWarningPop() 478 Second->PragmaWarningPop(Loc); in PragmaWarningPop() 487 First->PragmaAssumeNonNullEnd(Loc); in PragmaAssumeNonNullEnd() 551 First->Else(Loc, IfLoc); in Else() 552 Second->Else(Loc, IfLoc); in Else() 557 First->Endif(Loc, IfLoc); in Endif() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 94 assert(Loc.hasManager() || Loc.isInvalid()); in emitDiagnostic() 98 if (!Loc.isValid()) in emitDiagnostic() 119 Loc = Loc.getFileLoc(); in emitDiagnostic() 138 LastLoc = Loc; in emitDiagnostic() 185 emitImportStack(Loc); in emitIncludeStack() 192 if (Loc.isInvalid()) { in emitIncludeStackRecursively() 221 if (Loc.isInvalid()) { in emitImportStack() 269 return Loc; in retrieveMacroLocation() 270 if (!Loc.isMacroID()) in retrieveMacroLocation() 323 Loc = SM->getImmediateSpellingLoc(Loc); in getMacroArgExpansionFileIDs() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | TypeLoc.h | 530 setNameLoc(Loc); in initializeLocal() 1079 setNameLoc(Loc); in initializeLocal() 1193 setSigilLoc(Loc); in initializeLocal() 1210 setSigilLoc(Loc); in setStarLoc() 1223 setSigilLoc(Loc); in setCaretLoc() 1241 setSigilLoc(Loc); in setStarLoc() 1257 setSigilLoc(Loc); in initializeLocal() 1873 void setKWLoc(SourceLocation Loc) { getLocalData()->KWLoc = Loc; } in setKWLoc() argument 1923 setNameLoc(Loc); in setTemplateNameLoc() 2250 setKWLoc(Loc); in initializeLocal() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cc | 49 Location Loc = Data->Loc.acquire(); in handleTypeMismatchImpl() local 114 Location Loc = Data->Loc.acquire(); in handleAlignmentAssumptionImpl() local 170 SourceLocation Loc = Data->Loc.acquire(); in handleIntegerOverflowImpl() local 209 SourceLocation Loc = Data->Loc.acquire(); in handleNegateOverflowImpl() local 246 SourceLocation Loc = Data->Loc.acquire(); in handleDivremOverflowImpl() local 291 SourceLocation Loc = Data->Loc.acquire(); in handleShiftOutOfBoundsImpl() local 341 SourceLocation Loc = Data->Loc.acquire(); in handleOutOfBoundsImpl() local 396 SourceLocation Loc = Data->Loc.acquire(); in handleVLABoundNotPositive() local 482 SourceLocation Loc = Data->Loc.acquire(); in handleLoadInvalidValue() local 515 SourceLocation Loc = Data->Loc.acquire(); in handleImplicitConversion() local [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | SemaCoroutine.cpp | 170 TemplateArgumentListInfo Args(Loc, Loc); in lookupCoroutineHandleType() 329 S.ActOnCallExpr(/*Scope=*/nullptr, DeclRef.get(), Loc, CallArgs, Loc); in buildBuiltinCall() 359 return S.ActOnCallExpr(nullptr, FromAddr.get(), Loc, FramePtr, Loc); in buildCoroutineHandle() 391 return S.ActOnCallExpr(nullptr, Result.get(), Loc, Args, Loc, nullptr); in buildMemberCall() 714 Diag(Loc, in BuildUnresolvedCoawaitExpr() 1041 Loc, in diagReturnOnAllocFailure() 1075 S.ActOnCallExpr(nullptr, DeclNameExpr.get(), Loc, {}, Loc); in makeReturnOnAllocFailure() 1238 S.ActOnCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr() 1264 S.ActOnCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr() 1447 S.ActOnDeclStmt(S.ConvertDeclToDeclGroup(GroDecl), Loc, Loc); in makeGroDeclAndReturnStmt() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/ |
| H A D | PPConditionalDirectiveRecord.cpp | 50 if (Loc.isInvalid()) in findConditionalDirectiveRegionLoc() 56 Loc)) in findConditionalDirectiveRegionLoc() 78 void PPConditionalDirectiveRecord::If(SourceLocation Loc, in If() argument 82 CondDirectiveStack.push_back(Loc); in If() 85 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, in Ifdef() argument 89 CondDirectiveStack.push_back(Loc); in Ifdef() 96 CondDirectiveStack.push_back(Loc); in Ifndef() 99 void PPConditionalDirectiveRecord::Elif(SourceLocation Loc, in Elif() argument 104 CondDirectiveStack.back() = Loc; in Elif() 107 void PPConditionalDirectiveRecord::Else(SourceLocation Loc, in Else() argument [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | TypeLoc.cpp | 443 setNameLoc(Loc); in initializeLocal() 446 setProtocolLAngleLoc(Loc); in initializeLocal() 449 setProtocolLoc(i, Loc); in initializeLocal() 465 setProtocolLoc(i, Loc); in initializeLocal() 478 setKWLoc(Loc); in initializeLocal() 479 setRParenLoc(Loc); in initializeLocal() 480 setLParenLoc(Loc); in initializeLocal() 499 setNameLoc(Loc); in initializeLocal() 514 setTemplateNameLoc(Loc); in initializeLocal() 515 setLAngleLoc(Loc); in initializeLocal() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/TableGen/ |
| H A D | SetTheory.cpp | 42 ArrayRef<SMLoc> Loc) override { in apply() 50 ArrayRef<SMLoc> Loc) override { in apply() 55 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 66 ArrayRef<SMLoc> Loc) override { in apply() 71 ST.evaluate(Expr->arg_begin()[0], S1, Loc); in apply() 72 ST.evaluate(Expr->arg_begin()[1], S2, Loc); in apply() 85 ArrayRef<SMLoc> Loc) override { in apply() 90 ST.evaluate(Expr->arg_begin()[0], Set, Loc); in apply() 161 ArrayRef<SMLoc> Loc) override { in apply() 180 ArrayRef<SMLoc> Loc) override { in apply() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Frontend/ |
| H A D | DiagnosticRenderer.h | 83 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 87 virtual void emitCodeContext(FullSourceLoc Loc, 93 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 105 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 107 void emitIncludeStackRecursively(FullSourceLoc Loc); 108 void emitImportStack(FullSourceLoc Loc); 111 void emitCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level, 113 void emitSingleMacroExpansion(FullSourceLoc Loc, 153 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 156 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 1105 FileID FID = getFileID(Loc); in getModuleImportLoc() 1120 if (Loc.isFileID()) return Loc; in getExpansionLoc() 1128 if (Loc.isFileID()) return Loc; in getFileLoc() 1168 if (Loc.isFileID()) return Loc; in getSpellingLoc() 1197 FileID FID = getFileID(Loc); in getDecomposedLoc() 1211 FileID FID = getFileID(Loc); in getDecomposedExpansionLoc() 1218 if (Loc.isFileID()) in getDecomposedExpansionLoc() 1230 FileID FID = getFileID(Loc); in getDecomposedSpellingLoc() 1237 if (Loc.isFileID()) in getDecomposedSpellingLoc() 1688 if (!Loc.isMacroID()) return Loc; in getImmediateMacroCallerLoc() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/ELF/ |
| H A D | Target.h | 78 const uint8_t *Loc) const = 0; 130 virtual void relaxGot(uint8_t *Loc, uint64_t Val) const; 161 std::string Loc; member 165 ErrorPlace getErrorPlace(const uint8_t *Loc); 167 static inline std::string getErrorLocation(const uint8_t *Loc) { in getErrorLocation() argument 168 return getErrorPlace(Loc).Loc; in getErrorLocation() 190 ErrorPlace ErrPlace = getErrorPlace(Loc); in reportRangeError() 196 errorOrWarn(ErrPlace.Loc + "relocation " + lld::toString(Type) + in reportRangeError() 206 inline void checkInt(uint8_t *Loc, int64_t V, int N, RelType Type) { in checkInt() argument 214 reportRangeError(Loc, Type, Twine(V), 0, llvm::maxUIntN(N)); in checkUInt() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/llvm-mca/ |
| H A D | CodeRegion.cpp | 20 bool CodeRegion::isLocInRange(llvm::SMLoc Loc) const { in isLocInRange() 21 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) in isLocInRange() 23 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) in isLocInRange() 32 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Warning, in beginRegion() 40 addRegion(Description, Loc); in beginRegion() 43 void CodeRegions::endRegion(llvm::SMLoc Loc) { in endRegion() argument 47 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Warning, in endRegion() 52 CurrentRegion.setEndLocation(Loc); in endRegion() 56 const llvm::SMLoc &Loc = Instruction.getLoc(); in addInstruction() local 59 [Loc](const std::unique_ptr<CodeRegion> &Region) { in addInstruction() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/ |
| H A D | TemplateDeduction.h | 46 SourceLocation Loc; variable 64 : Loc(Loc), DeducedDepth(DeducedDepth) {} in Loc() function 71 return Loc; in getLocation() 136 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSFINAEDiagnostic() 141 void addSuppressedDiagnostic(SourceLocation Loc, in addSuppressedDiagnostic() argument 145 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); in addSuppressedDiagnostic() 305 SourceLocation Loc; variable 316 : Loc(Loc), ForTakingAddress(ForTakingAddress) {} in Loc() function 322 SourceLocation getLocation() const { return Loc; } in getLocation() 343 void NoteCandidates(Sema &S, SourceLocation Loc); [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 891 return Loc; in getExpansionLocSlowCase() 898 Loc = Loc.getLocWithOffset(LocInfo.second); in getSpellingLocSlowCase() 900 return Loc; in getSpellingLocSlowCase() 906 Loc = getImmediateSpellingLoc(Loc); in getFileLocSlowCase() 908 Loc = getImmediateExpansionRange(Loc).getBegin(); in getFileLocSlowCase() 910 return Loc; in getFileLocSlowCase() 940 Loc = Loc.getLocWithOffset(Offset); in getDecomposedSpellingLocSlowCase() 955 if (Loc.isFileID()) return Loc; in getImmediateSpellingLoc() 972 Loc = getImmediateSpellingLoc(Loc); in getTopMacroCallerLoc() 973 return Loc; in getTopMacroCallerLoc() [all …]
|