Home
last modified time | relevance | path

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

12345678910

/openbsd-src/gnu/llvm/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.cpp35 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 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 …]
/openbsd-src/gnu/llvm/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.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 …]
H A DPDBFileBuilder.cpp231 const msf::MSFLayout &Layout) { in commitSrcHeaderBlock() argument
236 Layout, MsfBuffer, SN, Allocator); in commitSrcHeaderBlock()
251 const msf::MSFLayout &Layout) { in commitInjectedSources() argument
255 commitSrcHeaderBlock(MsfBuffer, Layout); in commitInjectedSources()
261 Layout, MsfBuffer, SN, Allocator); in commitInjectedSources()
274 MSFLayout Layout; in commit() local
276 Msf->commit(Filename, Layout); in commit()
286 Layout, Buffer, *ExpectedSN, Allocator); in commit()
296 Layout, Buffer, NSE.first, Allocator); in commit()
303 if (auto EC = Info->commit(Layout, Buffer)) in commit()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMCAssembler.cpp196 bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout, in evaluateFixup() argument
212 if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) { in evaluateFixup()
229 return getBackend().evaluateTargetFixup(*this, Layout, Fixup, DF, Target, in evaluateFixup()
262 Value += Layout.getSymbolOffset(Sym); in evaluateFixup()
267 Value -= Layout.getSymbolOffset(Sym); in evaluateFixup()
276 uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset(); in evaluateFixup()
293 uint64_t MCAssembler::computeFragmentSize(const MCAsmLayout &Layout, in computeFragmentSize() argument
306 if (!FF.getNumValues().evaluateAsAbsolute(NumValues, Layout)) { in computeFragmentSize()
333 unsigned Offset = Layout.getFragmentOffset(&AF); in computeFragmentSize()
356 if (!OF.getOffset().evaluateAsValue(Value, Layout)) { in computeFragmentSize()
[all …]
H A DMCExpr.cpp541 const MCAsmLayout &Layout) const { in evaluateAsAbsolute()
542 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, nullptr, false); in evaluateAsAbsolute()
546 const MCAsmLayout &Layout, in evaluateAsAbsolute() argument
550 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, &Addrs, true); in evaluateAsAbsolute()
562 const MCAsmLayout &Layout) const { in evaluateKnownAbsolute()
563 return evaluateAsAbsolute(Res, &Layout.getAssembler(), &Layout, nullptr, in evaluateKnownAbsolute()
568 const MCAsmLayout *Layout, in evaluateAsAbsolute() argument
579 evaluateAsRelocatableImpl(Value, Asm, Layout, nullptr, Addrs, InSet); in evaluateAsAbsolute()
589 const MCAssembler *Asm, const MCAsmLayout *Layout, in AttemptToFoldSymbolOffsetDifference() argument
636 if (Layout) { in AttemptToFoldSymbolOffsetDifference()
[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 DMachObjectWriter.cpp84 const MCAsmLayout &Layout) const { in getFragmentAddress()
86 Layout.getFragmentOffset(Fragment); in getFragmentAddress()
90 const MCAsmLayout &Layout) const { in getSymbolAddress()
98 if (!S.getVariableValue()->evaluateAsRelocatable(Target, &Layout, nullptr)) in getSymbolAddress()
112 Address += getSymbolAddress(Target.getSymA()->getSymbol(), Layout); in getSymbolAddress()
114 Address += getSymbolAddress(Target.getSymB()->getSymbol(), Layout); in getSymbolAddress()
119 Layout.getSymbolOffset(S); in getSymbolAddress()
123 const MCAsmLayout &Layout) const { in getPaddingSize()
124 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec); in getPaddingSize()
126 if (Next >= Layout.getSectionOrder().size()) in getPaddingSize()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp45 const MSFStreamLayout &Layout, in MappedBlockStream() argument
48 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
52 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream() argument
55 BlockSize, Layout, MsfData, Allocator); in createStream()
59 const MSFLayout &Layout, BinaryStreamRef MsfData, uint32_t StreamIndex, in createIndexedStream() argument
61 assert(StreamIndex < Layout.StreamMap.size() && "Invalid stream index"); in createIndexedStream()
63 SL.Blocks = Layout.StreamMap[StreamIndex]; in createIndexedStream()
64 SL.Length = Layout.StreamSizes[StreamIndex]; in createIndexedStream()
66 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
70 MappedBlockStream::createDirectoryStream(const MSFLayout &Layout, in createDirectoryStream() argument
[all …]
H A 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()
347 if (FileSize > getMaxFileSizeFromBlockSize(Layout.SB->BlockSize)) { in commit()
359 }(Layout.SB->BlockSize); in commit()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/MCTargetDesc/
H A 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 …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/include/llvm/MC/
H A DMCAssembler.h186 bool evaluateFixup(const MCAsmLayout &Layout, const MCFixup &Fixup,
193 const MCAsmLayout &Layout) const;
197 const MCAsmLayout &Layout) const;
201 bool layoutOnce(MCAsmLayout &Layout);
205 bool layoutSectionOnce(MCAsmLayout &Layout, MCSection &Sec);
209 bool relaxFragment(MCAsmLayout &Layout, MCFragment &F);
210 bool relaxInstruction(MCAsmLayout &Layout, MCRelaxableFragment &IF);
211 bool relaxLEB(MCAsmLayout &Layout, MCLEBFragment &IF);
212 bool relaxBoundaryAlign(MCAsmLayout &Layout, MCBoundaryAlignFragment &BF);
213 bool relaxDwarfLineAddr(MCAsmLayout &Layout, MCDwarfLineAddrFragment &DF);
[all …]
H A 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;
268 uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
H A DMCLinkerOptimizationHint.h112 const MCAsmLayout &Layout) const;
128 void emit(MachObjectWriter &ObjWriter, const MCAsmLayout &Layout) const;
133 const MCAsmLayout &Layout) const;
161 const MCAsmLayout &Layout) const { in getEmitSize() argument
164 EmitSize += D.getEmitSize(ObjWriter, Layout); in getEmitSize()
171 void emit(MachObjectWriter &ObjWriter, const MCAsmLayout &Layout) const { in emit() argument
173 D.emit(ObjWriter, Layout); in emit()
H A DMCAsmBackend.h114 const MCAsmLayout &Layout, in shouldInsertFixupForCodeAlign() argument
120 const MCAsmLayout &Layout, in evaluateTargetFixup() argument
158 const MCAsmLayout &Layout,
164 const MCAsmLayout &Layout) const = 0;
175 MCAsmLayout &Layout, bool &WasRelaxed) const { in relaxDwarfLineAddr() argument
179 virtual bool relaxDwarfCFA(MCDwarfCallFrameFragment &DF, MCAsmLayout &Layout, in relaxDwarfCFA() argument
207 MCAsmLayout &Layout) const {} in finishLayout() argument
/openbsd-src/gnu/llvm/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
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 …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A 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 …]
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 …]
/openbsd-src/gnu/llvm/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,
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/
H A 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 …]
/openbsd-src/gnu/llvm/compiler-rt/lib/memprof/
H A Dmemprof_rawprofile.cpp36 u64 SegmentSizeBytes(MemoryMappingLayoutBase &Layout) { in SegmentSizeBytes() argument
39 for (Layout.Reset(); Layout.Next(&segment);) in SegmentSizeBytes()
57 void SerializeSegmentsToBuffer(MemoryMappingLayoutBase &Layout, in SerializeSegmentsToBuffer() argument
66 for (Layout.Reset(); Layout.Next(&segment);) { in SerializeSegmentsToBuffer()
201 u64 SerializeToRawProfile(MIBMapTy &MIBMap, MemoryMappingLayoutBase &Layout, in SerializeToRawProfile() argument
205 const u64 NumSegmentBytes = RoundUpTo(SegmentSizeBytes(Layout), 8); in SerializeToRawProfile()
235 SerializeSegmentsToBuffer(Layout, NumSegmentBytes, Ptr); in SerializeToRawProfile()

12345678910