/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | PrettyClassDefinitionDumper.cpp | 34 ClassLayout Layout(Class); in start() local 35 start(Layout); in start() 38 void ClassDefinitionDumper::start(const ClassLayout &Layout) { in start() argument 39 prettyPrintClassIntro(Layout); in start() 42 DumpedAnything |= Dumper.start(Layout); in start() 44 prettyPrintClassOutro(Layout); in start() 47 void ClassDefinitionDumper::prettyPrintClassIntro(const ClassLayout &Layout) { in prettyPrintClassIntro() argument 51 uint32_t Size = Layout.getSize(); in prettyPrintClassIntro() 52 const PDBSymbolTypeUDT &Class = Layout.getClass(); in prettyPrintClassIntro() 54 if (Layout.getClass().isConstType()) in prettyPrintClassIntro() [all …]
|
H A D | PrettyClassLayoutGraphicalDumper.cpp | 35 bool PrettyClassLayoutGraphicalDumper::start(const UDTLayoutBase &Layout) { in start() argument 39 for (const auto &Other : Layout.other_items()) in start() 41 for (const auto &Func : Layout.funcs()) in start() 45 const BitVector &UseMap = Layout.usedBytes(); in start() 48 for (const auto &Item : Layout.layout_items()) { in start() 69 VTableLayoutItem &Layout = static_cast<VTableLayoutItem &>(*CurrentItem); in start() local 72 VarDumper.startVbptr(CurrentAbsoluteOffset, Layout.getSize()); in start() 85 auto TailPadding = Layout.tailPadding(); in start() 87 if (TailPadding != 1 || Layout.getSize() != 1) { in start() 113 BaseClassLayout &Layout = static_cast<BaseClassLayout &>(*CurrentItem); in dump() local [all …]
|
H A D | BytesOutputStyle.cpp | 203 auto Layout = File.getStreamLayout(StreamPDB); in dumpNameMap() local 204 P.formatMsfStreamData("Named Stream Map", File, Layout, NS); in dumpNameMap() 233 auto Layout = File.getStreamLayout(StreamDBI); in dumpSectionContributions() local 234 P.formatMsfStreamData("Section Contributions", File, Layout, NS); in dumpSectionContributions() 244 auto Layout = File.getStreamLayout(StreamDBI); in dumpSectionMap() local 245 P.formatMsfStreamData("Section Map", File, Layout, NS); in dumpSectionMap() 255 auto Layout = File.getStreamLayout(StreamDBI); in dumpModuleInfos() local 256 P.formatMsfStreamData("Module Infos", File, Layout, NS); in dumpModuleInfos() 266 auto Layout = File.getStreamLayout(StreamDBI); in dumpFileInfo() local 267 P.formatMsfStreamData("File Info", File, Layout, NS); in dumpFileInfo() [all …]
|
H A D | ExplainOutputStyle.cpp | 122 const auto &Layout = File.pdb().getMsfLayout(); in isPdbStreamDirectoryBlock() 123 return llvm::is_contained(Layout.DirectoryBlocks, pdbBlockIndex()); in isPdbStreamDirectoryBlock() local 127 const auto &Layout = File.pdb().getMsfLayout(); in getPdbBlockStreamIndex() 128 for (const auto &Entry : enumerate(Layout.StreamMap)) { in getPdbBlockStreamIndex() local 200 const MSFLayout &Layout = File.pdb().getMsfLayout(); in explainPdbFpmBlockOffset() 201 uint32_t MainFpm = Layout.mainFpmBlock(); in explainPdbFpmBlockOffset() local 202 uint32_t AltFpm = Layout.alternateFpmBlock(); in explainPdbFpmBlockOffset() 250 const auto &Layout = File.pdb().getStreamLayout(Stream); in explainPdbStreamOffset() 252 getOffsetInStream(Layout.Blocks, FileOffset, File.pdb().getBlockSize()); in explainPdbStreamOffset() 254 StreamOff, Layout in explainPdbStreamOffset() 251 const auto &Layout = File.pdb().getStreamLayout(Stream); explainPdbStreamOffset() local 279 const auto &Layout = File.pdb().getMsfLayout(); explainPdbStreamDirectoryOffset() local [all...] |
H A D | PrettyTypeDumper.cpp | 122 auto Layout = std::make_unique<ClassLayout>(std::move(Class)); in filterAndSortClassDefs() local 123 if (Layout->deepPaddingSize() < opts::pretty::PaddingThreshold) { in filterAndSortClassDefs() 127 if (Layout->immediatePadding() < opts::pretty::ImmediatePaddingThreshold) { in filterAndSortClassDefs() 132 Filtered.push_back(std::move(Layout)); in filterAndSortClassDefs() 264 auto Layout = std::make_unique<ClassLayout>(std::move(Class)); in start() local 265 if (Layout->deepPaddingSize() < opts::pretty::PaddingThreshold) in start() 268 dumpClassLayout(*Layout); in start()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | DbiModuleDescriptorBuilder.cpp | 47 ::memset(&Layout, 0, sizeof(Layout)); in DbiModuleDescriptorBuilder() 48 Layout.Mod = ModIndex; in DbiModuleDescriptorBuilder() 54 return Layout.ModDiStream; in getStreamIndex() 67 Layout.SC = SC; in setFirstSectionContrib() 114 uint32_t L = sizeof(Layout); in calculateSerializedLength() 121 Layout.FileNameOffs = 0; // TODO: Fix this in finalize() 122 Layout.Flags = 0; // TODO: Fix this in finalize() 123 Layout.C11Bytes = 0; in finalize() 124 Layout.C13Bytes = calculateC13DebugInfoSize(); in finalize() 125 (void)Layout.Mod; // Set in constructor in finalize() [all …]
|
H A D | DbiModuleDescriptor.cpp | 23 if (auto EC = Reader.readObject(Info.Layout)) in initialize() 35 return (Layout->Flags & ModInfoFlags::HasECFlagMask) != 0; in hasECInfo() 39 return (Layout->Flags & ModInfoFlags::TypeServerIndexMask) >> in getTypeServerIndex() 44 return Layout->SC; in getSectionContrib() 48 return Layout->ModDiStream; in getModuleStreamIndex() 52 return Layout->SymBytes; in getSymbolDebugInfoByteSize() 56 return Layout->C11Bytes; in getC11LineInfoByteSize() 60 return Layout->C13Bytes; in getC13LineInfoByteSize() 64 return Layout->NumFiles; in getNumberOfFiles() 68 return Layout [all...] |
H A D | PDBFileBuilder.cpp | 235 const msf::MSFLayout &Layout) { in commitSrcHeaderBlock() 240 Layout, MsfBuffer, SN, Allocator); in commitSrcHeaderBlock() 255 const msf::MSFLayout &Layout) { in commitInjectedSources() 260 commitSrcHeaderBlock(MsfBuffer, Layout); in commitInjectedSources() 266 Layout, MsfBuffer, SN, Allocator); in commitInjectedSources() 279 MSFLayout Layout; in commit() 281 Msf->commit(Filename, Layout); in commit() 291 Layout, Buffer, *ExpectedSN, Allocator); in commit() 303 Layout, Buffer, NSE.first, Allocator); in commit() 311 if (auto EC = Info->commit(Layout, Buffe in commit() 233 commitSrcHeaderBlock(WritableBinaryStream & MsfBuffer,const msf::MSFLayout & Layout) commitSrcHeaderBlock() argument 253 commitInjectedSources(WritableBinaryStream & MsfBuffer,const msf::MSFLayout & Layout) commitInjectedSources() argument 276 MSFLayout Layout; commit() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/ |
H A D | MappedBlockStream.cpp | 44 const MSFStreamLayout &Layout, in MappedBlockStream() 47 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream() 51 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream() 54 BlockSize, Layout, MsfData, Allocator); in createStream() 58 const MSFLayout &Layout, BinaryStreamRef MsfData, uint32_t StreamIndex, in createIndexedStream() 60 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index"); in createIndexedStream() 62 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream() 63 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream() 65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream() 69 MappedBlockStream::createDirectoryStream(const MSFLayout &Layout, 45 MappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) MappedBlockStream() argument 52 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument 59 createIndexedStream(const MSFLayout & Layout,BinaryStreamRef MsfData,uint32_t StreamIndex,BumpPtrAllocator & Allocator) createIndexedStream() argument 70 createDirectoryStream(const MSFLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createDirectoryStream() argument 80 createFpmStream(const MSFLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createFpmStream() argument 310 WritableMappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) WritableMappedBlockStream() argument 317 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument 325 createIndexedStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,uint32_t StreamIndex,BumpPtrAllocator & Allocator) createIndexedStream() argument 338 createDirectoryStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createDirectoryStream() argument 347 createFpmStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator,bool AltFpm) createFpmStream() argument [all...] |
H A D | MSFBuilder.cpp | 315 static void commitFpm(WritableBinaryStream &MsfBuffer, const MSFLayout &Layout, in commitFpm() 318 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator); in commitFpm() 321 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator, in commitFpm() 326 while (BI < Layout.SB->NumBlocks) { in commitFpm() 330 (BI < Layout.SB->NumBlocks) ? Layout.FreePageMap.test(BI) : true; in commitFpm() 341 MSFLayout &Layout) { in commit() 348 Layout = std::move(*L); in commit() 350 uint64_t FileSize = uint64_t(Layout.SB->BlockSize) * Layout in commit() 312 commitFpm(WritableBinaryStream & MsfBuffer,const MSFLayout & Layout,BumpPtrAllocator & Allocator) commitFpm() argument 338 commit(StringRef Path,MSFLayout & Layout) commit() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ASanStackFrameLayout.cpp | 66 ASanStackFrameLayout Layout; in ComputeASanStackFrameLayout() local 67 Layout.Granularity = Granularity; in ComputeASanStackFrameLayout() 68 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout() 78 assert(Layout.FrameAlignment >= Alignment); in ComputeASanStackFrameLayout() 91 Layout.FrameSize = Offset; in ComputeASanStackFrameLayout() 92 assert((Layout.FrameSize % MinHeaderSize) == 0); in ComputeASanStackFrameLayout() 93 return Layout; in ComputeASanStackFrameLayout() 116 const ASanStackFrameLayout &Layout) { in GetShadowBytes() argument 120 const uint64_t Granularity = Layout.Granularity; in GetShadowBytes() 129 SB.resize(Layout.FrameSize / Granularity, kAsanStackRightRedzoneMagic); in GetShadowBytes() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | M68k.cpp | 33 std::string Layout; in M68kTargetInfo() local 36 Layout += "E"; in M68kTargetInfo() 39 Layout += "-m:e"; in M68kTargetInfo() 42 Layout += "-p:32:16:32"; in M68kTargetInfo() 45 Layout += "-i8:8:8-i16:16:16-i32:16:32"; in M68kTargetInfo() 50 Layout += "-n8:16:32"; in M68kTargetInfo() 54 Layout += "-a:0:16-S16"; in M68kTargetInfo() 56 resetDataLayout(Layout); in M68kTargetInfo()
|
H A D | Mips.h | 26 StringRef Layout; in setDataLayout() local 29 Layout = "m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"; in setDataLayout() 31 Layout = "m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32:64-S128"; in setDataLayout() 33 Layout = "m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"; in setDataLayout() 38 resetDataLayout(("E-" + Layout).str()); in setDataLayout() 40 resetDataLayout(("e-" + Layout).str()); in setDataLayout()
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | Layout.h | 49 #define _INIT_OFFSET(type, name) name##Offset = offsetof(Layout<Ptr>, name); 53 struct className##Layout { \ 57 className##Layout(size_t wordSize) { \ 69 totalSize = sizeof(Layout<Ptr>); \ 71 template <class Ptr> struct Layout { \
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/ |
H A D | MappedBlockStream.h | 42 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout, 46 createIndexedStream(const MSFLayout &Layout, BinaryStreamRef MsfData, 50 createFpmStream(const MSFLayout &Layout, BinaryStreamRef MsfData, 54 createDirectoryStream(const MSFLayout &Layout, BinaryStreamRef MsfData, 108 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout, 112 createIndexedStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData, 116 createDirectoryStream(const MSFLayout &Layout, 121 createFpmStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData,
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 143 getFieldOffset(const ASTRecordLayout &Layout, unsigned FieldNo) const { in getFieldOffset() argument 144 uint64_t FieldOffset = Layout.getFieldOffset(FieldNo); in getFieldOffset() 193 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes() local 196 EmptySize = Layout.getSize(); in ComputeEmptySubobjectSizes() 199 EmptySize = Layout.getSizeOfLargestEmptySubobject(); in ComputeEmptySubobjectSizes() 217 const ASTRecordLayout &Layout = Context.getASTRecordLayout(MemberDecl); in ComputeEmptySubobjectSizes() local 220 EmptySize = Layout.getSize(); in ComputeEmptySubobjectSizes() 223 EmptySize = Layout.getSizeOfLargestEmptySubobject(); in ComputeEmptySubobjectSizes() 281 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in CanPlaceBaseSubobjectAtOffset() local 286 CharUnits BaseOffset = Offset + Layout.getBaseClassOffset(Base->Class); in CanPlaceBaseSubobjectAtOffset() [all …]
|
H A D | OSLog.cpp | 136 void computeLayout(ASTContext &Ctx, OSLogBufferLayout &Layout) const { in computeLayout() 137 Layout.Items.clear(); in computeLayout() 141 Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr, in computeLayout() 147 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, *Data.FieldWidth, in computeLayout() 152 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, *Data.Precision, in computeLayout() 158 Layout.Items.emplace_back(OSLogBufferItem::CountKind, *Data.Count, Size, in computeLayout() 162 Layout.Items.emplace_back(Ctx, CharUnits::fromQuantity(*Data.Size), in computeLayout() 170 Layout.Items.emplace_back(*Data.Kind, Data.E, Size, Data.Flags); in computeLayout() 173 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, Data.E, Size, in computeLayout() 182 ASTContext &Ctx, const CallExpr *E, OSLogBufferLayout &Layout) { in computeOSLogBufferLayout() argument [all …]
|
H A D | VTTBuilder.cpp | 70 const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD); in LayoutSecondaryVTTs() local 72 Layout.getBaseClassOffset(BaseDecl); in LayoutSecondaryVTTs() 117 const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD); in LayoutSecondaryVirtualPointers() local 120 Layout.getBaseClassOffset(BaseDecl); in LayoutSecondaryVirtualPointers() 122 if (!Layout.isPrimaryBaseVirtual() && in LayoutSecondaryVirtualPointers() 123 Layout.getPrimaryBase() == BaseDecl) in LayoutSecondaryVirtualPointers()
|
H A D | VTableBuilder.cpp | 244 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Element.Class); in ComputeBaseOffset() local 248 NonVirtualOffset += Layout.getBaseClassOffset(Base); in ComputeBaseOffset() 364 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in ComputeBaseOffsets() local 365 CharUnits Offset = Layout.getBaseClassOffset(BaseDecl); in ComputeBaseOffsets() 381 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in dump() local 399 BaseOffset = Layout.getBaseClassOffset(BaseDecl) + Base.getBaseOffset(); in dump() 618 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Base.getBase()); in AddVCallAndVBaseOffsets() local 629 if (const CXXRecordDecl *PrimaryBase = Layout.getPrimaryBase()) { in AddVCallAndVBaseOffsets() 630 bool PrimaryBaseIsVirtual = Layout.isPrimaryBaseVirtual(); in AddVCallAndVBaseOffsets() 636 assert(Layout.getVBaseClassOffset(PrimaryBase).isZero() && in AddVCallAndVBaseOffsets() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGRecordLayoutBuilder.cpp | 178 return Layout.getFieldOffset(FD->getFieldIndex()); in getFieldBitOffset() 213 const ASTRecordLayout &Layout; member 236 Layout(Types.getContext().getASTRecordLayout(D)), in CGRecordLowering() 283 CharUnits Size = NVBaseType ? Layout.getNonVirtualSize() : Layout.getSize(); in lower() 315 isNoUniqueAddress ? Layout.getDataSize() : Layout.getSize(); in lowerUnion() 372 assert((Layout.getSize() % StorageAlignment == 0 || in lowerUnion() 373 Layout.getDataSize() % StorageAlignment) && in lowerUnion() 376 if (Layout.getDataSize() % StorageAlignment) in lowerUnion() 614 if (Align > Layout.getAlignment()) in accumulateBitFields() 722 if (Layout.isPrimaryBaseVirtual()) { in accumulateBases() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 86 if (Layout.empty()) 97 SSPLayoutMap::const_iterator LI = Layout.find(AI); in runOnFunction() 98 if (LI == Layout.end()) in runOnFunction() 110 SSPLayoutAnalysis::requiresStackProtector(&F, &Info.Layout); in runOnFunction() 182 if (!requiresStackProtector(F, &LayoutInfo.Layout)) in HasAddressTaken() 372 SSPLayoutMap *Layout) { in requiresStackProtector() 394 if (!Layout) in requiresStackProtector() 425 if (!Layout) in getStackGuard() 427 Layout->insert( in getStackGuard() 433 if (!Layout) in getStackGuard() 288 requiresStackProtector(Function * F,SSPLayoutMap * Layout) requiresStackProtector() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | CBufferDataLayout.cpp | 74 LegacyStructLayout &Layout = getStructLayout(ST); in getTypeAllocSize() local 75 return Layout.Size; in getTypeAllocSize() 99 LegacyStructLayout Layout; in getStructLayout() local 100 Layout.ST = ST; in getStructLayout() 106 Layout.Offsets.emplace_back(Offset); in getStructLayout() 109 Layout.Size = Offset; in getStructLayout() 110 StructLayouts[ST] = Layout; in getStructLayout()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | OptimizedStructLayout.cpp | 322 SmallVector<Field, 16> Layout; in performOptimizedStructLayout() local 323 Layout.reserve(Fields.size()); in performOptimizedStructLayout() 338 Layout.push_back(*Cur); in performOptimizedStructLayout() 339 Layout.back().Offset = Offset; in performOptimizedStructLayout() 340 LastEnd = Layout.back().getEndOffset(); in performOptimizedStructLayout() 429 Layout.push_back(*I); in performOptimizedStructLayout() 446 assert(Layout.size() == Fields.size()); in performOptimizedStructLayout() 447 memcpy(Fields.data(), Layout.data(), in performOptimizedStructLayout()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | StackProtector.h | 47 SSPLayoutMap Layout; variable 82 SSPLayoutMap *Layout = nullptr); 130 SSPLayoutMap *Layout = nullptr) { 131 return SSPLayoutAnalysis::requiresStackProtector(F, Layout);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Scalarizer.cpp | 581 VectorLayout Layout; in getVectorLayout() local 582 Layout.VS = *VS; in getVectorLayout() 587 Layout.VecAlign = Alignment; in getVectorLayout() 588 Layout.SplitSize = DL.getTypeStoreSize(VS->SplitTy); in getVectorLayout() 589 return Layout; in getVectorLayout() 1109 std::optional<VectorLayout> Layout = getVectorLayout( in visitLoadInst() local 1111 if (!Layout) in visitLoadInst() 1115 Scatterer Ptr = scatter(&LI, LI.getPointerOperand(), Layout->VS); in visitLoadInst() 1117 Res.resize(Layout->VS.NumFragments); in visitLoadInst() 1119 for (unsigned I = 0; I < Layout->VS.NumFragments; ++I) { in visitLoadInst() [all …]
|