Home
last modified time | relevance | path

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

123456

/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(DIEValueList &Die, std::optional<dwarf::Form> Form,
184 void addLabel(DIEValueList &Die, dwarf::Attribute Attribute, dwarf::Form Form,
187 void addLabel(DIELoc &Die, dwarf::Form Form, const MCSymbol *Label);
215 void addBlock(DIE &Die, dwarf::Attribute Attribute, dwarf::Form Form,
H A DAccelTable.cpp304 Asm->OutStreamer->AddComment(dwarf::FormEncodingString(A.Form)); in emit()
305 Asm->emitInt16(A.Form); in emit()
408 static std::optional<dwarf::Form>
416 return dwarf::Form::DW_FORM_ref4; in getFormForIdxParent()
418 return dwarf::Form::DW_FORM_flag_present; in getFormForIdxParent()
425 ID.AddInteger(Enc.Form); in Profile()
435 std::optional<dwarf::Form> MaybeParentForm = getFormForIdxParent( in populateAbbrevsMap()
514 Asm->emitULEB128(AttrEnc.Form, in emitAbbrevs()
515 dwarf::FormEncodingString(AttrEnc.Form).data()); in emitAbbrevs()
556 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()
272 std::optional<dwarf::Form> Form, int64_t Integer) { in addSInt() argument
273 if (!Form) in addSInt()
274 Form = DIEInteger::BestForm(true, Integer); in addSInt()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DDIE.h55 dwarf::Form Form; variable
61 DIEAbbrevData(dwarf::Attribute A, dwarf::Form F) in DIEAbbrevData()
62 : Attribute(A), Form(F) {} in DIEAbbrevData()
64 : Attribute(A), Form(dwarf::DW_FORM_implicit_const), Value(V) {} in DIEAbbrevData()
69 dwarf::Form getForm() const { return Form; } in getForm()
110 void AddAttribute(dwarf::Attribute Attribute, dwarf::Form Form) { in AddAttribute() argument
111 Data.push_back(DIEAbbrevData(Attribute, Form)); in AddAttribute()
176 static dwarf::Form BestForm(bool IsSigned, uint64_t Int) { in BestForm()
199 LLVM_ABI void emitValue(const AsmPrinter *Asm, dwarf::Form Form) const;
201 dwarf::Form Form) const;
[all …]
H A DAccelTable.h242 const uint16_t Form; member
244 constexpr Atom(uint16_t Type, uint16_t Form) : Type(Type), Form(Form) {} in Atom()
372 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()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DAttributeCommonInfo.h106 class Form {
108 constexpr Form(Syntax SyntaxUsed, unsigned SpellingIndex, bool IsAlignas, in Form() function
113 constexpr Form(tok::TokenKind Tok) in Form() function
123 static Form GNU() { return AS_GNU; } in GNU()
124 static Form CXX11() { return AS_CXX11; } in CXX11()
125 static Form C23() { return AS_C23; } in C23()
126 static Form Declspec() { return AS_Declspec; } in Declspec()
127 static Form Microsoft() { return AS_Microsoft; } in Microsoft()
128 static Form Keyword(bool IsAlignas, bool IsRegularKeywordAttribute) { in Keyword()
129 return Form(AS_Keyword, SpellingNotCalculated, IsAlignas, in Keyword()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFFormValue.h58 dwarf::Form Form; /// Form for this value.
65 DWARFFormValue(dwarf::Form F, const ValueType &V) : Form(F), Value(V) {} in DWARFFormValue()
68 DWARFFormValue(dwarf::Form F = dwarf::Form(0)) : Form(F) {} in Form() function
70 LLVM_ABI static DWARFFormValue createFromSValue(dwarf::Form F, int64_t V);
71 LLVM_ABI static DWARFFormValue createFromUValue(dwarf::Form F, uint64_t V);
72 LLVM_ABI static DWARFFormValue createFromPValue(dwarf::Form F, const char *V);
73 LLVM_ABI static DWARFFormValue createFromBlockValue(dwarf::Form F,
76 createFromUnit(dwarf::Form F, const DWARFUnit *Unit, uint64_t *OffsetPtr);
78 getAsSectionedAddress(const ValueType &Val, const dwarf::Form Form,
81 dwarf::Form getForm() const { return Form; } in getForm()
[all …]
H A DDWARFAbbreviationDeclaration.h31 AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value) in AttributeSpec()
32 : Attr(A), Form(F), Value(Value) { in AttributeSpec()
35 AttributeSpec(dwarf::Attribute A, dwarf::Form F, in AttributeSpec()
37 : Attr(A), Form(F) { in AttributeSpec()
45 if (Form == dwarf::DW_FORM_implicit_const) in getFormValue()
46 return DWARFFormValue::createFromSValue(Form, getImplicitConstValue()); in getFormValue()
48 return DWARFFormValue(Form); in getFormValue()
52 dwarf::Form Form; member
79 return Form == dwarf::DW_FORM_implicit_const; in isImplicitConst()
109 dwarf::Form getFormByIndex(uint32_t idx) const { in getFormByIndex()
[all …]
H A DDWARFAcceleratorTable.h115 using Form = dwarf::Form; member
118 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
333 ArrayRef<std::pair<HeaderData::AtomType, HeaderData::Form>> getAtomsDesc();
411 dwarf::Form Form; member
413 constexpr AttributeEncoding(dwarf::Index Index, dwarf::Form Form) in AttributeEncoding()
414 : Index(Index), Form(Form) {} in AttributeEncoding()
418 return LHS.Index == RHS.Index && LHS.Form == RHS.Form;
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DDynamicAllocator.h35 enum class Form : uint8_t { enum
50 Form AllocForm;
52 AllocationSite(std::unique_ptr<std::byte[]> Memory, Form AllocForm) in AllocationSite()
71 Block *allocate(const Descriptor *D, unsigned EvalID, Form AllocForm);
74 unsigned EvalID, Form AllocForm);
77 Form AllocForm);
86 std::optional<Form> getAllocationForm(const Expr *Source) const { in getAllocationForm()
H A DDynamicAllocator.cpp44 Form AllocForm) { in allocate()
56 Form AllocForm) { in allocate()
69 Form AllocForm) { in allocate()
93 AllocForm == Form::Operator ? Lifetime::Ended : Lifetime::Started; in allocate()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp254 const SCEV *BasePtrIncSCEV, PrepForm Form);
292 bool dispFormPrep(Loop *L, SmallVector<Bucket, 16> &Buckets, PrepForm Form);
300 bool prepareBaseForDispFormChain(Bucket &BucketChain, PrepForm Form);
313 PrepForm Form);
318 Instruction *BaseMemI, bool CanPreInc, PrepForm Form,
642 PrepForm Form, SCEVExpander &SCEVE, in rewriteForBase() argument
672 if (Form == UpdateForm && !IsConstantInc && !EnableUpdateFormForNonConstInc) { in rewriteForBase()
689 if (alreadyPrepared(L, BaseMemI, BasePtrStartSCEV, BasePtrIncSCEV, Form)) { in rewriteForBase()
893 PrepForm Form) { in prepareBaseForDispFormChain() argument
908 .urem(Form); in prepareBaseForDispFormChain()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerTypeUnit.cpp162 dwarf::Form DeclFileForm = in prepareDataForTreeCreation()
303 std::pair<dwarf::Form, uint8_t>
317 uint8_t TypeUnit::getSizeByAttrForm(dwarf::Form Form) const { in getSizeByAttrForm()
318 if (Form == dwarf::DW_FORM_data1) in getSizeByAttrForm()
321 if (Form == dwarf::DW_FORM_data2) in getSizeByAttrForm()
324 if (Form == dwarf::DW_FORM_data4) in getSizeByAttrForm()
327 if (Form == dwarf::DW_FORM_data8) in getSizeByAttrForm()
330 if (Form == dwarf::DW_FORM_data16) in getSizeByAttrForm()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedAttr.h208 Form formUsed, SourceLocation ellipsisLoc) in ParsedAttr()
225 const Expr *messageExpr, Form formUsed, SourceLocation strict, in ParsedAttr()
243 IdentifierLoc *Parm2, IdentifierLoc *Parm3, Form formUsed) in ParsedAttr()
259 Form formUsed) in ParsedAttr()
275 AttributeScopeInfo scope, ParsedType typeArg, Form formUsed, in ParsedAttr()
289 IdentifierInfo *setterId, Form formUsed) in ParsedAttr()
737 unsigned numArgs, ParsedAttr::Form form,
754 ParsedAttr::Form form, SourceLocation strict, in create()
767 ParsedAttr::Form form) { in create()
779 bool layoutCompatible, bool mustBeNull, ParsedAttr::Form form) { in createTypeTagForDatatype()
[all …]
/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()
792 std::optional<uint8_t> llvm::dwarf::getFixedFormByteSize(dwarf::Form Form, in getFixedFormByteSize() argument
794 switch (Form) { in getFixedFormByteSize()
880 bool llvm::dwarf::isValidFormForVersion(Form F, unsigned Version, in isValidFormForVersion()
917 StringRef (*const llvm::dwarf::EnumTraits<Form>::StringFn)(unsigned) =
927 constexpr char llvm::dwarf::EnumTraits<Form>::Type[];
/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.cpp116 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstrBase()
140 (Form == X86Local::MRMDestReg || Form == X86Local::MRMSrcReg); in RecognizableInstrBase()
144 return Form != X86Local::Pseudo && (!IsCodeGenOnly || ForceDisassemble) && in shouldBeEmitted()
533 switch (Form) { in emitInstructionSpecifier()
904 switch (Form) { in emitDecodePath()
952 filter = std::make_unique<ExtendedFilter>(true, Form - X86Local::MRM0r); in emitDecodePath()
962 filter = std::make_unique<ExtendedFilter>(true, Form - X86Local::MRM0X); in emitDecodePath()
965 filter = std::make_unique<ExtendedRMFilter>(true, Form - X86Local::MRMr0); in emitDecodePath()
975 filter = std::make_unique<ExtendedFilter>(false, Form - X86Local::MRM0m); in emitDecodePath()
978 filter = std::make_unique<ExactFilter>(0xC0 + Form - X86Local::MRM_C0); in emitDecodePath()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugInfoEntry.cpp77 if (DWARFFormValue::SkipValue(attribute.Form, data, offset_ptr, &unit)) in Extract()
80 return report_error("Unsupported DW_FORM_{1:x}", attribute.Form); in Extract()
87 return (value.Form() == DW_FORM_rnglistx) in GetRanges()
96 form_value.FormRef() = attr_spec.Form; in ExtractAttrAndFormValue()
148 if (form_value.Form() == DW_FORM_addr || in GetDIENamesAndRanges()
149 form_value.Form() == DW_FORM_addrx || in GetDIENamesAndRanges()
150 form_value.Form() == DW_FORM_GNU_addr_index) { in GetDIENamesAndRanges()
171 GetOffset(), llvm::dwarf::FormEncodingString(form_value.Form()), in GetDIENamesAndRanges()
343 const dw_form_t form = form_value.Form(); in GetAttributes()
506 dw_form_t form = form_value.Form(); in GetAttributeHighPC()
H A DDWARFDebugAbbrev.cpp
/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.cpp56 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()

123456