Home
last modified time | relevance | path

Searched refs:DataRef (Results 1 – 25 of 55) sorted by relevance

123

/external/llvm-project/flang/include/flang/Evaluate/
Dvariable.h46 struct DataRef;
76 Component(const DataRef &b, const Symbol &c) : base_{b}, symbol_{c} {} in CLASS_BOILERPLATE()
77 Component(DataRef &&b, const Symbol &c) : base_{std::move(b)}, symbol_{c} {} in Component()
78 Component(common::CopyableIndirection<DataRef> &&b, const Symbol &c) in Component()
81 const DataRef &base() const { return base_.value(); } in base()
82 DataRef &base() { return base_.value(); } in base()
91 common::CopyableIndirection<DataRef> base_;
283 struct DataRef { struct
284 EVALUATE_UNION_CLASS_BOILERPLATE(DataRef)
299 using Parent = std::variant<DataRef, StaticDataObject::Pointer>; argument
[all …]
Dtools.h190 common::IfNoLvalue<std::optional<DataRef>, A> ExtractDataRef( in ExtractDataRef()
195 std::optional<DataRef> ExtractDataRef(
198 [=](const auto &x) -> std::optional<DataRef> {
199 if constexpr (common::HasMember<decltype(x), decltype(DataRef::u)>) {
200 return DataRef{x};
212 std::optional<DataRef> ExtractDataRef(
218 std::optional<DataRef> ExtractDataRef(
226 std::optional<DataRef> ExtractSubstringBase(const Substring &);
232 const DataRef *ref{&*dataRef};
277 std::optional<CoarrayRef> operator()(const DataRef &dataRef) const { in operator()
Dfold-designator.h90 const DataRef &, ConstantSubscript);
123 if (const auto *dataRef{ss.GetParentIf<DataRef>()}) { in FoldDesignator()
/external/llvm-project/flang/lib/Parser/
Dtools.cpp19 const Name &GetLastName(const DataRef &x) { in GetLastName()
35 return GetLastName(std::get<DataRef>(x.t)); in GetLastName()
77 const Name &GetFirstName(const DataRef &x) { in GetFirstName()
93 return GetFirstName(std::get<DataRef>(x.t)); in GetFirstName()
126 const CoindexedNamedObject *GetCoindexedNamedObject(const DataRef &base) { in GetCoindexedNamedObject()
141 [](const DataRef &x) -> const CoindexedNamedObject * { in GetCoindexedNamedObject()
146 std::get<DataRef>(x.t)); in GetCoindexedNamedObject()
Dparse-tree.cpp37 [](const DataRef &dr) { in EndsInBareName()
48 DataRef::DataRef(std::list<PartRef> &&prl) : u{std::move(prl.front().name)} { in DataRef() function in Fortran::parser::DataRef
97 ArrayElement arrayElement{DataRef{Name{name}}, std::list<SectionSubscript>{}}; in MakeArrayElementRef()
102 return Designator{DataRef{common::Indirection{std::move(arrayElement)}}}; in MakeArrayElementRef()
107 ArrayElement arrayElement{DataRef{common::Indirection{std::move(sc)}}, in MakeArrayElementRef()
113 return Designator{DataRef{common::Indirection{std::move(arrayElement)}}}; in MakeArrayElementRef()
216 WithSource(arg.source, Designator{DataRef{Name{arg}}})}})); in ConvertToAssignment()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DCFGDiff.h159 using DataRef = const GraphDiff<BasicBlock *, InverseGraph> *; member
160 using NodeRef = std::pair<DataRef, BasicBlock *>;
163 WrappedPairNodeDataIterator<succ_iterator, NodeRef, DataRef>;
176 WrappedPairNodeDataIterator<vec_iterator, NodeRef, DataRef>;
213 using DataRef = const GraphDiff<BasicBlock *, InverseGraph> *; member
214 using NodeRef = std::pair<DataRef, BasicBlock *>;
217 WrappedPairNodeDataIterator<pred_iterator, NodeRef, DataRef>;
230 WrappedPairNodeDataIterator<vec_iterator, NodeRef, DataRef>;
/external/llvm-project/flang/lib/Evaluate/
Dfold.cpp153 DataRef FoldOperation(FoldingContext &context, DataRef &&dataRef) { in FoldOperation()
155 [&](SymbolRef symbol) { return DataRef{*symbol}; }, in FoldOperation()
157 return DataRef{FoldOperation(context, std::move(x))}; in FoldOperation()
166 if (const DataRef * dataRef{substring.GetParentIf<DataRef>()}) { in FoldOperation()
167 return Substring{FoldOperation(context, DataRef{*dataRef}), in FoldOperation()
176 DataRef complex{complexPart.complex()}; in FoldOperation()
Dvariable.cpp149 [](const DataRef &dataRef) { return dataRef.LEN(); }, in upper()
305 std::optional<Expr<SubscriptInteger>> DataRef::LEN() const { in LEN()
418 int DataRef::Rank() const { in Rank()
428 [](const DataRef &dataRef) { return dataRef.Rank(); }, in Rank()
491 const Symbol &DataRef::GetFirstSymbol() const { in GetFirstSymbol()
499 const Symbol &DataRef::GetLastSymbol() const { in GetLastSymbol()
509 [](const DataRef &dataRef) { in GetBaseObject()
522 [](const DataRef &dataRef) { return &dataRef.GetLastSymbol(); }, in GetLastSymbol()
586 DataRef base{result.IsSymbol() ? DataRef{result.GetLastSymbol()} in AsNamedEntity()
587 : DataRef{result.GetComponent()}}; in AsNamedEntity()
[all …]
Dfold-designator.cpp148 const DataRef &base{component.base()}; in FoldDesignator()
180 const DataRef &dataRef, ConstantSubscript which) { in FoldDesignator()
268 static std::optional<DataRef> OffsetToDataRef(FoldingContext &context, in OffsetToDataRef()
272 return entity.IsSymbol() ? DataRef{symbol} in OffsetToDataRef()
273 : DataRef{std::move(entity.GetComponent())}; in OffsetToDataRef()
275 std::optional<DataRef> result; in OffsetToDataRef()
282 result = DataRef{std::move(*aref)}; in OffsetToDataRef()
286 ? DataRef{symbol} in OffsetToDataRef()
287 : DataRef{std::move(entity.GetComponent())}; in OffsetToDataRef()
311 if (std::optional<DataRef> dataRef{ in OffsetToDesignator()
/external/llvm-project/flang/include/flang/Parser/
Dtools.h21 const Name &GetLastName(const DataRef &);
35 const Name &GetFirstName(const DataRef &);
110 const CoindexedNamedObject *GetCoindexedNamedObject(const DataRef &);
Dparse-tree.h182 struct DataRef; // R911
1746 struct DataRef { struct
1747 UNION_CLASS_BOILERPLATE(DataRef);
1748 explicit DataRef(std::list<PartRef> &&);
1765 std::tuple<DataRef, SubstringRange> t; argument
1780 std::variant<DataRef, Substring> u;
1808 StructureComponent(DataRef &&dr, Name &&n) in StructureComponent()
1810 DataRef base;
1823 CoindexedNamedObject(DataRef &&dr, ImageSelector &&is) in CoindexedNamedObject()
1825 DataRef base;
[all …]
/external/llvm-project/flang/include/flang/Lower/
DAbstractConverter.h21 struct DataRef;
89 virtual mlir::Type genType(const Fortran::evaluate::DataRef &) = 0;
DConvertType.h39 struct DataRef;
77 const evaluate::DataRef &dataRef);
/external/llvm-project/llvm/include/llvm/ADT/
Diterator.h345 template <typename ItType, typename NodeRef, typename DataRef>
348 WrappedPairNodeDataIterator<ItType, NodeRef, DataRef>, ItType,
356 const DataRef DR;
360 WrappedPairNodeDataIterator(ItType Begin, const DataRef DR) in WrappedPairNodeDataIterator()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
Diterator.h343 template <typename ItType, typename NodeRef, typename DataRef>
346 WrappedPairNodeDataIterator<ItType, NodeRef, DataRef>, ItType,
354 const DataRef DR;
358 WrappedPairNodeDataIterator(ItType Begin, const DataRef DR) in WrappedPairNodeDataIterator()
/external/llvm-project/flang/lib/Semantics/
Dresolve-names-utils.h29 struct DataRef;
119 bool CheckDataRef(const parser::CharBlock &, const parser::DataRef &);
Dcheck-data.h49 bool CheckAllSubscriptsInDataRef(const parser::DataRef &, parser::CharBlock);
Dexpression.cpp179 MaybeExpr ExpressionAnalyzer::Designate(DataRef &&ref) { in Designate()
200 return TypedWrapper<Designator, DataRef>(*dyType, std::move(ref)); in Designate()
250 return Designate(DataRef{std::move(ref)}); in CompleteSubscripts()
255 DataRef &&dataRef, std::vector<Subscript> &&subscripts) { in ApplySubscripts()
277 MaybeExpr ExpressionAnalyzer::TopLevelChecks(DataRef &&dataRef) { in TopLevelChecks()
298 if (auto *dataRef{std::get_if<parser::DataRef>(&mutate.u)}) { in FixMisparsedSubstring()
342 if (std::optional<DataRef> dataRef{ExtractDataRef(std::move(result))}) { in Analyze()
695 return Designate(DataRef{*n.symbol}); in Analyze()
772 if (MaybeExpr baseExpr{Analyze(std::get<parser::DataRef>(ss.t))}) { in Analyze()
773 if (std::optional<DataRef> dataRef{ExtractDataRef(std::move(*baseExpr))}) { in Analyze()
[all …]
Dresolve-names-utils.cpp465 [&](const parser::DataRef &x) { in CheckDesignator()
469 const auto &dataRef{std::get<parser::DataRef>(x.t)}; in CheckDesignator()
487 const parser::CharBlock &source, const parser::DataRef &x) { in CheckDataRef()
/external/llvm-project/llvm/tools/llvm-readobj/
DWasmDumper.cpp233 W.printHex("Offset", Symbol.Info.DataRef.Offset); in printSymbol()
234 W.printHex("Segment", Symbol.Info.DataRef.Segment); in printSymbol()
235 W.printHex("Size", Symbol.Info.DataRef.Size); in printSymbol()
/external/llvm-project/lld/wasm/
DInputFiles.cpp165 wasmObj->dataSegments()[sym.Info.DataRef.Segment]; in calcExpectedValue()
167 return segment.Data.Offset.Value.Int32 + sym.Info.DataRef.Offset + in calcExpectedValue()
170 return segment.Data.Offset.Value.Int64 + sym.Info.DataRef.Offset + in calcExpectedValue()
471 InputSegment *seg = segments[sym.Info.DataRef.Segment]; in createDefined()
472 auto offset = sym.Info.DataRef.Offset; in createDefined()
473 auto size = sym.Info.DataRef.Size; in createDefined()
/external/llvm-project/flang/include/flang/Semantics/
Dexpression.h231 MaybeExpr Analyze(const parser::DataRef &dr) { in Analyze()
232 return Analyze<parser::DataRef>(dr); in Analyze()
340 MaybeExpr Designate(DataRef &&);
342 MaybeExpr ApplySubscripts(DataRef &&, std::vector<Subscript> &&);
343 MaybeExpr TopLevelChecks(DataRef &&);
/external/llvm-project/llvm/lib/Object/
DWasmObjectFile.cpp47 Out << ", Segment=" << Info.DataRef.Segment; in print()
48 Out << ", Offset=" << Info.DataRef.Offset; in print()
49 Out << ", Size=" << Info.DataRef.Size; in print()
634 Info.DataRef = wasm::WasmDataReference{Index, Offset, Size}; in parseLinkingSectionSymtab()
1464 uint32_t SegmentIndex = Sym.Info.DataRef.Segment; in getWasmSymbolValue()
1467 return Segment.Offset.Value.Int32 + Sym.Info.DataRef.Offset; in getWasmSymbolValue()
1469 return Segment.Offset.Value.Int64 + Sym.Info.DataRef.Offset; in getWasmSymbolValue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DWasmEmitter.cpp199 encodeULEB128(Info.DataRef.Segment, SubSection.getStream()); in writeSectionContent()
200 encodeULEB128(Info.DataRef.Offset, SubSection.getStream()); in writeSectionContent()
201 encodeULEB128(Info.DataRef.Size, SubSection.getStream()); in writeSectionContent()
/external/llvm-project/llvm/lib/ObjectYAML/
DWasmEmitter.cpp201 encodeULEB128(Info.DataRef.Segment, SubSection.getStream()); in writeSectionContent()
202 encodeULEB128(Info.DataRef.Offset, SubSection.getStream()); in writeSectionContent()
203 encodeULEB128(Info.DataRef.Size, SubSection.getStream()); in writeSectionContent()

123