Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DSourceLocationEncoding.h48 using UIntTy = SourceLocation::UIntTy; variable
49 constexpr static unsigned UIntBits = CHAR_BIT * sizeof(UIntTy);
51 static UIntTy encodeRaw(UIntTy Raw) { in encodeRaw()
54 static UIntTy decodeRaw(UIntTy Raw) { in decodeRaw()
62 static RawLocEncoding encode(SourceLocation Loc, UIntTy BaseOffset,
97 using UIntTy = SourceLocation::UIntTy; variable
100 static_assert(sizeof(EncodedTy) > sizeof(UIntTy), "Need one extra bit!");
103 UIntTy &Prev;
107 static UIntTy zigZag(UIntTy V) { in zigZag()
108 UIntTy Sign = (V & (1 << (UIntBits - 1))) ? UIntTy(-1) : UIntTy(0); in zigZag()
[all …]
H A DASTWriter.h378 SourceLocation::UIntTy Loc;
501 std::vector<SourceLocation::UIntTy> NonAffectingOffsetAdjustments;
531 SourceLocation::UIntTy getAdjustedOffset(SourceLocation::UIntTy Offset) const;
534 SourceLocation::UIntTy getAdjustment(SourceLocation::UIntTy Offset) const;
H A DModuleFile.h288 SourceLocation::UIntTy SLocEntryBaseOffset = 0;
H A DASTReader.h812 SourceLocation::UIntTy RawLoc;
825 SourceLocation::UIntTy RawLoc;
940 SourceLocation::UIntTy RawLoc;
2173 int getSLocEntryID(SourceLocation::UIntTy SLocOffset) override;
2176 llvm::Expected<SourceLocation::UIntTy> readSLocOffset(ModuleFile *F,
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h482 static constexpr int OffsetBits = 8 * sizeof(SourceLocation::UIntTy) - 1;
483 SourceLocation::UIntTy Offset : OffsetBits;
485 SourceLocation::UIntTy IsExpansion : 1;
494 SourceLocation::UIntTy getOffset() const { return Offset; } in getOffset()
514 static SLocEntry getOffsetOnly(SourceLocation::UIntTy Offset) { in getOffsetOnly()
521 static SLocEntry get(SourceLocation::UIntTy Offset, const FileInfo &FI) { in get()
530 static SLocEntry get(SourceLocation::UIntTy Offset, in get()
559 virtual int getSLocEntryID(SourceLocation::UIntTy SLocOffset) = 0;
737 SourceLocation::UIntTy NextLocalOffset;
743 SourceLocation::UIntTy CurrentLoadedOffset;
[all …]
H A DSourceLocation.h96 using UIntTy = uint32_t;
100 UIntTy ID = 0;
102 enum : UIntTy { MacroIDBit = 1ULL << (8 * sizeof(UIntTy) - 1) };
118 UIntTy getOffset() const { return ID & ~MacroIDBit; }
120 static SourceLocation getFileLoc(UIntTy ID) {
127 static SourceLocation getMacroLoc(UIntTy ID) {
149 UIntTy getRawEncoding() const { return ID; }
155 static SourceLocation getFromRawEncoding(UIntTy Encoding) {
175 return getFromRawEncoding((SourceLocation::UIntTy)(uintptr_t)Encoding);
499 constexpr clang::SourceLocation::UIntTy Zero = 0;
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp464 std::pair<int, SourceLocation::UIntTy>
466 SourceLocation::UIntTy TotalSize) { in AllocateLoadedSLocEntries()
550 SourceLocation::UIntTy LoadedOffset) { in createFileID()
570 SourceLocation::UIntTy LoadedOffset, in createFileID()
584 SourceLocation::UIntTy LoadedOffset, in createFileID()
607 SourceLocation::UIntTy LoadedOffset) { in createFileIDImpl()
650 SourceLocation::UIntTy LoadedOffset) { in createExpansionLoc()
669 SourceLocation::UIntTy LoadedOffset) { in createExpansionLocImpl()
783 FileID SourceManager::getFileIDSlow(SourceLocation::UIntTy SLocOffset) const { in getFileIDSlow()
798 FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const { in getFileIDLocal()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DToken.h38 SourceLocation::UIntTy Loc;
48 SourceLocation::UIntTy UintData;
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitstream/
H A DBitstreamWriter.h546 template <class UIntTy>
547 void emitBlob(ArrayRef<UIntTy> Bytes, bool ShouldEmitSize = true) {
556 assert(llvm::all_of(Bytes, [](UIntTy B) { return isUInt<8>(B); }));
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DTokenLexer.cpp973 SourceLocation::UIntTy relativeOffset = 0; in getExpansionLocForMacroDefLoc()
1038 SourceLocation::UIntTy FullLength = in updateConsecutiveMacroArgTokens()
H A DModuleMap.cpp1480 SourceLocation::UIntTy Location;
H A DLexer.cpp643 const SourceLocation::UIntTy StartOffset = 1; in ComputePreamble()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreter.cpp693 QualType UIntTy = Ctx.getBitIntType(/*Unsigned=*/true, PtrBits); in HandleIntegralOrEnumType() local
694 TypeSourceInfo *TSI = Ctx.getTrivialTypeSourceInfo(UIntTy); in HandleIntegralOrEnumType()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp2379 SourceLocation::UIntTy NextOffset = SourceMgr.getNextLocalOffset(); in WriteSourceManagerBlock()
5961 SourceLocation::UIntTy
5962 ASTWriter::getAdjustedOffset(SourceLocation::UIntTy Offset) const { in getAdjustedOffset()
5966 SourceLocation::UIntTy
5967 ASTWriter::getAdjustment(SourceLocation::UIntTy Offset) const { in getAdjustment()
5980 auto Contains = [](const SourceRange &Range, SourceLocation::UIntTy Offset) { in getAdjustment()
H A DASTReader.cpp1503 llvm::Expected<SourceLocation::UIntTy>
1539 int ASTReader::getSLocEntryID(SourceLocation::UIntTy SLocOffset) { in getSLocEntryID()
1550 [&](SourceLocation::UIntTy Offset, std::size_t LocalIndex) { in getSLocEntryID()
1644 SourceLocation::UIntTy BaseOffset = F->SLocEntryBaseOffset; in ReadSLocEntry()
3654 SourceLocation::UIntTy SLocSpaceSize = Record[1]; in ReadASTBlock()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp11382 SourceLocation::UIntTy LocEncoding; in getAddressOfLocalVariable()
11388 SourceLocation::UIntTy LocEncoding, Address Addr, in getAddressOfLocalVariable()