Home
last modified time | relevance | path

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

12345678

/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/
DPrettyClassDefinitionDumper.cpp33 ClassLayout Layout(Class); in start() local
34 start(Layout); in start()
37 void ClassDefinitionDumper::start(const ClassLayout &Layout) { in start() argument
38 prettyPrintClassIntro(Layout); in start()
41 DumpedAnything |= Dumper.start(Layout); in start()
43 prettyPrintClassOutro(Layout); in start()
46 void ClassDefinitionDumper::prettyPrintClassIntro(const ClassLayout &Layout) { in prettyPrintClassIntro() argument
50 uint32_t Size = Layout.getSize(); in prettyPrintClassIntro()
51 const PDBSymbolTypeUDT &Class = Layout.getClass(); in prettyPrintClassIntro()
53 if (Layout.getClass().isConstType()) in prettyPrintClassIntro()
[all …]
DPrettyClassLayoutGraphicalDumper.cpp34 bool PrettyClassLayoutGraphicalDumper::start(const UDTLayoutBase &Layout) { in start() argument
38 for (auto &Other : Layout.other_items()) in start()
40 for (auto &Func : Layout.funcs()) in start()
44 const BitVector &UseMap = Layout.usedBytes(); in start()
47 for (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 …]
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 …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleDescriptorBuilder.cpp43 ::memset(&Layout, 0, sizeof(Layout)); in DbiModuleDescriptorBuilder()
44 Layout.Mod = ModIndex; in DbiModuleDescriptorBuilder()
50 return Layout.ModDiStream; in getStreamIndex()
63 Layout.SC = SC; in setFirstSectionContrib()
110 uint32_t L = sizeof(Layout); in calculateSerializedLength()
117 Layout.FileNameOffs = 0; // TODO: Fix this in finalize()
118 Layout.Flags = 0; // TODO: Fix this in finalize()
119 Layout.C11Bytes = 0; in finalize()
120 Layout.C13Bytes = calculateC13DebugInfoSize(); in finalize()
121 (void)Layout.Mod; // Set in constructor in finalize()
[all …]
DDbiModuleDescriptor.cpp24 if (auto EC = Reader.readObject(Info.Layout)) in initialize()
36 return (Layout->Flags & ModInfoFlags::HasECFlagMask) != 0; in hasECInfo()
40 return (Layout->Flags & ModInfoFlags::TypeServerIndexMask) >> in getTypeServerIndex()
45 return Layout->SC; in getSectionContrib()
49 return Layout->ModDiStream; in getModuleStreamIndex()
53 return Layout->SymBytes; in getSymbolDebugInfoByteSize()
57 return Layout->C11Bytes; in getC11LineInfoByteSize()
61 return Layout->C13Bytes; in getC13LineInfoByteSize()
65 return Layout->NumFiles; in getNumberOfFiles()
69 return Layout->SrcFileNameNI; in getSourceFileNameIndex()
[all …]
DPDBFileBuilder.cpp224 const msf::MSFLayout &Layout) { in commitSrcHeaderBlock() argument
229 Layout, MsfBuffer, SN, Allocator); in commitSrcHeaderBlock()
244 const msf::MSFLayout &Layout) { in commitInjectedSources() argument
248 commitSrcHeaderBlock(MsfBuffer, Layout); in commitInjectedSources()
254 Layout, MsfBuffer, SN, Allocator); in commitInjectedSources()
267 MSFLayout Layout; in commit() local
269 Msf->commit(Filename, Layout); in commit()
279 Layout, Buffer, *ExpectedSN, Allocator); in commit()
289 Layout, Buffer, NSE.first, Allocator); in commit()
296 if (auto EC = Info->commit(Layout, Buffer)) in commit()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/MC/
DMCAssembler.cpp192 bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout, in evaluateFixup() argument
208 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
225 return getBackend().evaluateTargetFixup(*this, Layout, Fixup, DF, Target, in evaluateFixup()
258 Value += Layout.getSymbolOffset(Sym); in evaluateFixup()
263 Value -= Layout.getSymbolOffset(Sym); in evaluateFixup()
272 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
289 uint64_t MCAssembler::computeFragmentSize(const MCAsmLayout &Layout, in computeFragmentSize() argument
302 if (!FF.getNumValues().evaluateAsAbsolute(NumValues, Layout)) { in computeFragmentSize()
329 unsigned Offset = Layout.getFragmentOffset(&AF); in computeFragmentSize()
352 if (!OF.getOffset().evaluateAsValue(Value, Layout)) { in computeFragmentSize()
[all …]
DMCExpr.cpp537 const MCAsmLayout &Layout) const { in evaluateAsAbsolute()
538 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, nullptr, false); in evaluateAsAbsolute()
542 const MCAsmLayout &Layout, in evaluateAsAbsolute() argument
546 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, &Addrs, true); in evaluateAsAbsolute()
558 const MCAsmLayout &Layout) const { in evaluateKnownAbsolute()
559 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, nullptr, in evaluateKnownAbsolute()
564 const MCAsmLayout *Layout, in evaluateAsAbsolute() argument
575 evaluateAsRelocatableImpl(Value, Asm, Layout, nullptr, Addrs, InSet); in evaluateAsAbsolute()
585 const MCAssembler *Asm, const MCAsmLayout *Layout, in AttemptToFoldSymbolOffsetDifference() argument
632 if (Layout) { in AttemptToFoldSymbolOffsetDifference()
[all …]
DMCLinkerOptimizationHint.cpp29 const MCAsmLayout &Layout) const { in emit_impl()
33 encodeULEB128(ObjWriter.getSymbolAddress(*Arg, Layout), OutStream); in emit_impl()
37 const MCAsmLayout &Layout) const { in emit()
39 emit_impl(OutStream, ObjWriter, Layout); in emit()
43 const MCAsmLayout &Layout) const { in getEmitSize()
57 emit_impl(OutStream, ObjWriter, Layout); in getEmitSize()
DMachObjectWriter.cpp82 const MCAsmLayout &Layout) const { in getFragmentAddress()
84 Layout.getFragmentOffset(Fragment); in getFragmentAddress()
88 const MCAsmLayout &Layout) const { in getSymbolAddress()
96 if (!S.getVariableValue()->evaluateAsRelocatable(Target, &Layout, nullptr)) in getSymbolAddress()
110 Address += getSymbolAddress(Target.getSymA()->getSymbol(), Layout); in getSymbolAddress()
112 Address += getSymbolAddress(Target.getSymB()->getSymbol(), Layout); in getSymbolAddress()
117 Layout.getSymbolOffset(S); in getSymbolAddress()
121 const MCAsmLayout &Layout) const { in getPaddingSize()
122 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec); in getPaddingSize()
124 if (Next >= Layout.getSectionOrder().size()) in getPaddingSize()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
DMappedBlockStream.cpp46 const MSFStreamLayout &Layout, in MappedBlockStream() argument
49 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
53 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream() argument
56 BlockSize, Layout, MsfData, Allocator); in createStream()
60 const MSFLayout &Layout, BinaryStreamRef MsfData, uint32_t StreamIndex, in createIndexedStream() argument
62 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index"); in createIndexedStream()
64 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
65 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream()
67 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
71 MappedBlockStream::createDirectoryStream(const MSFLayout &Layout, in createDirectoryStream() argument
[all …]
DMSFBuilder.cpp312 static void commitFpm(WritableBinaryStream &MsfBuffer, const MSFLayout &Layout, in commitFpm() argument
315 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator); in commitFpm()
318 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator, in commitFpm()
323 while (BI < Layout.SB->NumBlocks) { in commitFpm()
327 (BI < Layout.SB->NumBlocks) ? Layout.FreePageMap.test(BI) : true; in commitFpm()
338 MSFLayout &Layout) { in commit() argument
343 Layout = std::move(*L); in commit()
345 uint64_t FileSize = uint64_t(Layout.SB->BlockSize) * Layout.SB->NumBlocks; in commit()
365 if (auto EC = Writer.writeObject(*Layout.SB)) in commit()
368 commitFpm(Buffer, Layout, Allocator); in commit()
[all …]
/freebsd-12-stable/contrib/apr/
Dconfig.layout13 <Layout apr>
27 </Layout>
30 <Layout classic>
43 </Layout>
47 <Layout GNU>
61 </Layout>
64 <Layout Mac OS X Server>
78 </Layout>
80 # Darwin/Mac OS Layout
81 <Layout Darwin>
[all …]
/freebsd-12-stable/contrib/apr-util/
Dconfig.layout13 <Layout apr-util>
27 </Layout>
30 <Layout classic>
43 </Layout>
47 <Layout GNU>
61 </Layout>
64 <Layout Mac OS X Server>
78 </Layout>
80 # Darwin/Mac OS Layout
81 <Layout Darwin>
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
DX86MachObjectWriter.cpp29 const MCAsmLayout &Layout,
37 const MCAsmLayout &Layout,
45 const MCAsmLayout &Layout,
51 const MCAsmLayout &Layout,
60 const MCAsmLayout &Layout, const MCFragment *Fragment, in recordRelocation() argument
64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation()
103 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in RecordX86_64Relocation() argument
112 Layout.getFragmentOffset(Fragment) + Fixup.getOffset(); in RecordX86_64Relocation()
114 Writer->getFragmentAddress(Fragment, Layout) + Fixup.getOffset(); in RecordX86_64Relocation()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DASanStackFrameLayout.cpp67 ASanStackFrameLayout Layout; in ComputeASanStackFrameLayout() local
68 Layout.Granularity = Granularity; in ComputeASanStackFrameLayout()
69 Layout.FrameAlignment = std::max(Granularity, Vars[0].Alignment); in ComputeASanStackFrameLayout()
79 assert(Layout.FrameAlignment >= Alignment); in ComputeASanStackFrameLayout()
92 Layout.FrameSize = Offset; in ComputeASanStackFrameLayout()
93 assert((Layout.FrameSize % MinHeaderSize) == 0); in ComputeASanStackFrameLayout()
94 return Layout; in ComputeASanStackFrameLayout()
117 const ASanStackFrameLayout &Layout) { in GetShadowBytes() argument
121 const size_t Granularity = Layout.Granularity; in GetShadowBytes()
130 SB.resize(Layout.FrameSize / Granularity, kAsanStackRightRedzoneMagic); in GetShadowBytes()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/MC/
DMCAssembler.h172 bool evaluateFixup(const MCAsmLayout &Layout, const MCFixup &Fixup,
179 const MCAsmLayout &Layout) const;
183 const MCAsmLayout &Layout) const;
187 bool layoutOnce(MCAsmLayout &Layout);
191 bool layoutSectionOnce(MCAsmLayout &Layout, MCSection &Sec);
195 bool relaxFragment(MCAsmLayout &Layout, MCFragment &F);
196 bool relaxInstruction(MCAsmLayout &Layout, MCRelaxableFragment &IF);
197 bool relaxLEB(MCAsmLayout &Layout, MCLEBFragment &IF);
198 bool relaxBoundaryAlign(MCAsmLayout &Layout, MCBoundaryAlignFragment &BF);
199 bool relaxDwarfLineAddr(MCAsmLayout &Layout, MCDwarfLineAddrFragment &DF);
[all …]
DMCMachObjectWriter.h76 const MCAsmLayout &Layout,
157 uint64_t getSymbolAddress(const MCSymbol &S, const MCAsmLayout &Layout) const;
160 const MCAsmLayout &Layout) const;
162 uint64_t getPaddingSize(const MCSection *SD, const MCAsmLayout &Layout) const;
192 void writeSection(const MCAsmLayout &Layout, const MCSection &Sec,
206 void writeNlist(MachSymbolData &MSD, const MCAsmLayout &Layout);
238 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
251 const MCAsmLayout &Layout);
254 const MCAsmLayout &Layout) override;
266 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
DARMMachObjectWriter.cpp32 const MCAsmLayout &Layout,
41 const MCAsmLayout &Layout,
56 const MCAsmLayout &Layout, const MCFragment *Fragment,
142 const MCAsmLayout &Layout, in RecordARMScatteredHalfRelocation() argument
147 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredHalfRelocation()
170 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredHalfRelocation()
187 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredHalfRelocation()
255 const MCAsmLayout &Layout, in RecordARMScatteredRelocation() argument
262 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment)+Fixup.getOffset(); in RecordARMScatteredRelocation()
284 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredRelocation()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DJITLinkGeneric.cpp52 auto Layout = layOutBlocks(); in linkPhase1() local
55 if (auto Err = allocateSegments(Layout)) in linkPhase1()
85 TmpSelf.linkPhase2(std::move(Self), AsyncLookupResult(), std::move(Layout)); in linkPhase1()
108 [S = std::move(Self), L = std::move(Layout)]( in linkPhase1()
118 SegmentLayoutMap Layout) { in linkPhase2() argument
132 copyBlockContentToWorkingMemory(Layout, *Alloc); in linkPhase2()
192 SegmentLayoutMap Layout; in layOutBlocks() local
196 auto &SegLists = Layout[B->getSection().getProtectionFlags()]; in layOutBlocks()
204 for (auto &KV : Layout) { in layOutBlocks()
222 for (auto &KV : Layout) { in layOutBlocks()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/Targets/
DM68k.cpp32 std::string Layout = ""; in M68kTargetInfo() local
35 Layout += "E"; in M68kTargetInfo()
38 Layout += "-m:e"; in M68kTargetInfo()
41 Layout += "-p:32:16:32"; in M68kTargetInfo()
44 Layout += "-i8:8:8-i16:16:16-i32:16:32"; in M68kTargetInfo()
49 Layout += "-n8:16:32"; in M68kTargetInfo()
53 Layout += "-a:0:16-S16"; in M68kTargetInfo()
55 resetDataLayout(Layout); in M68kTargetInfo()
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DRecordLayoutBuilder.cpp143 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 …]
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 …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MachObjectWriter.cpp44 const MCAsmLayout &Layout, const MCFragment *Fragment,
152 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument
158 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment); in recordRelocation()
231 Layout.getSymbolOffset(*B) == in recordRelocation()
232 Layout.getFragmentOffset(Fragment) + Fixup.getOffset()) { in recordRelocation()
284 Value += (!A->getFragment() ? 0 : Writer->getSymbolAddress(*A, Layout)) - in recordRelocation()
286 *A_Base, Layout)); in recordRelocation()
287 Value -= (!B->getFragment() ? 0 : Writer->getSymbolAddress(*B, Layout)) - in recordRelocation()
289 *B_Base, Layout)); in recordRelocation()
345 Layout.getSymbolOffset(*Symbol) - Layout.getSymbolOffset(*Base); in recordRelocation()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
DMappedBlockStream.h42 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,

12345678