Home
last modified time | relevance | path

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

12345678

/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyClassDefinitionDumper.cpp34 ClassLayout Layout(Class); in start() local
35 start(Layout); in start()
39 prettyPrintClassIntro(Layout); in start()
42 DumpedAnything |= Dumper.start(Layout); in start()
44 prettyPrintClassOutro(Layout); in start()
51 uint32_t Size = Layout.getSize(); in prettyPrintClassIntro()
54 if (Layout.getClass().isConstType()) in prettyPrintClassIntro()
56 if (Layout.getClass().isVolatileType()) in prettyPrintClassIntro()
58 if (Layout.getClass().isUnalignedType()) in prettyPrintClassIntro()
69 for (auto *BC : Layout.bases()) { in prettyPrintClassIntro()
[all …]
H A DPrettyClassLayoutGraphicalDumper.cpp39 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()
85 auto TailPadding = Layout.tailPadding(); in start()
87 if (TailPadding != 1 || Layout.getSize() != 1) { in start()
116 if (Layout.isVirtualBase()) { in dump()
123 uint32_t Size = Layout.isEmptyBase() ? 1 : Layout.getLayoutSize(); in dump()
136 DumpedAnything |= BaseDumper.start(Layout); in dump()
155 DataMemberLayoutItem &Layout = in dump() local
[all …]
H A DBytesOutputStyle.cpp203 auto Layout = File.getStreamLayout(StreamPDB); in dumpNameMap() local
233 auto Layout = File.getStreamLayout(StreamDBI); in dumpSectionContributions() local
244 auto Layout = File.getStreamLayout(StreamDBI); in dumpSectionMap() local
255 auto Layout = File.getStreamLayout(StreamDBI); in dumpModuleInfos() local
266 auto Layout = File.getStreamLayout(StreamDBI); in dumpFileInfo() local
277 auto Layout = File.getStreamLayout(StreamDBI); in dumpTypeServerMap() local
288 auto Layout = File.getStreamLayout(StreamDBI); in dumpECData() local
307 auto Layout = File.getStreamLayout(StreamIdx); in dumpTypeIndex() local
349 auto Layout = File.getStreamLayout(ModiStream); in iterateOneModule() local
350 Callback(I, ModStream, Layout); in iterateOneModule()
[all …]
/freebsd-14.2/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()
123 Layout.C11Bytes = 0; in finalize()
127 Layout.NumFiles = SourceFiles.size(); in finalize()
128 Layout.PdbFilePathNI = PdbFilePathNI; in finalize()
129 Layout.SrcFileNameNI = 0; in finalize()
133 Layout.SymBytes = 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->SrcFileNameNI; in getSourceFileNameIndex()
[all …]
H A DPDBFileBuilder.cpp240 Layout, MsfBuffer, SN, Allocator); in commitSrcHeaderBlock()
260 commitSrcHeaderBlock(MsfBuffer, Layout); in commitInjectedSources()
266 Layout, MsfBuffer, SN, Allocator); in commitInjectedSources()
279 MSFLayout Layout; in commit() local
281 Msf->commit(Filename, Layout); in commit()
291 Layout, Buffer, *ExpectedSN, Allocator); in commit()
316 if (auto EC = Dbi->commit(Layout, Buffer)) in commit()
321 if (auto EC = Tpi->commit(Layout, Buffer)) in commit()
326 if (auto EC = Ipi->commit(Layout, Buffer)) in commit()
331 if (auto EC = Gsi->commit(Layout, Buffer)) in commit()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCAssembler.cpp262 Value += Layout.getSymbolOffset(Sym); in evaluateFixup()
267 Value -= Layout.getSymbolOffset(Sym); in evaluateFixup()
792 writeFragment(OS, *this, Layout, F); in writeSectionData()
844 while (layoutOnce(Layout)) { in layout()
859 finishLayout(Layout); in layout()
950 MCAsmLayout Layout(*this); in Finish() local
951 layout(Layout); in Finish()
994 if (!fragmentNeedsRelaxation(&F, Layout)) in relaxInstruction()
1112 Layout.invalidateFragmentsFrom(&BF); in relaxBoundaryAlign()
1248 while (layoutSectionOnce(Layout, Sec)) in layoutOnce()
[all …]
H A DMCExpr.cpp548 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, nullptr, false); in evaluateAsAbsolute()
556 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, &Addrs, true); in evaluateAsAbsolute()
569 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, nullptr, in evaluateKnownAbsolute()
634 if (Layout && (InSet || !SecA.hasInstructions() || in AttemptToFoldSymbolOffsetDifference()
645 if (!Layout->canGetFragmentOffset(FA) || !Layout->canGetFragmentOffset(FB)) in AttemptToFoldSymbolOffsetDifference()
711 AF && Layout && AF->hasEmitNops() && in AttemptToFoldSymbolOffsetDifference()
771 assert((!Layout || Asm) && in EvaluateSymbolicAdd()
812 MCAssembler *Assembler = Layout ? &Layout->getAssembler() : nullptr; in evaluateAsRelocatable()
818 MCAssembler *Assembler = &Layout.getAssembler(); in evaluateAsValue()
978 Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
[all …]
H A 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()
H A DWinCOFFObjectWriter.cpp182 const MCAsmLayout &Layout);
378 if (!Layout.getSymbolOffset(Symbol, Res)) in getSymbolValue()
405 const MCSymbol *Base = Layout.getBaseSymbol(MCSym); in DefineSymbol()
448 Local->Data.Value = getSymbolValue(MCSym, Layout); in DefineSymbol()
612 Asm.writeSectionData(VecOS, &MCSec, Layout); in writeSectionContents()
853 DefineSymbol(Symbol, Asm, Layout); in executePostLayoutBinding()
897 int64_t OffsetOfB = Layout.getSymbolOffset(*B); in recordRelocation()
921 FixedValue += Layout.getSymbolOffset(A); in recordRelocation()
1133 assignFileOffsets(Asm, Layout); in writeObject()
1163 writeSection(Asm, Layout, *Sec); in writeObject()
[all …]
H A DMachObjectWriter.cpp86 Layout.getFragmentOffset(Fragment); in getFragmentAddress()
119 Layout.getSymbolOffset(S); in getSymbolAddress()
126 if (Next >= Layout.getSectionOrder().size()) in getPaddingSize()
652 StartAddress += getPaddingSize(Sec, Layout); in computeSectionAddresses()
658 computeSectionAddresses(Asm, Layout); in executePostLayoutBinding()
786 Layout.getAssembler().getVersionInfo(); in writeObject()
856 FileSize += getPaddingSize(&Sec, Layout); in writeObject()
992 Asm.writeSectionData(W.OS, &Sec, Layout); in writeObject()
994 uint64_t Pad = getPaddingSize(&Sec, Layout); in writeObject()
1039 Asm.getLOHContainer().emit(*this, Layout); in writeObject()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp54 BlockSize, Layout, MsfData, Allocator); in createStream()
62 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
63 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream()
73 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream()
74 SL.Length = Layout.SB->NumDirectoryBytes; in createDirectoryStream()
82 MSFStreamLayout SL(getFpmStreamLayout(Layout)); in createFpmStream()
320 BlockSize, Layout, MsfData, Allocator); in createStream()
330 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
331 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream()
340 SL.Blocks = Layout.DirectoryBlocks; in createDirectoryStream()
[all …]
H A DMSFBuilder.cpp326 while (BI < Layout.SB->NumBlocks) { in commitFpm()
330 (BI < Layout.SB->NumBlocks) ? Layout.FreePageMap.test(BI) : true; in commitFpm()
348 Layout = std::move(*L); in commit()
350 uint64_t FileSize = uint64_t(Layout.SB->BlockSize) * Layout.SB->NumBlocks; in commit()
364 }(Layout.SB->BlockSize); in commit()
373 bytesToBlocks(Layout.SB->NumDirectoryBytes, Layout.SB->BlockSize); in commit()
392 if (auto EC = Writer.writeObject(*Layout.SB)) in commit()
395 commitFpm(Buffer, Layout, Allocator); in commit()
398 msf::blockToOffset(Layout.SB->BlockMapAddr, Layout.SB->BlockSize); in commit()
404 Layout, Buffer, Allocator); in commit()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp29 const MCAsmLayout &Layout,
37 const MCAsmLayout &Layout,
45 const MCAsmLayout &Layout,
51 const MCAsmLayout &Layout,
196 Value += Writer->getSymbolAddress(*A, Layout) - in RecordX86_64Relocation()
198 Value -= Writer->getSymbolAddress(*B, Layout) - in RecordX86_64Relocation()
242 Value += Layout.getSymbolOffset(*Symbol) - in RecordX86_64Relocation()
243 Layout.getSymbolOffset(*RelSymbol); in RecordX86_64Relocation()
387 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in recordScatteredRelocation()
410 Value2 = Writer->getSymbolAddress(*SB, Layout); in recordScatteredRelocation()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DASanStackFrameLayout.cpp66 ASanStackFrameLayout Layout; in ComputeASanStackFrameLayout() local
67 Layout.Granularity = Granularity; 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()
135 const ASanStackFrameLayout &Layout) { in GetShadowBytesAfterScope() argument
136 SmallVector<uint8_t, 64> SB = GetShadowBytes(Vars, Layout); in GetShadowBytesAfterScope()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCAssembler.h194 const MCAsmLayout &Layout) const;
202 bool layoutOnce(MCAsmLayout &Layout);
206 bool layoutSectionOnce(MCAsmLayout &Layout, MCSection &Sec);
210 bool relaxFragment(MCAsmLayout &Layout, MCFragment &F);
212 bool relaxLEB(MCAsmLayout &Layout, MCLEBFragment &IF);
215 bool relaxDwarfCallFrameFragment(MCAsmLayout &Layout,
217 bool relaxCVInlineLineTable(MCAsmLayout &Layout,
223 void finishLayout(MCAsmLayout &Layout);
255 uint64_t computeFragmentSize(const MCAsmLayout &Layout,
270 const MCAsmLayout &Layout) const;
[all …]
H A DMCAsmBackend.h120 const MCAsmLayout &Layout, in shouldInsertFixupForCodeAlign() argument
126 const MCAsmLayout &Layout, in evaluateTargetFixup() argument
134 virtual bool handleAddSubRelocations(const MCAsmLayout &Layout, in handleAddSubRelocations() argument
173 const MCAsmLayout &Layout,
179 const MCAsmLayout &Layout) const = 0;
190 MCAsmLayout &Layout, bool &WasRelaxed) const { in relaxDwarfLineAddr() argument
194 virtual bool relaxDwarfCFA(MCDwarfCallFrameFragment &DF, MCAsmLayout &Layout, in relaxDwarfCFA() argument
202 relaxLEB128(MCLEBFragment &LF, MCAsmLayout &Layout, int64_t &Value) const { in relaxLEB128() argument
229 MCAsmLayout &Layout) const {} in finishLayout() argument
H A DMCMachObjectWriter.h76 const MCAsmLayout &Layout,
158 uint64_t getSymbolAddress(const MCSymbol &S, const MCAsmLayout &Layout) const;
161 const MCAsmLayout &Layout) const;
163 uint64_t getPaddingSize(const MCSection *SD, const MCAsmLayout &Layout) const;
193 void writeSection(const MCAsmLayout &Layout, const MCSection &Sec,
207 void writeNlist(MachSymbolData &MSD, const MCAsmLayout &Layout);
239 void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
252 const MCAsmLayout &Layout);
255 const MCAsmLayout &Layout) override;
269 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp32 const MCAsmLayout &Layout,
41 const MCAsmLayout &Layout,
56 const MCAsmLayout &Layout, const MCFragment *Fragment,
142 const MCAsmLayout &Layout, in RecordARMScatteredHalfRelocation() argument
170 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredHalfRelocation()
187 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredHalfRelocation()
284 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredRelocation()
302 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredRelocation()
377 const MCAsmLayout &Layout, in recordRelocation() argument
441 Res, Layout, Writer->getSectionAddressMap())) { in recordRelocation()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVAsmBackend.h48 const MCAsmLayout &Layout,
51 bool evaluateTargetFixup(const MCAssembler &Asm, const MCAsmLayout &Layout,
56 bool handleAddSubRelocations(const MCAsmLayout &Layout, const MCFragment &F,
74 const MCAsmLayout &Layout) const override { in fixupNeedsRelaxation() argument
81 const MCAsmLayout &Layout,
99 bool relaxDwarfLineAddr(MCDwarfLineAddrFragment &DF, MCAsmLayout &Layout,
101 bool relaxDwarfCFA(MCDwarfCallFrameFragment &DF, MCAsmLayout &Layout,
103 std::pair<bool, bool> relaxLEB128(MCLEBFragment &LF, MCAsmLayout &Layout,
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Basic/Targets/
H A DM68k.cpp33 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A 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,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp44 const MCAsmLayout &Layout, const MCFragment *Fragment,
150 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument
156 uint32_t FixupOffset = Layout.getFragmentOffset(Fragment); in recordRelocation()
229 Layout.getSymbolOffset(*B) == in recordRelocation()
230 Layout.getFragmentOffset(Fragment) + Fixup.getOffset()) { in recordRelocation()
282 Value += (!A->getFragment() ? 0 : Writer->getSymbolAddress(*A, Layout)) - in recordRelocation()
284 *A_Base, Layout)); in recordRelocation()
287 *B_Base, Layout)); in recordRelocation()
343 Layout.getSymbolOffset(*Symbol) - Layout.getSymbolOffset(*Base); in recordRelocation()
356 Value += Writer->getSymbolAddress(*Symbol, Layout); in recordRelocation()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DOSLog.cpp136 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 …]

12345678