Home
last modified time | relevance | path

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

12345

/freebsd-src/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 {
365 switch (Form) {
401 sizeOf(Asm->getDwarfFormParams(), Form)); in emitValue()
422 dwarf::Form Form) cons in emitValue()
[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> For
[all...]
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> in getDefiningParentDieOffset()
417 return dwarf::Form::DW_FORM_ref4;
419 return dwarf::Form::DW_FORM_flag_present;
426 ID.AddInteger(Enc.Form); in encodeIdxParent()
436 std::optional<dwarf::Form> MaybeParentForm = getFormForIdxParent(
515 Asm->emitULEB128(AttrEnc.Form, in emitTUList()
516 dwarf::FormEncodingString(AttrEnc.Form).data());
557 ID.emitValue(Asm, AttrEnc.Form);
[all...]
H A DDwarfUnit.cpp222 std::optional<dwarf::Form> Form, uint64_t Integer) { in addUInt()
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()
232 addUInt(Block, (dwarf::Attribute)0, Form, Integer); in addUInt()
236 std::optional<dwarf::Form> For in addSInt()
221 addUInt(DIEValueList & Die,dwarf::Attribute Attribute,std::optional<dwarf::Form> Form,uint64_t Integer) addUInt() argument
229 addUInt(DIEValueList & Block,dwarf::Form Form,uint64_t Integer) addUInt() argument
235 addSInt(DIEValueList & Die,dwarf::Attribute Attribute,std::optional<dwarf::Form> Form,int64_t Integer) addSInt() argument
241 addSInt(DIELoc & Die,std::optional<dwarf::Form> Form,int64_t Integer) addSInt() argument
280 addLabel(DIEValueList & Die,dwarf::Attribute Attribute,dwarf::Form Form,const MCSymbol * Label) addLabel() argument
284 addLabel(DIELoc & Die,dwarf::Form Form,const MCSymbol * Label) addLabel() argument
396 addBlock(DIE & Die,dwarf::Attribute Attribute,dwarf::Form Form,DIEBlock * Block) addBlock() argument
[all...]
/freebsd-src/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.h240 /// DWARF Form.
241 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-src/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_Keywor in Keyword()
127 constexpr Form(Syntax SyntaxUsed) Form() function
[all...]
/freebsd-src/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 in skipValue()
641 getAsSectionedAddress(const ValueType & Value,const dwarf::Form Form,const DWARFUnit * U) getAsSectionedAddress() argument
761 doesFormBelongToClass(dwarf::Form Form,DWARFFormValue::FormClass FC,uint16_t DwarfVersion) doesFormBelongToClass() argument
[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-src/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
[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;
117 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
332 ArrayRef<std::pair<HeaderData::AtomType, HeaderData::Form>> getAtomsDesc();
410 dwarf::Form Form;
412 constexpr AttributeEncoding(dwarf::Index Index, dwarf::Form Form)
413 : Index(Index), Form(Form) {}
106 using Form = dwarf::Form; global() member
402 dwarf::Form Form; global() member
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDIEAttributeCloner.cpp51 DWARFFormValue::skipValue(AttrSpec.Form, Data, &Offset, in clone()
61 switch (AttrSpec.Form) { in clone()
111 dwarf::FormEncodingString(AttrSpec.Form) + in clone()
201 if (AttrSpec.Form == dwarf::DW_FORM_line_strp) { in cloneStringAttr()
286 dwarf::Form NewForm = IsLocal ? dwarf::DW_FORM_ref4 : dwarf::DW_FORM_ref_addr; in cloneDieRefAttr()
358 .addScalarAttribute(AttrSpec.Attr, AttrSpec.Form, in cloneScalarAttr()
412 if (AttrSpec.Form == dwarf::DW_FORM_loclistx) in cloneScalarAttr()
413 return Generator.addLocListAttribute(AttrSpec.Attr, AttrSpec.Form, Value) in cloneScalarAttr()
416 return Generator.addScalarAttribute(AttrSpec.Attr, AttrSpec.Form, Value) in cloneScalarAttr()
420 dwarf::Form ResultingForm = AttrSpec.Form; in cloneScalarAttr()
[all …]
H A DDIEGenerator.h51 dwarf::Form AttrForm, in addScalarAttribute()
58 dwarf::Form AttrForm, in addLocationAttribute()
72 dwarf::Form AttrForm, in addBlockAttribute()
94 dwarf::Form AttrForm, in addLocListAttribute()
101 dwarf::Form AttrForm, in addIndexedStringAttribute()
109 addStringPlaceholderAttribute(dwarf::Attribute Attr, dwarf::Form AttrForm) { in addStringPlaceholderAttribute()
161 dwarf::Form AttrForm, T &&Value) { in addAttribute()
H A DDWARFLinkerTypeUnit.cpp163 dwarf::Form DeclFileForm = in prepareDataForTreeCreation()
307 std::pair<dwarf::Form, uint8_t>
321 uint8_t TypeUnit::getSizeByAttrForm(dwarf::Form Form) const { in getSizeByAttrForm()
322 if (Form == dwarf::DW_FORM_data1) in getSizeByAttrForm()
325 if (Form == dwarf::DW_FORM_data2) in getSizeByAttrForm()
328 if (Form == dwarf::DW_FORM_data4) in getSizeByAttrForm()
331 if (Form == dwarf::DW_FORM_data8) in getSizeByAttrForm()
334 if (Form == dwarf::DW_FORM_data16) in getSizeByAttrForm()
H A DDWARFLinkerTypeUnit.h94 std::pair<dwarf::Form, uint8_t> getScalarFormForValue(uint64_t Value) const;
96 uint8_t getSizeByAttrForm(dwarf::Form Form) const;
/freebsd-src/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp1 //===------ PPCLoopInstrFormPrep.cpp - Loop Instr Form Prep Pass ----------===//
263 const SCEV *BasePtrIncSCEV, PrepForm Form);
301 bool dispFormPrep(Loop *L, SmallVector<Bucket, 16> &Buckets, PrepForm Form);
305 /// \p Form is used to find the best base element.
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 prepareBaseForDispFormChain(Bucket & BucketChain,PrepForm Form) prepareBaseForDispFormChain() argument
1014 rewriteLoadStores(Loop * L,Bucket & BucketChain,SmallSet<BasicBlock *,16> & BBChanged,PrepForm Form) rewriteLoadStores() argument
1111 dispFormPrep(Loop * L,SmallVector<Bucket,16> & Buckets,PrepForm Form) dispFormPrep() argument
1216 alreadyPrepared(Loop * L,Instruction * MemI,const SCEV * BasePtrStartSCEV,const SCEV * BasePtrIncSCEV,PrepForm Form) alreadyPrepared() argument
[all...]
/freebsd-src/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()
773 switch (Form) { in getFixedFormByteSize()
859 bool llvm::dwarf::isValidFormForVersion(Form
729 getFixedFormByteSize(dwarf::Form Form,FormParams Params) getFixedFormByteSize() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/utils/TableGen/
H A DX86FoldTablesEmitter.cpp260 static bool mayFoldFromForm(uint8_t Form) { in byteFromBitsInit()
261 switch (Form) { in byteFromBitsInit()
263 return Form >= X86Local::MRM0r && Form <= X86Local::MRM7r; in mayFoldFromForm() argument
275 static bool mayFoldToForm(uint8_t Form) { in mayFoldFromForm()
276 switch (Form) { in mayFoldFromForm()
278 return Form >= X86Local::MRM0m && Form <= X86Local::MRM7m; in mayFoldToForm() argument
293 llvm_unreachable("Unexpected Form!"); in mayFoldFromLeftToRight()
358 if (!mayFoldFromLeftToRight(RegRI.Form, MemR in operator ()()
677 uint8_t Form = byteFromBitsInit(FormBits); run() local
[all...]
H A DX86RecognizableInstr.cpp117 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstrBase()
140 (Form == X86Local::MRMDestReg || Form == X86Local::MRMSrcReg);
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 in emitDecodePath()
[all...]
/freebsd-src/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,
258 Form formUsed) in ParsedAttr()
274 bool layoutCompatible, bool mustBeNull, Form formUsed)
291 ParsedType typeArg, Form formUsed, SourceLocation ellipsisLoc) in ParsedAttr()
304 IdentifierInfo *getterId, IdentifierInfo *setterId, Form formUsed) in getTypeTagForDatatypeDataSlot()
754 ArgsUnion *args, unsigned numArgs, ParsedAttr::Form form, in create()
771 ParsedAttr::Form form, SourceLocation strict,
784 IdentifierLoc *Param3, ParsedAttr::Form form) { in createTypeAttribute()
798 bool mustBeNull, ParsedAttr::Form for
[all...]
/freebsd-src/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()
[all...]
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-src/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 cloneDieReferenceAttribute()
1074 Die.addValue(DIEAlloc, dwarf::Attribute(AttrSpec.Attr), AttrSpec.Form, in cloneDieReferenceAttribute()
1124 if (AttrSpec.Form == dwarf::DW_FORM_ref_addr || in cloneDieReferenceAttribute()
1151 dwarf::Form(AttrSpec.Form), DIEEntry(*NewRefDie)); in cloneExpression()
1286 if (AttrSpec.Form in cloneBlockAttribute()
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DDwarf.h130 enum Form : uint16_t { enum
1033 unsigned FormVersion(Form F);
1047 unsigned FormVendor(Form F);
1119 /// \param Form DWARF form to get the fixed byte size for.
1122 /// std::nullopt if \p Form doesn't have a fixed byte size.
1123 std::optional<uint8_t> getFixedFormByteSize(dwarf::Form Form,
1128 bool isValidFormForVersion(Form F, unsigned Version, bool ExtensionsOk = true);
1180 template <> struct EnumTraits<Form> : public std::true_type {

12345