| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DIE.cpp | 40 ID.AddInteger(unsigned(Form)); in Profile() 41 if (Form == dwarf::DW_FORM_implicit_const) in Profile() 327 getDIE##T().emitValue(AP, Form); \ in emitValue() 339 return getDIE##T().sizeOf(FormParams, Form); in sizeOf() 370 void DIEInteger::emitValue(const AsmPrinter *Asm, dwarf::Form Form) const { in emitValue() 371 switch (Form) { in emitValue() 406 sizeOf(Asm->getDwarfFormParams(), Form)); in emitValue() 427 dwarf::Form Form) const { in sizeOf() 429 dwarf::getFixedFormByteSize(Form, FormParams)) in sizeOf() 432 switch (Form) { in sizeOf() [all …]
|
| H A D | DwarfUnit.h | 80 dwarf::Form Form, T &&Value) { in addAttribute() argument 91 DIEValue(Attribute, Form, std::forward<T>(Value))); in addAttribute() 146 std::optional<dwarf::Form> Form, uint64_t Integer); 148 void addUInt(DIEValueList &Block, dwarf::Form Form, uint64_t Integer); 152 std::optional<dwarf::Form> Form, int64_t Integer); 154 void addSInt(DIELoc &Die, std::optional<dwarf::Form> Form, int64_t Integer); 165 void addLabel(DIEValueList &Die, dwarf::Attribute Attribute, dwarf::Form Form, 168 void addLabel(DIELoc &Die, dwarf::Form Form, const MCSymbol *Label); 196 void addBlock(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
|
| H A D | AccelTable.cpp | 211 dwarf::Form Form; member 300 Asm->OutStreamer->AddComment(dwarf::FormEncodingString(A.Form)); in emit() 301 Asm->emitInt16(A.Form); in emit() 411 dwarf::Form Form = DIEInteger::BestForm(/*IsSigned*/ false, LargestCUIndex); in getUniformAttributes() local 412 UA.push_back({dwarf::DW_IDX_compile_unit, Form}); in getUniformAttributes() 459 Asm->emitULEB128(AttrEnc.Form, in emitAbbrevs() 460 dwarf::FormEncodingString(AttrEnc.Form).data()); in emitAbbrevs() 481 ID.emitValue(Asm, AttrEnc.Form); in emitEntry() 485 assert(AttrEnc.Form == dwarf::DW_FORM_ref4); in emitEntry() 631 << "Form: " << dwarf::FormEncodingString(Form) << "\n"; in print()
|
| H A D | DwarfUnit.cpp | 221 std::optional<dwarf::Form> Form, uint64_t Integer) { in addUInt() argument 222 if (!Form) in addUInt() 223 Form = DIEInteger::BestForm(false, Integer); in addUInt() 224 assert(Form != dwarf::DW_FORM_implicit_const && in addUInt() 226 addAttribute(Die, Attribute, *Form, DIEInteger(Integer)); in addUInt() 229 void DwarfUnit::addUInt(DIEValueList &Block, dwarf::Form Form, in addUInt() argument 231 addUInt(Block, (dwarf::Attribute)0, Form, Integer); in addUInt() 235 std::optional<dwarf::Form> Form, int64_t Integer) { in addSInt() argument 236 if (!Form) in addSInt() 237 Form = DIEInteger::BestForm(true, Integer); in addSInt() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | DIE.h | 54 dwarf::Form Form; variable 60 DIEAbbrevData(dwarf::Attribute A, dwarf::Form F) in DIEAbbrevData() 61 : Attribute(A), Form(F) {} in DIEAbbrevData() 63 : Attribute(A), Form(dwarf::DW_FORM_implicit_const), Value(V) {} in DIEAbbrevData() 68 dwarf::Form getForm() const { return Form; } in getForm() 109 void AddAttribute(dwarf::Attribute Attribute, dwarf::Form Form) { in AddAttribute() argument 110 Data.push_back(DIEAbbrevData(Attribute, Form)); in AddAttribute() 170 static dwarf::Form BestForm(bool IsSigned, uint64_t Int) { in BestForm() 193 void emitValue(const AsmPrinter *Asm, dwarf::Form Form) const; 194 unsigned sizeOf(const dwarf::FormParams &FormParams, dwarf::Form Form) const; [all …]
|
| H A D | AccelTable.h | 228 const uint16_t Form; member 230 constexpr Atom(uint16_t Type, uint16_t Form) : Type(Type), Form(Form) {} in Atom()
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFFormValue.cpp | 82 DWARFFormValue DWARFFormValue::createFromSValue(dwarf::Form F, int64_t V) { in createFromSValue() 86 DWARFFormValue DWARFFormValue::createFromUValue(dwarf::Form F, uint64_t V) { in createFromUValue() 90 DWARFFormValue DWARFFormValue::createFromPValue(dwarf::Form F, const char *V) { in createFromPValue() 94 DWARFFormValue DWARFFormValue::createFromBlockValue(dwarf::Form F, in createFromBlockValue() 102 DWARFFormValue DWARFFormValue::createFromUnit(dwarf::Form F, const DWARFUnit *U, in createFromUnit() 110 bool DWARFFormValue::skipValue(dwarf::Form Form, DataExtractor DebugInfoData, in skipValue() argument 115 switch (Form) { in skipValue() 175 dwarf::getFixedFormByteSize(Form, Params)) { in skipValue() 204 Form = static_cast<dwarf::Form>(DebugInfoData.getULEB128(OffsetPtr)); in skipValue() 216 if (Form < ArrayRef(DWARF5FormClasses).size() && in isFormClass() [all …]
|
| H A D | DWARFAbbreviationDeclaration.cpp | 62 auto F = static_cast<Form>(Data.getULEB128(OffsetPtr)); in extract() 131 OS << formatv("\t{0}\t{1}", Spec.Attr, Spec.Form); in dump() 160 DWARFFormValue::skipValue(AttributeSpecs[CurAttrIdx].Form, DebugInfoData, in getAttributeOffsetFromIndex() 174 return DWARFFormValue::createFromSValue(Spec.Form, in getAttributeValueFromOffset() 177 DWARFFormValue FormValue(Spec.Form); in getAttributeValueFromOffset() 218 auto FixedByteSize = dwarf::getFixedFormByteSize(Form, U.getFormParams()); in getByteSize()
|
| H A D | DWARFDebugInfoEntry.cpp | 81 } else if (!DWARFFormValue::skipValue(AttrSpec.Form, DebugInfoData, in extractFast() 89 U.getOffset(), AttrSpec.Form, *OffsetPtr)); in extractFast()
|
| H A D | DWARFAcceleratorTable.cpp | 73 auto AtomForm = static_cast<dwarf::Form>(AccelSection.getU16(&Offset)); in extract() 89 AppleAcceleratorTable::HeaderData::Form>> 418 W.startLine() << formatv("{0}: {1}\n", Attr.Index, Attr.Form); in dump() 422 return {dwarf::Index(0), dwarf::Form(0)}; in sentinelAttrEnc() 453 uint32_t Form = Section.AccelSection.getULEB128(Offset); in extractAttributeEncoding() local 454 return AttributeEncoding(dwarf::Index(Index), dwarf::Form(Form)); in extractAttributeEncoding() 535 Values.emplace_back(Attr.Form); in Entry()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFFormValue.h | 57 dwarf::Form Form; /// Form for this value. variable 64 DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {} in DWARFFormValue() 67 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form() function 69 static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V); 70 static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V); 71 static DWARFFormValue createFromPValue(dwarf::Form F, const char *V); 72 static DWARFFormValue createFromBlockValue(dwarf::Form F, 74 static DWARFFormValue createFromUnit(dwarf::Form F, const DWARFUnit *Unit, 77 dwarf::Form getForm() const { return Form; } in getForm() 147 return DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, Params); in skipValue() [all …]
|
| H A D | DWARFAbbreviationDeclaration.h | 29 AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value) in AttributeSpec() 30 : Attr(A), Form(F), Value(Value) { in AttributeSpec() 33 AttributeSpec(dwarf::Attribute A, dwarf::Form F, in AttributeSpec() 35 : Attr(A), Form(F) { in AttributeSpec() 43 dwarf::Form Form; member 70 return Form == dwarf::DW_FORM_implicit_const; in isImplicitConst() 100 dwarf::Form getFormByIndex(uint32_t idx) const { in getFormByIndex() 102 return AttributeSpecs[idx].Form; in getFormByIndex()
|
| H A D | DWARFAcceleratorTable.h | 97 using Form = dwarf::Form; member 100 SmallVector<std::pair<AtomType, Form>, 3> Atoms; 193 ArrayRef<std::pair<HeaderData::AtomType, HeaderData::Form>> getAtomsDesc(); 259 dwarf::Form Form; member 261 constexpr AttributeEncoding(dwarf::Index Index, dwarf::Form Form) in AttributeEncoding() 262 : Index(Index), Form(Form) {} in AttributeEncoding() 266 return LHS.Index == RHS.Index && LHS.Form == RHS.Form;
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| H A D | PPCLoopInstrFormPrep.cpp | 263 const SCEV *BasePtrIncSCEV, PrepForm Form); 301 bool dispFormPrep(Loop *L, SmallVector<Bucket, 16> &Buckets, PrepForm Form); 309 bool prepareBaseForDispFormChain(Bucket &BucketChain, PrepForm Form); 322 PrepForm Form); 327 Instruction *BaseMemI, bool CanPreInc, PrepForm Form, 651 PrepForm Form, SCEVExpander &SCEVE, in rewriteForBase() argument 681 if (Form == UpdateForm && !IsConstantInc && !EnableUpdateFormForNonConstInc) { in rewriteForBase() 698 if (alreadyPrepared(L, BaseMemI, BasePtrStartSCEV, BasePtrIncSCEV, Form)) { in rewriteForBase() 897 PrepForm Form) { in prepareBaseForDispFormChain() argument 912 .urem(Form); in prepareBaseForDispFormChain() [all …]
|
| H A D | PPCInstrFormats.td | 40 // Indicate that this instruction is of type X-Form Load or Store 123 // Base class for all X-Form memory instructions 128 // 1.7.1 I-Form 140 // 1.7.2 B-Form 221 // 1.7.3 SC-Form 234 // 1.7.4 D-Form 390 // 1.7.5 DS-Form 405 // ISA V3.0B 1.6.6 DX-Form 421 // DQ-Form: [PO T RA DQ TX XO] or [PO S RA DQ SX XO] 451 // 1.7.6 X-Form [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/BinaryFormat/ |
| H A D | Dwarf.cpp | 116 unsigned llvm::dwarf::FormVersion(dwarf::Form Form) { in FormVersion() argument 117 switch (Form) { in FormVersion() 127 unsigned llvm::dwarf::FormVendor(dwarf::Form Form) { in FormVendor() argument 128 switch (Form) { in FormVendor() 695 std::optional<uint8_t> llvm::dwarf::getFixedFormByteSize(dwarf::Form Form, in getFixedFormByteSize() argument 697 switch (Form) { in getFixedFormByteSize() 782 bool llvm::dwarf::isValidFormForVersion(Form F, unsigned Version, in isValidFormForVersion() 817 constexpr char llvm::dwarf::EnumTraits<Form>::Type[];
|
| /openbsd-src/gnu/llvm/llvm/utils/TableGen/ |
| H A D | X86RecognizableInstr.cpp | 115 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstrBase() 135 (Form == X86Local::MRMDestReg || Form == X86Local::MRMSrcReg); in RecognizableInstrBase() 139 return Form != X86Local::Pseudo && (!IsCodeGenOnly || ForceDisassemble) && in shouldBeEmitted() 488 switch (Form) { in emitInstructionSpecifier() 798 switch (Form) { in emitDecodePath() 838 filter = std::make_unique<ExtendedFilter>(true, Form - X86Local::MRM0r); in emitDecodePath() 844 filter = std::make_unique<ExtendedFilter>(true, Form - X86Local::MRM0X); in emitDecodePath() 847 filter = std::make_unique<ExtendedRMFilter>(true, Form - X86Local::MRMr0); in emitDecodePath() 853 filter = std::make_unique<ExtendedFilter>(false, Form - X86Local::MRM0m); in emitDecodePath() 856 filter = std::make_unique<ExactFilter>(0xC0 + Form - X86Local::MRM_C0); in emitDecodePath() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ |
| H A D | Dwarf.h | 130 enum Form : uint16_t { enum 695 unsigned FormVersion(Form F); 709 unsigned FormVendor(Form F); 777 std::optional<uint8_t> getFixedFormByteSize(dwarf::Form Form, 782 bool isValidFormForVersion(Form F, unsigned Version, bool ExtensionsOk = true); 834 template <> struct EnumTraits<Form> : public std::true_type {
|
| /openbsd-src/gnu/llvm/llvm/lib/DWP/ |
| H A D | DWP.cpp | 56 getIndexedString(dwarf::Form Form, DataExtractor InfoData, uint64_t &InfoOffset, in getIndexedString() argument 58 if (Form == dwarf::DW_FORM_string) in getIndexedString() 61 switch (Form) { in getIndexedString() 115 dwarf::Form Form; in getCUIdentifiers() local 117 (Form = static_cast<dwarf::Form>( in getCUIdentifiers() 119 (Name != 0 || Form != 0)) { in getCUIdentifiers() 123 Form, InfoData, Offset, StrOffsets, Str, Header.Version); in getCUIdentifiers() 132 Form, InfoData, Offset, StrOffsets, Str, Header.Version); in getCUIdentifiers() 143 Form, InfoData, &Offset, in getCUIdentifiers()
|
| /openbsd-src/gnu/llvm/llvm/lib/DWARFLinker/ |
| H A D | DWARFLinker.cpp | 660 DWARFFormValue Val(AttrSpec.Form); in lookForRefDIEsToKeep() 663 DWARFFormValue::skipValue(AttrSpec.Form, Data, &Offset, in lookForRefDIEsToKeep() 683 if (AttrSpec.Form != dwarf::DW_FORM_ref_addr && in lookForRefDIEsToKeep() 1001 if (AttrSpec.Form == dwarf::DW_FORM_ref_addr || in cloneDieReferenceAttribute() 1028 dwarf::Form(AttrSpec.Form), DIEEntry(*NewRefDie)); in cloneDieReferenceAttribute() 1105 if (AttrSpec.Form == dwarf::DW_FORM_exprloc) { in cloneBlockAttribute() 1117 dwarf::Form(AttrSpec.Form), Loc); in cloneBlockAttribute() 1120 dwarf::Form(AttrSpec.Form), Block); in cloneBlockAttribute() 1160 dwarf::Form(AttrSpec.Form), DIEInteger(Val.getRawUValue())); in cloneAddressAttribute() 1164 dwarf::Form Form = AttrSpec.Form; in cloneAddressAttribute() local [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFAttribute.cpp | 34 {attr, form_value.Form(), form_value.Value()}}; in Append() 43 if (form_value.Form() == DW_FORM_implicit_const) { in ExtractFormValueAtIndex()
|
| H A D | DWARFDebugInfoEntry.cpp | 215 (value.Form() == DW_FORM_rnglistx) in GetRangesOrReportError() 226 llvm::dwarf::FormEncodingString(value.Form()).str().c_str(), in GetRangesOrReportError() 280 if (form_value.Form() == DW_FORM_addr || in GetDIENamesAndRanges() 281 form_value.Form() == DW_FORM_addrx || in GetDIENamesAndRanges() 282 form_value.Form() == DW_FORM_GNU_addr_index) { in GetDIENamesAndRanges() 426 const dw_form_t form = form_value.Form(); in GetAttributes() 602 dw_form_t form = form_value.Form(); in GetAttributeHighPC()
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | dwarf2yaml.cpp | 41 AttAbrv.Form = Attribute.Form; in dumpDebugAbbrev() 42 if (AttAbrv.Form == dwarf::DW_FORM_implicit_const) in dumpDebugAbbrev() 251 auto Form = FormValue->getForm(); in dumpDebugInfo() local 255 switch (Form) { in dumpDebugInfo() 304 Form = static_cast<dwarf::Form>(*Val); in dumpDebugInfo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MCCodeEmitter.cpp | 620 uint64_t Form = TSFlags & X86II::FormMask; in emitPrefixImpl() local 621 switch (Form) { in emitPrefixImpl() 1375 uint64_t Form = TSFlags & X86II::FormMask; in encodeInstruction() local 1376 switch (Form) { in encodeInstruction() 1378 errs() << "FORM: " << Form << "\n"; in encodeInstruction() 1469 bool ForceSIB = (Form == X86II::MRMDestMemFSIB); in encodeInstruction() 1544 bool ForceSIB = (Form == X86II::MRMSrcMemFSIB); in encodeInstruction() 1616 (Form == X86II::MRMXr) ? 0 : Form - X86II::MRM0r, OS); in encodeInstruction() 1650 (Form == X86II::MRMXm) ? 0 : Form - X86II::MRM0m, TSFlags, in encodeInstruction() 1664 emitByte(0xC0 + ((Form - X86II::MRM0X) << 3), OS); in encodeInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelDAGToDAG.cpp | 43 AddrForm Form; member 66 : Form(form), DR(dr), Disp(0), IncludesDynAlloc(false) {} in SystemZAddressingMode() 69 bool hasIndexField() { return Form != FormBD; } in hasIndexField() 72 bool isDynAlloc() { return Form == FormBDXDynAlloc; } in isDynAlloc() 178 bool selectBDXAddr(SystemZAddressingMode::AddrForm Form, 598 if (AM.Form == SystemZAddressingMode::FormBDXLA && in selectAddress() 692 bool SystemZDAGToDAGISel::selectBDXAddr(SystemZAddressingMode::AddrForm Form, in selectBDXAddr() argument 696 SystemZAddressingMode AM(Form, DR); in selectBDXAddr() 1684 SystemZAddressingMode::AddrForm Form; in SelectInlineAsmMemoryOperand() local 1695 Form = SystemZAddressingMode::FormBD; in SelectInlineAsmMemoryOperand() [all …]
|