Home
last modified time | relevance | path

Searched refs:Form (Results 1 – 25 of 120) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDIE.cpp40 ID.AddInteger(unsigned(Form)); in Profile()
41 if (Form == dwarf::DW_FORM_implicit_const) in Profile()
321 getDIE##T().emitValue(AP, Form); \ in emitValue()
333 return getDIE##T().sizeOf(FormParams, Form); in sizeOf()
364 void DIEInteger::emitValue(const AsmPrinter *Asm, dwarf::Form Form) const { in emitValue()
365 switch (Form) { in emitValue()
401 sizeOf(Asm->getDwarfFormParams(), Form)); in emitValue()
422 dwarf::Form Form) const { in sizeOf()
424 dwarf::getFixedFormByteSize(Form, FormParams)) in sizeOf()
427 switch (Form) { in sizeOf()
[all …]
H A DDwarfUnit.h85 dwarf::Form Form, T &&Value) { in addAttribute() argument
96 DIEValue(Attribute, Form, std::forward<T>(Value))); in addAttribute()
160 std::optional<dwarf::Form> Form, uint64_t Integer);
162 void addUInt(DIEValueList &Block, dwarf::Form Form, uint64_t Integer);
166 std::optional<dwarf::Form> Form, int64_t Integer);
168 void addSInt(DIELoc &Die, std::optional<dwarf::Form> Form, int64_t Integer);
179 void addLabel(DIEValueList &Die, dwarf::Attribute Attribute, dwarf::Form Form,
182 void addLabel(DIELoc &Die, dwarf::Form Form, const MCSymbol *Label);
210 void addBlock(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
H A DAccelTable.cpp305 Asm->OutStreamer->AddComment(dwarf::FormEncodingString(A.Form)); in emit()
306 Asm->emitInt16(A.Form); in emit()
409 static std::optional<dwarf::Form>
417 return dwarf::Form::DW_FORM_ref4; in getFormForIdxParent()
419 return dwarf::Form::DW_FORM_flag_present; in getFormForIdxParent()
426 ID.AddInteger(Enc.Form); in Profile()
436 std::optional<dwarf::Form> MaybeParentForm = getFormForIdxParent( in populateAbbrevsMap()
515 Asm->emitULEB128(AttrEnc.Form, in emitAbbrevs()
516 dwarf::FormEncodingString(AttrEnc.Form).data()); in emitAbbrevs()
557 ID.emitValue(Asm, AttrEnc.Form); in emitEntry()
[all …]
H A DDwarfUnit.cpp222 std::optional<dwarf::Form> Form, uint64_t Integer) { in addUInt() argument
223 if (!Form) in addUInt()
224 Form = DIEInteger::BestForm(false, Integer); in addUInt()
225 assert(Form != dwarf::DW_FORM_implicit_const && in addUInt()
227 addAttribute(Die, Attribute, *Form, DIEInteger(Integer)); in addUInt()
230 void DwarfUnit::addUInt(DIEValueList &Block, dwarf::Form Form, in addUInt() argument
232 addUInt(Block, (dwarf::Attribute)0, Form, Integer); in addUInt()
236 std::optional<dwarf::Form> Form, int64_t Integer) { in addSInt() argument
237 if (!Form) in addSInt()
238 Form = DIEInteger::BestForm(true, Integer); in addSInt()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DDIE.h54 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()
175 static dwarf::Form BestForm(bool IsSigned, uint64_t Int) { in BestForm()
198 void emitValue(const AsmPrinter *Asm, dwarf::Form Form) const;
199 unsigned sizeOf(const dwarf::FormParams &FormParams, dwarf::Form Form) const;
[all …]
H A DAccelTable.h241 const uint16_t Form; member
243 constexpr Atom(uint16_t Type, uint16_t Form) : Type(Type), Form(Form) {} in Atom()
369 dwarf::Form Form;
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFFormValue.cpp82 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()
177 dwarf::getFixedFormByteSize(Form, Params)) { in skipValue()
206 Form = static_cast<dwarf::Form>(DebugInfoData.getULEB128(OffsetPtr)); in skipValue()
217 return doesFormBelongToClass(Form, FC, U ? U->getVersion() : 3); in isFormClass()
[all …]
H A DDWARFAbbreviationDeclaration.cpp75 auto F = static_cast<Form>(Data.getULEB128(OffsetPtr, &Err)); in extract()
153 OS << formatv("\t{0}\t{1}", Spec.Attr, Spec.Form); in dump()
182 DWARFFormValue::skipValue(AttributeSpecs[CurAttrIdx].Form, DebugInfoData, in getAttributeOffsetFromIndex()
196 return DWARFFormValue::createFromSValue(Spec.Form, in getAttributeValueFromOffset()
199 DWARFFormValue FormValue(Spec.Form); in getAttributeValueFromOffset()
240 auto FixedByteSize = dwarf::getFixedFormByteSize(Form, U.getFormParams()); in getByteSize()
H A DDWARFDebugInfoEntry.cpp81 } else if (!DWARFFormValue::skipValue(AttrSpec.Form, DebugInfoData, in extractFast()
89 U.getOffset(), AttrSpec.Form, *OffsetPtr)); in extractFast()
H A DDWARFAcceleratorTable.cpp70 auto MakeUnsupportedFormError = [](dwarf::Form Form) { in extract() argument
73 dwarf::FormEncodingString(Form)); in extract()
78 auto AtomForm = static_cast<dwarf::Form>(AccelSection.getU16(&Offset)); in extract()
102 AppleAcceleratorTable::HeaderData::Form>>
484 W.startLine() << formatv("{0}: {1}\n", Attr.Index, Attr.Form); in dump()
488 return {dwarf::Index(0), dwarf::Form(0)}; in sentinelAttrEnc()
519 uint32_t Form = Section.AccelSection.getULEB128(Offset); in extractAttributeEncoding() local
520 return AttributeEncoding(dwarf::Index(Index), dwarf::Form(Form)); in extractAttributeEncoding()
610 Values.emplace_back(Attr.Form); in Entry()
699 if (ParentEntryOff->getForm() == dwarf::Form::DW_FORM_flag_present) in getParentDIEEntry()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DAttributeCommonInfo.h95 class Form {
97 constexpr Form(Syntax SyntaxUsed, unsigned SpellingIndex, bool IsAlignas, in Form() function
102 constexpr Form(tok::TokenKind Tok) in Form() function
112 static Form GNU() { return AS_GNU; } in GNU()
113 static Form CXX11() { return AS_CXX11; } in CXX11()
114 static Form C23() { return AS_C23; } in C23()
115 static Form Declspec() { return AS_Declspec; } in Declspec()
116 static Form Microsoft() { return AS_Microsoft; } in Microsoft()
117 static Form Keyword(bool IsAlignas, bool IsRegularKeywordAttribute) { in Keyword()
118 return Form(AS_Keyword, SpellingNotCalculated, IsAlignas, in Keyword()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFFormValue.h57 dwarf::Form Form; /// Form for this value.
64 DWARFFormValue(dwarf::Form F, const 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 getAsSectionedAddress(const ValueType &Val, const dwarf::Form Form,
80 dwarf::Form getForm() const { return Form; } in getForm()
[all …]
H A DDWARFAbbreviationDeclaration.h30 AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value) in AttributeSpec()
31 : Attr(A), Form(F), Value(Value) { in AttributeSpec()
34 AttributeSpec(dwarf::Attribute A, dwarf::Form F, in AttributeSpec()
36 : Attr(A), Form(F) { in AttributeSpec()
44 if (Form == dwarf::DW_FORM_implicit_const) in getFormValue()
45 return DWARFFormValue::createFromSValue(Form, getImplicitConstValue()); in getFormValue()
47 return DWARFFormValue(Form); in getFormValue()
51 dwarf::Form Form; member
78 return Form == dwarf::DW_FORM_implicit_const; in isImplicitConst()
108 dwarf::Form getFormByIndex(uint32_t idx) const { in getFormByIndex()
[all …]
H A DDWARFAcceleratorTable.h114 using Form = dwarf::Form; member
117 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
332 ArrayRef<std::pair<HeaderData::AtomType, HeaderData::Form>> getAtomsDesc();
410 dwarf::Form Form; member
412 constexpr AttributeEncoding(dwarf::Index Index, dwarf::Form Form) in AttributeEncoding()
413 : Index(Index), Form(Form) {} in AttributeEncoding()
417 return LHS.Index == RHS.Index && LHS.Form == RHS.Form;
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp263 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()
902 PrepForm Form) { in prepareBaseForDispFormChain() argument
917 .urem(Form); in prepareBaseForDispFormChain()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DX86FoldTablesEmitter.cpp260 static bool mayFoldFromForm(uint8_t Form) { in mayFoldFromForm() argument
261 switch (Form) { in mayFoldFromForm()
263 return Form >= X86Local::MRM0r && Form <= X86Local::MRM7r; in mayFoldFromForm()
275 static bool mayFoldToForm(uint8_t Form) { in mayFoldToForm() argument
276 switch (Form) { in mayFoldToForm()
278 return Form >= X86Local::MRM0m && Form <= X86Local::MRM7m; in mayFoldToForm()
358 if (!mayFoldFromLeftToRight(RegRI.Form, MemRI.Form)) in operator ()()
660 uint8_t Form = byteFromBitsInit(FormBits); in run() local
661 if (mayFoldToForm(Form)) in run()
663 else if (mayFoldFromForm(Form)) { in run()
H A DX86RecognizableInstr.cpp117 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstrBase()
140 (Form == X86Local::MRMDestReg || Form == X86Local::MRMSrcReg); in RecognizableInstrBase()
144 return Form != X86Local::Pseudo && (!IsCodeGenOnly || ForceDisassemble) && in shouldBeEmitted()
503 switch (Form) { in emitInstructionSpecifier()
874 switch (Form) { in emitDecodePath()
922 filter = std::make_unique<ExtendedFilter>(true, Form - X86Local::MRM0r); in emitDecodePath()
932 filter = std::make_unique<ExtendedFilter>(true, Form - X86Local::MRM0X); in emitDecodePath()
935 filter = std::make_unique<ExtendedRMFilter>(true, Form - X86Local::MRMr0); in emitDecodePath()
945 filter = std::make_unique<ExtendedFilter>(false, Form - X86Local::MRM0m); in emitDecodePath()
948 filter = std::make_unique<ExactFilter>(0xC0 + Form - X86Local::MRM_C0); in emitDecodePath()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedAttr.h221 ArgsUnion *args, unsigned numArgs, Form formUsed, in ParsedAttr()
239 const Expr *messageExpr, Form formUsed, SourceLocation strict, in ParsedAttr()
258 Form formUsed) in ParsedAttr()
274 bool layoutCompatible, bool mustBeNull, Form formUsed) in ParsedAttr()
291 ParsedType typeArg, Form formUsed, SourceLocation ellipsisLoc) in ParsedAttr()
304 IdentifierInfo *getterId, IdentifierInfo *setterId, Form formUsed) in ParsedAttr()
754 ArgsUnion *args, unsigned numArgs, ParsedAttr::Form form,
771 ParsedAttr::Form form, SourceLocation strict, in create()
784 IdentifierLoc *Param3, ParsedAttr::Form form) { in create()
798 bool mustBeNull, ParsedAttr::Form form) { in createTypeTagForDatatype()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugInfoEntry.cpp78 if (DWARFFormValue::SkipValue(attribute.Form, data, offset_ptr, &unit)) in Extract()
81 return report_error("Unsupported DW_FORM_{1:x}", attribute.Form); in Extract()
90 (value.Form() == DW_FORM_rnglistx) in GetRangesOrReportError()
101 llvm::dwarf::FormEncodingString(value.Form()).str().c_str(), in GetRangesOrReportError()
110 form_value.FormRef() = attr_spec.Form; in ExtractAttrAndFormValue()
162 if (form_value.Form() == DW_FORM_addr || in GetDIENamesAndRanges()
163 form_value.Form() == DW_FORM_addrx || in GetDIENamesAndRanges()
164 form_value.Form() == DW_FORM_GNU_addr_index) { in GetDIENamesAndRanges()
339 const dw_form_t form = form_value.Form(); in GetAttributes()
483 dw_form_t form = form_value.Form(); in GetAttributeHighPC()
H A DDWARFDebugAbbrev.cpp
H A DDWARFAttribute.cpp35 {attr, form_value.Form(), form_value.Value()}}; in Append()
44 if (form_value.Form() == DW_FORM_implicit_const) { in ExtractFormValueAtIndex()
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DDwarf.cpp116 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()
771 std::optional<uint8_t> llvm::dwarf::getFixedFormByteSize(dwarf::Form Form, in getFixedFormByteSize() argument
773 switch (Form) { in getFixedFormByteSize()
859 bool llvm::dwarf::isValidFormForVersion(Form F, unsigned Version, in isValidFormForVersion()
894 constexpr char llvm::dwarf::EnumTraits<Form>::Type[];
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinker.cpp
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinker.cpp757 DWARFFormValue Val(AttrSpec.Form); in lookForRefDIEsToKeep()
760 DWARFFormValue::skipValue(AttrSpec.Form, Data, &Offset, in lookForRefDIEsToKeep()
780 if (AttrSpec.Form != dwarf::DW_FORM_ref_addr && in lookForRefDIEsToKeep()
1043 if (AttrSpec.Form == dwarf::DW_FORM_line_strp) { in cloneStringAttribute()
1072 AttrSpec.Form = dwarf::DW_FORM_strp; in cloneStringAttribute()
1074 Die.addValue(DIEAlloc, dwarf::Attribute(AttrSpec.Attr), AttrSpec.Form, in cloneStringAttribute()
1124 if (AttrSpec.Form == dwarf::DW_FORM_ref_addr || in cloneDieReferenceAttribute()
1151 dwarf::Form(AttrSpec.Form), DIEEntry(*NewRefDie)); in cloneDieReferenceAttribute()
1286 if (AttrSpec.Form == dwarf::DW_FORM_exprloc) { in cloneBlockAttribute()
1326 dwarf::Form(AttrSpec.Form), Loc); in cloneBlockAttribute()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWP/
H A DDWP.cpp58 getIndexedString(dwarf::Form Form, DataExtractor InfoData, uint64_t &InfoOffset, in getIndexedString() argument
60 if (Form == dwarf::DW_FORM_string) in getIndexedString()
63 switch (Form) { in getIndexedString()
117 dwarf::Form Form; in getCUIdentifiers() local
119 (Form = static_cast<dwarf::Form>( in getCUIdentifiers()
121 (Name != 0 || Form != 0)) { in getCUIdentifiers()
125 Form, InfoData, Offset, StrOffsets, Str, Header.Version); in getCUIdentifiers()
134 Form, InfoData, Offset, StrOffsets, Str, Header.Version); in getCUIdentifiers()
145 Form, InfoData, &Offset, in getCUIdentifiers()

12345