Home
last modified time | relevance | path

Searched refs:Layout (Results 1 – 25 of 132) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyClassDefinitionDumper.cpp34 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 DPrettyClassLayoutGraphicalDumper.cpp34 bool PrettyClassLayoutGraphicalDumper::start(const UDTLayoutBase &Layout) { in start() argument
38 for (const auto &Other : Layout.other_items()) in start()
40 for (const auto &Func : Layout.funcs()) in start()
44 const BitVector &UseMap = Layout.usedBytes(); in start()
47 for (const auto &Item : Layout.layout_items()) { in start()
68 VTableLayoutItem &Layout = static_cast<VTableLayoutItem &>(*CurrentItem); in start() local
71 VarDumper.startVbptr(CurrentAbsoluteOffset, Layout.getSize()); in start()
84 auto TailPadding = Layout.tailPadding(); in start()
86 if (TailPadding != 1 || Layout.getSize() != 1) { in start()
112 BaseClassLayout &Layout = static_cast<BaseClassLayout &>(*CurrentItem); in dump() local
[all …]
H A DBytesOutputStyle.cpp203 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 DExplainOutputStyle.cpp122 const auto &Layout = File.pdb().getMsfLayout(); in isPdbStreamDirectoryBlock() local
123 return llvm::is_contained(Layout.DirectoryBlocks, pdbBlockIndex()); in isPdbStreamDirectoryBlock()
127 const auto &Layout = File.pdb().getMsfLayout(); in getPdbBlockStreamIndex() local
128 for (const auto &Entry : enumerate(Layout.StreamMap)) { in getPdbBlockStreamIndex()
200 const MSFLayout &Layout = File.pdb().getMsfLayout(); in explainPdbFpmBlockOffset() local
201 uint32_t MainFpm = Layout.mainFpmBlock(); in explainPdbFpmBlockOffset()
202 uint32_t AltFpm = Layout.alternateFpmBlock(); in explainPdbFpmBlockOffset()
250 const auto &Layout = File.pdb().getStreamLayout(Stream); in explainPdbStreamOffset() local
252 getOffsetInStream(Layout.Blocks, FileOffset, File.pdb().getBlockSize()); in explainPdbStreamOffset()
254 StreamOff, Layout.Length, Stream, S.getLongName(), in explainPdbStreamOffset()
[all …]
H A DPrettyTypeDumper.cpp122 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 DDbiModuleDescriptorBuilder.cpp47 ::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 DDbiModuleDescriptor.cpp23 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 DPDBFileBuilder.cpp234 const msf::MSFLayout &Layout) { in commitSrcHeaderBlock() argument
239 Layout, MsfBuffer, SN, Allocator); in commitSrcHeaderBlock()
254 const msf::MSFLayout &Layout) { in commitInjectedSources() argument
259 commitSrcHeaderBlock(MsfBuffer, Layout); in commitInjectedSources()
265 Layout, MsfBuffer, SN, Allocator); in commitInjectedSources()
278 MSFLayout Layout; in commit() local
280 Msf->commit(Filename, Layout); in commit()
290 Layout, Buffer, *ExpectedSN, Allocator); in commit()
302 Layout, Buffer, NSE.first, Allocator); in commit()
310 if (auto EC = Info->commit(Layout, Buffer)) in commit()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp44 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 DMSFBuilder.cpp313 static void commitFpm(WritableBinaryStream &MsfBuffer, const MSFLayout &Layout, in commitFpm() argument
316 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator); in commitFpm()
319 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator, in commitFpm()
324 while (BI < Layout.SB->NumBlocks) { in commitFpm()
328 (BI < Layout.SB->NumBlocks) ? Layout.FreePageMap.test(BI) : true; in commitFpm()
339 MSFLayout &Layout) { in commit() argument
346 Layout = std::move(*L); in commit()
348 uint64_t FileSize = uint64_t(Layout.SB->BlockSize) * Layout.SB->NumBlocks; in commit()
350 if (FileSize > getMaxFileSizeFromBlockSize(Layout.SB->BlockSize)) { in commit()
362 }(Layout.SB->BlockSize); in commit()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp66 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 DM68k.cpp31 std::string Layout; in M68kTargetInfo() local
34 Layout += "E"; in M68kTargetInfo()
37 Layout += "-m:e"; in M68kTargetInfo()
40 Layout += "-p:32:16:32"; in M68kTargetInfo()
43 Layout += "-i8:8:8-i16:16:16-i32:16:32"; in M68kTargetInfo()
48 Layout += "-n8:16:32"; in M68kTargetInfo()
52 Layout += "-a:0:16-S16"; in M68kTargetInfo()
54 resetDataLayout(Layout); in M68kTargetInfo()
H A DMips.h27 StringRef Layout; in setDataLayout() local
30 Layout = "m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"; in setDataLayout()
32 Layout = "m:e-p:32:32-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"; in setDataLayout()
34 Layout = "m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"; in setDataLayout()
39 resetDataLayout(("E-" + Layout).str()); in setDataLayout()
41 resetDataLayout(("e-" + Layout).str()); in setDataLayout()
/freebsd/contrib/llvm-project/lld/MachO/
H A DLayout.h49 #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/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp178 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 isNonVirtualBaseType ? 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 …]
H A DHLSLBufferLayoutBuilder.cpp77 SmallVector<unsigned> Layout; in createLayoutType() local
85 Layout.push_back(0); in createLayoutType()
115 Layout.push_back(FieldOffset); in createLayoutType()
124 Layout.push_back(UINT_MAX); in createLayoutType()
136 assert(Layout[IndexInLayout] == UINT_MAX && in createLayoutType()
141 Layout[IndexInLayout] = FieldOffset; in createLayoutType()
146 Layout[0] = EndOffset; in createLayoutType()
158 CGM.getLLVMContext(), LayoutTypeName, {StructTy}, Layout); in createLayoutType()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMappedBlockStream.h43 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
47 createIndexedStream(const MSFLayout &Layout, BinaryStreamRef MsfData,
51 createFpmStream(const MSFLayout &Layout, BinaryStreamRef MsfData,
55 createDirectoryStream(const MSFLayout &Layout, BinaryStreamRef MsfData,
109 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
113 createIndexedStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData,
117 createDirectoryStream(const MSFLayout &Layout,
122 createFpmStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DOSLog.cpp135 void computeLayout(ASTContext &Ctx, OSLogBufferLayout &Layout) const { in computeLayout()
136 Layout.Items.clear(); in computeLayout()
140 Layout.Items.emplace_back(OSLogBufferItem::MaskKind, nullptr, in computeLayout()
146 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, *Data.FieldWidth, in computeLayout()
151 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, *Data.Precision, in computeLayout()
157 Layout.Items.emplace_back(OSLogBufferItem::CountKind, *Data.Count, Size, in computeLayout()
161 Layout.Items.emplace_back(Ctx, CharUnits::fromQuantity(*Data.Size), in computeLayout()
169 Layout.Items.emplace_back(*Data.Kind, Data.E, Size, Data.Flags); in computeLayout()
172 Layout.Items.emplace_back(OSLogBufferItem::ScalarKind, Data.E, Size, in computeLayout()
181 ASTContext &Ctx, const CallExpr *E, OSLogBufferLayout &Layout) { in computeOSLogBufferLayout() argument
[all …]
H A DRecordLayoutBuilder.cpp141 CharUnits getFieldOffset(const ASTRecordLayout &Layout, in getFieldOffset() argument
143 uint64_t FieldOffset = Layout.getFieldOffset(Field->getFieldIndex()); in getFieldOffset()
192 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes() local
195 EmptySize = Layout.getSize(); in ComputeEmptySubobjectSizes()
198 EmptySize = Layout.getSizeOfLargestEmptySubobject(); in ComputeEmptySubobjectSizes()
216 const ASTRecordLayout &Layout = Context.getASTRecordLayout(MemberDecl); in ComputeEmptySubobjectSizes() local
219 EmptySize = Layout.getSize(); in ComputeEmptySubobjectSizes()
222 EmptySize = Layout.getSizeOfLargestEmptySubobject(); in ComputeEmptySubobjectSizes()
280 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in CanPlaceBaseSubobjectAtOffset() local
285 CharUnits BaseOffset = Offset + Layout.getBaseClassOffset(Base->Class); in CanPlaceBaseSubobjectAtOffset()
[all …]
H A DVTTBuilder.cpp69 const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD); in LayoutSecondaryVTTs() local
71 Layout.getBaseClassOffset(BaseDecl); in LayoutSecondaryVTTs()
116 const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD); in LayoutSecondaryVirtualPointers() local
119 Layout.getBaseClassOffset(BaseDecl); in LayoutSecondaryVirtualPointers()
121 if (!Layout.isPrimaryBaseVirtual() && in LayoutSecondaryVirtualPointers()
122 Layout.getPrimaryBase() == BaseDecl) in LayoutSecondaryVirtualPointers()
H A DVTableBuilder.cpp244 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/llvm/lib/Target/DirectX/
H A DCBufferDataLayout.cpp74 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/CodeGen/
H A DStackProtector.cpp86 if (Layout.empty()) in copyToMachineFrameInfo()
97 SSPLayoutMap::const_iterator LI = Layout.find(AI); in copyToMachineFrameInfo()
98 if (LI == Layout.end()) in copyToMachineFrameInfo()
110 SSPLayoutAnalysis::requiresStackProtector(&F, &Info.Layout); in run()
183 if (!requiresStackProtector(F, &LayoutInfo.Layout)) in runOnFunction()
395 SSPLayoutMap *Layout) { in requiresStackProtector() argument
417 if (!Layout) in requiresStackProtector()
448 if (!Layout) in requiresStackProtector()
450 Layout->insert( in requiresStackProtector()
456 if (!Layout) in requiresStackProtector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DOptimizedStructLayout.cpp322 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 DStackProtector.h47 SSPLayoutMap Layout; variable
82 SSPLayoutMap *Layout = nullptr);
130 SSPLayoutMap *Layout = nullptr) {
131 return SSPLayoutAnalysis::requiresStackProtector(F, Layout);

123456