Searched refs:Reference (Results 1 - 25 of 88) sorted by relevance

1234

/freebsd-13-stable/contrib/llvm-project/lld/include/lld/Core/
H A DReader.h13 #include "lld/Core/Reference.h"
77 /// tables which map Reference kind values to strings.
90 /// Walk the list of registered kind tables to convert a Reference Kind
92 bool referenceKindFromString(StringRef inputStr, Reference::KindNamespace &ns,
93 Reference::KindArch &a,
94 Reference::KindValue &value) const;
96 /// Walk the list of registered kind tables to convert a Reference Kind
98 bool referenceKindToString(Reference::KindNamespace ns, Reference::KindArch a,
99 Reference
[all...]
H A DSimple.h21 #include "lld/Core/Reference.h"
114 class SimpleReference : public Reference,
117 SimpleReference(Reference::KindNamespace ns, Reference::KindArch arch,
118 Reference::KindValue value, uint64_t off, const Atom *t,
119 Reference::Addend a)
120 : Reference(ns, arch, value), _target(t), _offsetInAtom(off), _addend(a) {
123 : Reference(Reference::KindNamespace::all, Reference
[all...]
H A DReference.h1 //===- Core/References.h - A Reference to Another Atom ----------*- C++ -*-===//
21 /// and each Reference is an edge.
24 /// the Atom, then the function Atom will have a Reference of: offsetInAtom=40,
41 class Reference { class in namespace:lld
101 /// Reference is an abstract base class. Only subclasses can use constructor.
102 Reference(KindNamespace ns, KindArch a, KindValue value) function in class:lld::Reference
105 /// The memory for Reference objects is always managed by the owning File
107 /// delete on a Reference. In fact, some File objects may bulk allocate
109 virtual ~Reference() = default;
H A DDefinedAtom.h14 #include "lld/Core/Reference.h"
294 const Reference *operator*() const {
298 const Reference *operator->() const {
326 virtual void addReference(Reference::KindNamespace ns,
327 Reference::KindArch arch,
328 Reference::KindValue kindValue, uint64_t off,
329 const Atom *target, Reference::Addend a) {
363 /// Returns a pointer to the Reference object that the abstract
365 virtual const Reference *derefIterator(const void *iter) const = 0;
367 /// Adjusts the abstract iterator to "point" to the next Reference
[all...]
/freebsd-13-stable/sys/contrib/dev/acpica/components/executer/
H A Dexdebug.c341 switch (SourceDesc->Reference.Class)
345 AcpiOsPrintf ("0x%X\n", SourceDesc->Reference.Value);
352 AcpiOsPrintf ("Table Index 0x%X\n", SourceDesc->Reference.Value);
364 if (SourceDesc->Reference.Node)
366 if (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc->Reference.Node) !=
370 SourceDesc->Reference.Node);
374 AcpiOsPrintf ("Node %p [%4.4s] ", SourceDesc->Reference.Node,
375 (SourceDesc->Reference.Node)->Name.Ascii);
377 switch ((SourceDesc->Reference.Node)->Type)
391 AcpiExDoDebugObject ((SourceDesc->Reference
[all...]
H A Dexresolv.c182 * DESCRIPTION: Convert Reference objects to values
252 * DESCRIPTION: Retrieve the value from an internal object. The Reference type
279 RefType = StackDesc->Reference.Class;
290 StackDesc->Reference.Value, WalkState, &ObjDesc);
297 StackDesc->Reference.Value, ObjDesc));
300 * Now we can delete the original Reference Object and
309 switch (StackDesc->Reference.TargetType)
328 ObjDesc = *StackDesc->Reference.Where;
358 "Unknown TargetType 0x%X in Index/Reference object %p",
359 StackDesc->Reference
[all...]
H A Dexstore.c185 * Reference;
234 /* Destination object must be a Reference or a Constant object */
255 /* Destination is not a Reference object */
258 "Target is not a Reference or Constant object - [%s] %p",
265 * Examine the Reference class. These cases are handled:
272 switch (RefDesc->Reference.Class)
279 RefDesc->Reference.Object,
295 Status = AcpiDsStoreObjectToLocal (RefDesc->Reference.Class,
296 RefDesc->Reference.Value, SourceDesc, WalkState);
313 ACPI_ERROR ((AE_INFO, "Unknown Reference Clas
[all...]
H A Dexoparg2.c509 ReturnDesc->Reference.Value = (UINT32) Index;
510 ReturnDesc->Reference.Class = ACPI_REFCLASS_INDEX;
526 ReturnDesc->Reference.TargetType = ACPI_TYPE_BUFFER_FIELD;
527 ReturnDesc->Reference.IndexPointer =
539 ReturnDesc->Reference.TargetType = ACPI_TYPE_BUFFER_FIELD;
540 ReturnDesc->Reference.IndexPointer =
552 ReturnDesc->Reference.TargetType = ACPI_TYPE_PACKAGE;
553 ReturnDesc->Reference.Where =
579 ReturnDesc->Reference.Object = Operand[0];
H A Dexoparg1.c784 * Since we are expecting a Reference operand, it can be either a
796 * Convert the Reference operand to an Integer (This removes a
832 * Reference object
986 switch (Operand[0]->Reference.Class)
994 Operand[0]->Reference.Class,
995 Operand[0]->Reference.Value,
1014 TempDesc = Operand[0]->Reference.Object;
1103 switch (Operand[0]->Reference.Class)
1110 switch (Operand[0]->Reference.TargetType)
1114 TempDesc = Operand[0]->Reference
[all...]
H A Dexdump.c352 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Reference.Class), "Class"},
353 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Reference.TargetType), "Target Type"},
354 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Reference.Value), "Value"},
355 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.Object), "Object Desc"},
356 {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Reference.Node), "Node"},
357 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.Where), "Where"},
358 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.IndexPointer), "Index Pointer"},
406 {ACPI_EXD_UINT16, ACPI_EXD_OFFSET (Common.ReferenceCount), "Reference Count"},
803 AcpiOsPrintf ("Reference: [%s] ",
806 switch (ObjDesc->Reference
[all...]
H A Dexmisc.c205 switch (ObjDesc->Reference.Class)
213 ReferencedObj = ObjDesc->Reference.Object;
218 ACPI_ERROR ((AE_INFO, "Invalid Reference Class 0x%2.2X",
219 ObjDesc->Reference.Class));
247 ReferenceObj->Reference.Class = ACPI_REFCLASS_REFOF;
248 ReferenceObj->Reference.Object = ReferencedObj;
252 "Object %p Type [%s], returning Reference %p\n",
/freebsd-13-stable/contrib/llvm-project/lld/lib/Core/
H A DReader.cpp11 #include "lld/Core/Reference.h"
53 {Reference::kindLayoutAfter, "layout-after"},
54 {Reference::kindAssociate, "associate"},
58 addKindTable(Reference::KindNamespace::all, Reference::KindArch::all,
70 void Registry::addKindTable(Reference::KindNamespace ns,
71 Reference::KindArch arch,
78 Reference::KindNamespace &ns,
79 Reference::KindArch &arch,
80 Reference
[all...]
H A DResolver.cpp300 for (const Reference *ref : *defAtom) {
305 if (ref->kindNamespace() == lld::Reference::KindNamespace::all &&
306 ref->kindValue() == lld::Reference::kindAssociate) {
312 const_cast<Reference *>(ref)->setTarget(newTarget);
327 for (const Reference *ref : *defAtom)
336 static bool isBackref(const Reference *ref) {
337 if (ref->kindNamespace() != lld::Reference::KindNamespace::all)
339 return (ref->kindValue() == lld::Reference::kindLayoutAfter);
357 for (const Reference *ref : *defAtom)
/freebsd-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DArchHandler.h17 #include "lld/Core/Reference.h"
40 /// Convert mach-o Arch to Reference::KindArch.
41 virtual Reference::KindArch kindArch() = 0;
45 virtual bool isCallSite(const Reference &) = 0;
48 virtual bool isGOTAccess(const Reference &, bool &canBypassGOT) {
53 virtual bool isTLVAccess(const Reference &) const { return false; }
56 virtual void updateReferenceToTLV(const Reference *) {}
59 virtual bool isNonCallBranch(const Reference &) = 0;
62 virtual void updateReferenceToGOT(const Reference *, bool targetIsNowGOT) {}
70 virtual Reference
[all...]
H A DArchHandler_x86.cpp37 Reference::KindArch kindArch() override { return Reference::KindArch::x86; }
40 bool isCallSite(const Reference &) override;
41 bool isNonCallBranch(const Reference &) override {
45 bool isPointer(const Reference &) override;
52 Reference::KindValue imageOffsetKind() override {
56 Reference::KindValue imageOffsetKindIndirect() override {
60 Reference::KindValue unwindRefToPersonalityFunctionKind() override {
64 Reference::KindValue unwindRefToCIEKind() override {
68 Reference
[all...]
H A DArchHandler_x86_64.cpp37 Reference::KindArch kindArch() override {
38 return Reference::KindArch::x86_64;
42 bool isGOTAccess(const Reference &ref, bool &canBypassGOT) override {
43 if (ref.kindNamespace() != Reference::KindNamespace::mach_o)
45 assert(ref.kindArch() == Reference::KindArch::x86_64);
61 bool isTLVAccess(const Reference &ref) const override {
62 assert(ref.kindNamespace() == Reference::KindNamespace::mach_o);
63 assert(ref.kindArch() == Reference::KindArch::x86_64);
67 void updateReferenceToTLV(const Reference *ref) override {
68 assert(ref->kindNamespace() == Reference
[all...]
H A DArchHandler_arm64.cpp38 Reference::KindArch kindArch() override {
39 return Reference::KindArch::AArch64;
43 bool isGOTAccess(const Reference &ref, bool &canBypassGOT) override {
44 if (ref.kindNamespace() != Reference::KindNamespace::mach_o)
46 assert(ref.kindArch() == Reference::KindArch::AArch64);
63 void updateReferenceToGOT(const Reference *ref, bool targetNowGOT) override {
68 assert(ref->kindNamespace() == Reference::KindNamespace::mach_o);
69 assert(ref->kindArch() == Reference::KindArch::AArch64);
72 const_cast<Reference *>(ref)->setKindValue(page21);
75 const_cast<Reference *>(re
[all...]
H A DArchHandler_arm.cpp35 Reference::KindArch kindArch() override { return Reference::KindArch::ARM; }
38 bool isCallSite(const Reference &) override;
39 bool isPointer(const Reference &) override;
41 bool isNonCallBranch(const Reference &) override;
46 Reference::KindValue imageOffsetKind() override {
49 Reference::KindValue imageOffsetKindIndirect() override {
53 Reference::KindValue unwindRefToPersonalityFunctionKind() override {
57 Reference::KindValue unwindRefToCIEKind() override {
61 Reference
[all...]
H A DShimPass.cpp31 #include "lld/Core/Reference.h"
52 for (const Reference *ref : *atom) {
91 const Reference *ref) {
96 const_cast<Reference *>(ref)->setTarget(shim);
H A DStubsPass.cpp22 #include "lld/Core/Reference.h"
224 for (const Reference *ref : *atom) {
314 for (const Reference *ref : _targetToUses[target]) {
317 const_cast<Reference *>(ref)->setTarget(stub);
332 bool isCallSite(const Reference &ref) {
339 atom->addReference(Reference::KindNamespace::mach_o,
347 atom->addReference(Reference::KindNamespace::mach_o, refInfo.arch,
357 atom->addReference(Reference::KindNamespace::mach_o,
363 llvm::SmallVector<const Reference *, 8>> TargetToUses;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/
H A DSortJavaScriptImports.cpp152 JsModuleReference Reference = References[Indices[i]]; variable
153 if (appendReference(ReferencesText, Reference))
160 if (!Reference.IsExport &&
161 (Reference.IsExport != References[Indices[i + 1]].IsExport ||
162 Reference.Category != References[Indices[i + 1]].Category))
242 // Appends ``Reference`` to ``Buffer``, returning true if text within the
243 // ``Reference`` changed (e.g. symbol order).
244 bool appendReference(std::string &Buffer, JsModuleReference &Reference) { argument
247 SmallVector<JsImportedSymbol, 1> Symbols = Reference.Symbols;
252 if (Symbols == Reference
297 JsModuleReference Reference; local
331 parseModuleReference(const AdditionalKeywords &Keywords, JsModuleReference &Reference) argument
371 parseModuleBindings(const AdditionalKeywords &Keywords, JsModuleReference &Reference) argument
378 parseStarBinding(const AdditionalKeywords &Keywords, JsModuleReference &Reference) argument
394 parseNamedBindings(const AdditionalKeywords &Keywords, JsModuleReference &Reference) argument
[all...]
/freebsd-13-stable/sys/contrib/dev/acpica/components/debugger/
H A Ddbobject.c425 switch (ObjDesc->Reference.Class)
429 AcpiOsPrintf ("%X ", ObjDesc->Reference.Value);
433 [ObjDesc->Reference.Value].Object;
441 AcpiOsPrintf ("%X ", ObjDesc->Reference.Value);
445 [ObjDesc->Reference.Value].Object;
453 switch (ObjDesc->Reference.TargetType)
457 AcpiOsPrintf ("%p", ObjDesc->Reference.Object);
458 AcpiDbDecodeInternalObject (ObjDesc->Reference.Object);
463 AcpiOsPrintf ("%p", ObjDesc->Reference.Where);
464 if (!ObjDesc->Reference
[all...]
/freebsd-13-stable/sys/contrib/dev/acpica/components/dispatcher/
H A Ddsobject.c259 ObjDesc->Reference.Resolved = TRUE;
262 !ObjDesc->Reference.Node)
268 ObjDesc->Reference.Node = WalkState->ScopeInfo->Scope.Node;
269 ObjDesc->Reference.Aml = Op->Common.Aml;
270 ObjDesc->Reference.Resolved = FALSE;
635 ObjDesc->Reference.Value = ((UINT32) Opcode) - AML_FIRST_LOCAL_OP;
636 ObjDesc->Reference.Class = ACPI_REFCLASS_LOCAL;
639 ObjDesc->Reference.Value, WalkState,
641 &ObjDesc->Reference.Object));
648 ObjDesc->Reference
[all...]
H A Ddspkginit.c562 if (Element->Reference.Resolved)
573 ScopeInfo.Scope.Node = Element->Reference.Node; /* Prefix node */
575 Status = AcpiNsLookup (&ScopeInfo, (char *) Element->Reference.Aml,
603 (char *) Element->Reference.Aml, NULL, &ExternalPath);
642 Element->Reference.Resolved = TRUE;
643 Element->Reference.Node = ResolvedNode;
644 Type = Element->Reference.Node->Type;
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.h22 enum class PointerType { None, Pointer, Reference };

Completed in 198 milliseconds

1234