Home
last modified time | relevance | path

Searched refs:UIntTy (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Serialization/
H A DSourceLocationEncoding.h43 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 DASTBitCodes.h179 SourceLocation::UIntTy Begin;
182 SourceLocation::UIntTy End;
203 SourceLocation::UIntTy Begin;
205 SourceLocation::UIntTy End;
243 SourceLocation::UIntTy Loc = 0;
H A DModuleFile.h267 SourceLocation::UIntTy SLocEntryBaseOffset = 0;
281 ContinuousRangeMap<SourceLocation::UIntTy, SourceLocation::IntTy, 2>
H A DASTWriter.h338 SourceLocation::UIntTy Loc;
H A DASTReader.h2162 SourceLocation ReadUntranslatedSourceLocation(SourceLocation::UIntTy Raw,
2169 SourceLocation::UIntTy Raw,
/llvm-project-15.0.7/clang/unittests/Serialization/
H A DSourceLocationEncodingTest.cpp23 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 DSourceManager.h470 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 DSourceLocation.h93 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 DSourceManager.cpp453 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 DSourceLocation.cpp54 return llvm::DenseMapInfo<UIntTy>::getHashValue(ID); in getHashValue()
/llvm-project-15.0.7/clang/lib/AST/
H A DNestedNameSpecifier.cpp360 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 DToken.h36 SourceLocation::UIntTy Loc;
46 SourceLocation::UIntTy UintData;
/llvm-project-15.0.7/llvm/include/llvm/Bitstream/
H A DBitstreamWriter.h460 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 DDeclarationName.h672 SourceLocation::UIntTy BeginOpNameLoc;
673 SourceLocation::UIntTy EndOpNameLoc;
678 SourceLocation::UIntTy OpNameLoc;
/llvm-project-15.0.7/clang/lib/Lex/
H A DTokenLexer.cpp972 SourceLocation::UIntTy relativeOffset = 0; in getExpansionLocForMacroDefLoc()
1031 SourceLocation::UIntTy FullLength = in updateConsecutiveMacroArgTokens()
H A DModuleMap.cpp1402 SourceLocation::UIntTy Location;
H A DLexer.cpp595 const SourceLocation::UIntTy StartOffset = 1; in ComputePreamble()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp1521 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 DASTWriter.cpp2153 SourceLocation::UIntTy NextOffset = SourceMgr.getNextLocalOffset(); in WriteSourceManagerBlock()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp12202 SourceLocation::UIntTy LocEncoding; in getAddressOfLocalVariable()
12208 SourceLocation::UIntTy LocEncoding, Address Addr, in getAddressOfLocalVariable()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp2077 (SourceLocation::UIntTy)(uintptr_t)data[1]); in getLoc()