| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | SourceLocationEncoding.h | 43 using UIntTy = SourceLocation::UIntTy; variable 46 static UIntTy encodeRaw(UIntTy Raw) { in encodeRaw() 49 static UIntTy decodeRaw(UIntTy Raw) { in decodeRaw() 88 using UIntTy = SourceLocation::UIntTy; variable 94 UIntTy &Prev; 98 static UIntTy zigZag(UIntTy V) { in zigZag() 99 UIntTy Sign = (V & (1 << (UIntBits - 1))) ? UIntTy(-1) : UIntTy(0); in zigZag() 102 static UIntTy zagZig(UIntTy V) { return (V >> 1) ^ -(V & 1); } in zagZig() 106 EncodedTy encodeRaw(UIntTy Raw) { in encodeRaw() 112 UIntTy Delta = Rotated - Prev; in encodeRaw() [all …]
|
| H A D | ASTBitCodes.h | 179 SourceLocation::UIntTy Begin; 182 SourceLocation::UIntTy End; 203 SourceLocation::UIntTy Begin; 205 SourceLocation::UIntTy End; 243 SourceLocation::UIntTy Loc = 0;
|
| H A D | ModuleFile.h | 267 SourceLocation::UIntTy SLocEntryBaseOffset = 0; 281 ContinuousRangeMap<SourceLocation::UIntTy, SourceLocation::IntTy, 2>
|
| H A D | ASTWriter.h | 338 SourceLocation::UIntTy Loc;
|
| H A D | ASTReader.h | 2162 SourceLocation ReadUntranslatedSourceLocation(SourceLocation::UIntTy Raw, 2169 SourceLocation::UIntTy Raw,
|
| /llvm-project-15.0.7/clang/unittests/Serialization/ |
| H A D | SourceLocationEncodingTest.cpp | 23 void roundTrip(SourceLocation::UIntTy Loc, in roundTrip() 29 SourceLocation::UIntTy DecodedEncoded = in roundTrip() 35 void roundTrip(std::vector<SourceLocation::UIntTy> Locs, in roundTrip() 47 std::vector<SourceLocation::UIntTy> DecodedEncoded; 59 constexpr SourceLocation::UIntTy MacroBit = 60 1 << (sizeof(SourceLocation::UIntTy) * CHAR_BIT - 1); 61 constexpr SourceLocation::UIntTy Big = MacroBit >> 1; 62 constexpr SourceLocation::UIntTy Biggest = -1;
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 470 SourceLocation::UIntTy Offset : OffsetBits; 471 SourceLocation::UIntTy IsExpansion : 1; 504 static SLocEntry get(SourceLocation::UIntTy Offset, in get() 696 SourceLocation::UIntTy NextLocalOffset; 702 SourceLocation::UIntTy CurrentLoadedOffset; 706 static const SourceLocation::UIntTy MaxLoadedOffset = 707 1ULL << (8 * sizeof(SourceLocation::UIntTy) - 1); 1345 SourceLocation::UIntTy LocOffs = Loc.getOffset(); 1539 SourceLocation::UIntTy Offs = Loc.getOffset(); 1660 SourceLocation::UIntTy LHSOffset = LHS.getOffset(); in isBeforeInSLocAddrSpace() [all …]
|
| H A D | SourceLocation.h | 93 using UIntTy = uint32_t; 97 UIntTy ID = 0; 99 enum : UIntTy { MacroIDBit = 1ULL << (8 * sizeof(UIntTy) - 1) }; 115 UIntTy getOffset() const { return ID & ~MacroIDBit; } 117 static SourceLocation getFileLoc(UIntTy ID) { 124 static SourceLocation getMacroLoc(UIntTy ID) { 146 UIntTy getRawEncoding() const { return ID; } 152 static SourceLocation getFromRawEncoding(UIntTy Encoding) { 172 return getFromRawEncoding((SourceLocation::UIntTy)(uintptr_t)Encoding); 491 constexpr clang::SourceLocation::UIntTy Zero = 0; [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 453 std::pair<int, SourceLocation::UIntTy> 536 SourceLocation::UIntTy LoadedOffset) { in createFileID() 565 SourceLocation::UIntTy LoadedOffset, in createFileID() 579 SourceLocation::UIntTy LoadedOffset, in createFileID() 643 SourceLocation::UIntTy LoadedOffset) { in createExpansionLoc() 830 SourceLocation::UIntTy MidOffset = in getFileIDLocal() 1619 SourceLocation::UIntTy NextOffset; in getFileIDSize() 1827 SourceLocation::UIntTy SpellBeginOffs = SpellLoc.getOffset(); in associateFileChunkWithMacroArgExp() 1840 SourceLocation::UIntTy SpellFIDBeginOffs = Entry.getOffset(); in associateFileChunkWithMacroArgExp() 1934 SourceLocation::UIntTy MacroArgBeginOffs = I->first; in getMacroArgExpandedLocation() [all …]
|
| H A D | SourceLocation.cpp | 54 return llvm::DenseMapInfo<UIntTy>::getHashValue(ID); in getHashValue()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | NestedNameSpecifier.cpp | 360 unsigned Length = sizeof(SourceLocation::UIntTy); in getLocalDataLength() 372 Length += sizeof(SourceLocation::UIntTy); in getLocalDataLength() 397 SourceLocation::UIntTy Raw; in LoadSourceLocation() 437 LoadSourceLocation(Data, Offset + sizeof(SourceLocation::UIntTy))); in getLocalSourceRange() 492 SourceLocation::UIntTy Raw = Loc.getRawEncoding(); in SaveSourceLocation()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | Token.h | 36 SourceLocation::UIntTy Loc; 46 SourceLocation::UIntTy UintData;
|
| /llvm-project-15.0.7/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 460 template <class UIntTy> 461 void emitBlob(ArrayRef<UIntTy> Bytes, bool ShouldEmitSize = true) { 470 assert(llvm::all_of(Bytes, [](UIntTy B) { return isUInt<8>(B); }));
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclarationName.h | 672 SourceLocation::UIntTy BeginOpNameLoc; 673 SourceLocation::UIntTy EndOpNameLoc; 678 SourceLocation::UIntTy OpNameLoc;
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | TokenLexer.cpp | 972 SourceLocation::UIntTy relativeOffset = 0; in getExpansionLocForMacroDefLoc() 1031 SourceLocation::UIntTy FullLength = in updateConsecutiveMacroArgTokens()
|
| H A D | ModuleMap.cpp | 1402 SourceLocation::UIntTy Location;
|
| H A D | Lexer.cpp | 595 const SourceLocation::UIntTy StartOffset = 1; in ComputePreamble()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 1521 SourceLocation::UIntTy BaseOffset = F->SLocEntryBaseOffset; in ReadSLocEntry() 3451 SourceLocation::UIntTy SLocSpaceSize = Record[1]; in ReadASTBlock() 3872 ContinuousRangeMap<SourceLocation::UIntTy, SourceLocation::IntTy, in ReadModuleOffsetMap() 3906 SourceLocation::UIntTy SLocOffset = in ReadModuleOffsetMap() 3931 constexpr SourceLocation::UIntTy SLocNone = in ReadModuleOffsetMap() 3932 std::numeric_limits<SourceLocation::UIntTy>::max(); in ReadModuleOffsetMap()
|
| H A D | ASTWriter.cpp | 2153 SourceLocation::UIntTy NextOffset = SourceMgr.getNextLocalOffset(); in WriteSourceManagerBlock()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 12202 SourceLocation::UIntTy LocEncoding; in getAddressOfLocalVariable() 12208 SourceLocation::UIntTy LocEncoding, Address Addr, in getAddressOfLocalVariable()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 2077 (SourceLocation::UIntTy)(uintptr_t)data[1]); in getLoc()
|