Searched refs:shape_ (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | constant.cpp | 18 : shape_(shape), lbounds_(shape_.size(), 1) {} in ConstantBounds() 21 : shape_(std::move(shape)), lbounds_(shape_.size(), 1) {} in ConstantBounds() 26 CHECK(lb.size() == shape_.size()); in set_lbounds() 29 if (shape_[j] == 0) { in set_lbounds() 39 return {lbounds_[*dim] + shape_[*dim] - 1}; in ComputeUbounds() 43 ubounds[i] = lbounds_[i] + shape_[i] - 1; in ComputeUbounds() 56 return AsConstantShape(shape_); in SHAPE() 61 CHECK(GetRank(index) == GetRank(shape_)); in SubscriptsToOffset() 66 auto extent{shape_[dim++]}; in SubscriptsToOffset() 80 int rank{GetRank(shape_)}; in IncrementSubscripts() [all …]
|
| H A D | characteristics.cpp | 60 return type_ == that.type_ && ShapesAreCompatible(shape_, that.shape_) && in operator ==() 66 shape_ = Fold(context, std::move(shape_)); in Rewrite() 162 CheckConformance(messages, shape_, that.shape_, flags, thisIs, thatIs) in IsCompatibleWith() 184 if (auto elements{GetSize(Shape{shape_})}) { in MeasureSizeInBytes() 188 MeasureElementSizeInBytes(foldingContext, GetRank(shape_) > 0)}) { in MeasureSizeInBytes() 239 if (!shape_.empty()) { in Dump() 242 for (const auto &expr : shape_) { in Dump()
|
| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | characteristics.h | 65 TypeAndShape(DynamicType t, int rank) : type_{t}, shape_(rank) { in TypeAndShape() 68 TypeAndShape(DynamicType t, Shape &&s) : type_{t}, shape_{std::move(s)} { in TypeAndShape() 73 shape_ = std::move(*s); 143 const Shape &shape() const { return shape_; } in shape() 147 int Rank() const { return GetRank(shape_); } in Rank() 175 Shape shape_; variable
|
| H A D | constant.h | 65 const ConstantSubscripts &shape() const { return shape_; } in shape() 70 int Rank() const { return GetRank(shape_); } in Rank() 85 ConstantSubscripts shape_;
|
| /llvm-project-15.0.7/flang/include/flang/Semantics/ |
| H A D | symbol.h | 201 ArraySpec &shape() { return shape_; } in shape() 202 const ArraySpec &shape() const { return shape_; } in shape() 211 bool IsArray() const { return !shape_.empty(); } in IsArray() 214 return isDummy() && shape_.CanBeAssumedShape(); in CanBeAssumedShape() 216 bool CanBeDeferredShape() const { return shape_.CanBeDeferredShape(); } in CanBeDeferredShape() 217 bool IsAssumedSize() const { return isDummy() && shape_.CanBeAssumedSize(); } in IsAssumedSize() 218 bool IsAssumedRank() const { return isDummy() && shape_.IsAssumedRank(); } in IsAssumedRank() 223 ArraySpec shape_; variable
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | symbol.cpp | 140 CHECK(shape_.empty()); in set_shape() 142 shape_.push_back(shapeSpec); in set_shape()
|