Home
last modified time | relevance | path

Searched refs:NamedEntity (Results 1 – 14 of 14) sorted by relevance

/external/llvm-project/flang/include/flang/Evaluate/
Dvariable.h99 class NamedEntity {
101 CLASS_BOILERPLATE(NamedEntity) in CLASS_BOILERPLATE() argument
102 explicit NamedEntity(const Symbol &symbol) : u_{symbol} {} in CLASS_BOILERPLATE()
103 explicit NamedEntity(Component &&c) : u_{std::move(c)} {} in NamedEntity() function
115 bool operator==(const NamedEntity &) const;
135 TypeParamInquiry(NamedEntity &&x, const Symbol &param) in TypeParamInquiry()
137 TypeParamInquiry(std::optional<NamedEntity> &&x, const Symbol &param) in TypeParamInquiry()
140 const std::optional<NamedEntity> &base() const { return base_; } in base()
141 std::optional<NamedEntity> &base() { return base_; } in base()
149 std::optional<NamedEntity> base_;
[all …]
Dshape.h61 ExtentExpr GetLowerBound(FoldingContext &, const NamedEntity &, int dimension);
63 FoldingContext &, const NamedEntity &, int dimension);
66 Shape GetLowerBounds(FoldingContext &, const NamedEntity &);
67 Shape GetUpperBounds(FoldingContext &, const NamedEntity &);
68 MaybeExtentExpr GetExtent(FoldingContext &, const NamedEntity &, int dimension);
70 FoldingContext &, const Subscript &, const NamedEntity &, int dimension);
129 Shape CreateShape(int rank, NamedEntity &base) const { in CreateShape()
Dtools.h247 std::optional<NamedEntity> ExtractNamedEntity(const A &x) { in ExtractNamedEntity()
251 [](SymbolRef &&symbol) -> std::optional<NamedEntity> { in ExtractNamedEntity()
252 return NamedEntity{symbol}; in ExtractNamedEntity()
254 [](Component &&component) -> std::optional<NamedEntity> { in ExtractNamedEntity()
255 return NamedEntity{std::move(component)}; in ExtractNamedEntity()
257 [](CoarrayRef &&co) -> std::optional<NamedEntity> { in ExtractNamedEntity()
260 [](auto &&) { return std::optional<NamedEntity>{}; }, in ExtractNamedEntity()
280 std::optional<CoarrayRef> operator()(const NamedEntity &named) const { in operator()
712 Result operator()(const NamedEntity &x) const { return &x.GetLastSymbol(); } in operator()
Dfold-designator.h92 const NamedEntity &, ConstantSubscript);
Dtraverse.h116 Result operator()(const NamedEntity &x) const { in operator()
/external/llvm-project/flang/lib/Evaluate/
Dvariable.cpp243 const NamedEntity &base, Field field, int dim) in DescriptorInquiry()
251 DescriptorInquiry::DescriptorInquiry(NamedEntity &&base, Field field, int dim) in DescriptorInquiry()
271 DescriptorInquiry{NamedEntity{sym}, DescriptorInquiry::Field::Len}}; in SymbolLEN()
293 std::optional<Expr<SubscriptInteger>> NamedEntity::LEN() const { in LEN()
374 int NamedEntity::Rank() const { in Rank()
449 const Symbol &NamedEntity::GetFirstSymbol() const { in GetFirstSymbol()
459 const Symbol &NamedEntity::GetLastSymbol() const { in GetLastSymbol()
469 const Component *NamedEntity::UnwrapComponent() const { in UnwrapComponent()
477 Component *NamedEntity::UnwrapComponent() { in UnwrapComponent()
580 static NamedEntity AsNamedEntity(const SymbolVector &x) { in AsNamedEntity()
[all …]
Dshape.cpp206 return ExtentExpr{DescriptorInquiry{NamedEntity{symbol0}, in operator ()()
232 DescriptorInquiry{NamedEntity{common::Clone(component)}, in operator ()()
245 FoldingContext &context, const NamedEntity &base, int dimension) { in GetLowerBound()
249 Shape GetLowerBounds(FoldingContext &context, const NamedEntity &base) { in GetLowerBounds()
259 FoldingContext &context, const NamedEntity &base, int dimension) { in GetExtent()
284 NamedEntity{base}, DescriptorInquiry::Field::Extent, dimension}}; in GetExtent()
300 const NamedEntity &base, int dimension) { in GetExtent()
338 FoldingContext &context, const NamedEntity &base, int dimension) { in GetUpperBound()
368 Shape GetUpperBounds(FoldingContext &context, const NamedEntity &base) { in GetUpperBounds()
400 NamedEntity base{symbol}; in operator ()()
[all …]
Dfold.cpp15 FoldingContext &context, Subscript &ss, const NamedEntity &base, int dim) { in GetConstantSubscript()
95 NamedEntity FoldOperation(FoldingContext &context, NamedEntity &&x) { in FoldOperation()
97 return NamedEntity{FoldOperation(context, std::move(*c))}; in FoldOperation()
125 NamedEntity base{FoldOperation(context, std::move(arrayRef.base()))}; in FoldOperation()
Dfold-designator.cpp186 const NamedEntity &entity, ConstantSubscript which) { in FoldDesignator()
215 NamedEntity &&entity, const Shape &shape, const DynamicType &elementType, in OffsetToArrayRef()
269 NamedEntity &&entity, ConstantSubscript &offset, std::size_t size) { in OffsetToDataRef()
296 NamedEntity{Component{std::move(*result), *component}}, offset, in OffsetToDataRef()
312 OffsetToDataRef(context, NamedEntity{baseSymbol}, offset, size)}) { in OffsetToDesignator()
Dcheck-expression.cpp318 context, GetLowerBounds(context, NamedEntity{symbol}))} in NonPointerInitializationExpr()
Dfold-implementation.h70 FoldingContext &, Subscript &, const NamedEntity &, int dim);
106 NamedEntity FoldOperation(FoldingContext &, NamedEntity &&);
Dformatting.cpp624 llvm::raw_ostream &NamedEntity::AsFortran(llvm::raw_ostream &o) const { in AsFortran()
/external/llvm-project/flang/lib/Semantics/
Dexpression.cpp947 static NamedEntity IgnoreAnySubscripts(Designator<SomeDerived> &&designator) { in IgnoreAnySubscripts()
950 [](SymbolRef &&symbol) { return NamedEntity{symbol}; }, in IgnoreAnySubscripts()
952 return NamedEntity{std::move(component)}; in IgnoreAnySubscripts()
956 return NamedEntity{coarrayRef.GetLastSymbol()}; in IgnoreAnySubscripts()
Druntime-type-info.cpp692 evaluate::NamedEntity entity{symbol}; in DescribeComponent()