Home
last modified time | relevance | path

Searched refs:subscripts (Results 1 – 25 of 47) sorted by relevance

12

/llvm-project-15.0.7/flang/runtime/
H A Ddescriptor-io.h30 const SubscriptValue subscripts[]) { in ExtractElement() argument
31 A *p{descriptor.Element<A>(subscripts)}; in ExtractElement()
49 SubscriptValue subscripts[maxRank]; in FormattedIntegerIO() local
50 descriptor.GetLowerBounds(subscripts); in FormattedIntegerIO()
82 SubscriptValue subscripts[maxRank]; in FormattedRealIO() local
83 descriptor.GetLowerBounds(subscripts); in FormattedRealIO()
115 SubscriptValue subscripts[maxRank]; in FormattedComplexIO() local
116 descriptor.GetLowerBounds(subscripts); in FormattedComplexIO()
163 SubscriptValue subscripts[maxRank]; in FormattedCharacterIO() local
203 SubscriptValue subscripts[maxRank]; in FormattedLogicalIO() local
[all …]
H A Dreduction-templates.h116 SubscriptValue subscripts[], TYPE *result, ACCUMULATOR &accumulator) { in ReduceDimToScalar() argument
118 GetExpandedSubscripts(xAt, x, zeroBasedDim, subscripts); in ReduceDimToScalar()
136 SubscriptValue subscripts[], const Descriptor &mask, TYPE *result, in ReduceDimMaskToScalar() argument
139 GetExpandedSubscripts(xAt, x, zeroBasedDim, subscripts); in ReduceDimMaskToScalar()
140 GetExpandedSubscripts(maskAt, mask, zeroBasedDim, subscripts); in ReduceDimMaskToScalar()
H A Dtype-info.cpp125 const SubscriptValue *subscripts) const { in CreatePointerDescriptor()
128 if (subscripts) { in CreatePointerDescriptor()
129 descriptor.set_base_addr(container.Element<char>(subscripts) + offset_); in CreatePointerDescriptor()
H A DISO_Fortran_binding.cpp28 const CFI_cdesc_t *descriptor, const CFI_index_t subscripts[]) { in CFI_address() argument
33 p += (subscripts[j] - dim->lower_bound) * dim->sm; in CFI_address()
H A Dreduction.cpp245 SubscriptValue subscripts[]) -> typename ACCUMULATOR::Type { in ReduceLogicalDimToScalar() argument
248 GetExpandedSubscripts(xAt, x, zeroBasedDim, subscripts); in ReduceLogicalDimToScalar()
/llvm-project-15.0.7/flang/lib/Parser/
H A Dparse-tree.cpp55 if (!pr.subscripts.empty()) {
57 std::move(*this), std::move(pr.subscripts));
96 const Name &name, std::list<Expr> &&subscripts) { in MakeArrayElementRef() argument
98 for (Expr &expr : subscripts) { in MakeArrayElementRef()
99 arrayElement.subscripts.push_back( in MakeArrayElementRef()
109 for (Expr &expr : subscripts) { in MakeArrayElementRef()
110 arrayElement.subscripts.push_back( in MakeArrayElementRef()
185 for (auto &subscript : subscripts) { in ConvertToStructureConstructor()
195 auto iter{subscripts.begin()}; in ConvertToSubstring()
196 CHECK(iter != subscripts.end()); in ConvertToSubstring()
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Affine/
H A Dload-store-invalid.mlir4 // expected-error@+1 {{expects the number of subscripts to be equal to memref rank}}
11 // expected-error@+1 {{op expects as many subscripts as affine map inputs}}
19 // expected-error@+1 {{expects the number of subscripts to be equal to memref rank}}
26 // expected-error@+1 {{op expects as many subscripts as affine map inputs}}
35 // expected-error@+1 {{expects the number of subscripts to be equal to memref rank}}
43 // expected-error@+1 {{op expects as many subscripts as affine map inputs}}
51 // expected-error@+1 {{expects the number of subscripts to be equal to memref rank}}
58 // expected-error@+1 {{op expects as many subscripts as affine map inputs}}
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dscope.cpp22 return symbol == that.symbol && subscripts == that.subscripts && in operator ==()
29 (subscripts < that.subscripts || in operator <()
30 (subscripts == that.subscripts && in operator <()
38 if (!subscripts.empty()) { in AsFortran()
40 for (auto subscript : subscripts) { in AsFortran()
H A Dresolve-names-utils.cpp379 auto subscripts{currObject_.subscripts}; in AddToSet() local
380 if (subscripts.empty() && symbol.IsObjectArray()) { in AddToSet()
384 subscripts.push_back(evaluate::ToInt64(lbound).value()); in AddToSet()
389 symbol, subscripts, substringStart, designator.source); in AddToSet()
535 for (const auto &subscript : elem.value().subscripts) { in CheckDataRef()
651 currObject_.subscripts.push_back(*subscript); in CheckArrayBound()
H A Dcompute-offsets.cpp266 if (!object.subscripts.empty()) { in ComputeOffset()
274 for (std::size_t i{object.subscripts.size() - 1};;) { in ComputeOffset()
275 offset += object.subscripts[i] - lbound(i); in ComputeOffset()
H A Dexpression.cpp243 int subscripts{static_cast<int>(ref.size())}; in CompleteSubscripts() local
244 if (subscripts == 0) { in CompleteSubscripts()
246 } else if (subscripts != symbolRank) { in CompleteSubscripts()
249 symbolRank, symbol.name(), subscripts); in CompleteSubscripts()
275 if (subscripts.empty()) { in ApplySubscripts()
347 if (arrElement.subscripts.size() == 1) { in FixMisparsedSubstringDataRef()
1024 std::vector<Subscript> subscripts; in AnalyzeSectionSubscripts() local
1042 if (ae.subscripts.empty()) { in Analyze()
1067 AnalyzeSectionSubscripts(ae.subscripts); in Analyze()
1198 std::vector<Subscript> subscripts; in Analyze() local
[all …]
H A Dresolve-names-utils.h143 std::vector<ConstantSubscript> subscripts; member
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A DISO-Fortran-binding.cpp205 const CFI_cdesc_t *dv, const CFI_index_t subscripts[]) { in check_CFI_address() argument
207 void *addr{CFI_address(dv, subscripts)}; in check_CFI_address()
209 void *addrCheck{desc->Element<void>(subscripts)}; in check_CFI_address()
241 CFI_index_t subscripts[CFI_MAX_RANK]; in run_CFI_address_tests() local
252 subscripts[i] = i + 1; in run_CFI_address_tests()
277 check_CFI_address(dv, subscripts); in run_CFI_address_tests()
286 check_CFI_address(dv, subscripts); in run_CFI_address_tests()
561 CFI_index_t subscripts[]{ in run_CFI_select_part_tests() local
592 CFI_index_t subscripts[]{ in run_CFI_select_part_tests() local
595 static_cast<char *>(CFI_address(result, subscripts))[0]); in run_CFI_select_part_tests()
[all …]
/llvm-project-15.0.7/flang/include/flang/Semantics/
H A Dscope.h40 EquivalenceObject(Symbol &symbol, std::vector<ConstantSubscript> subscripts, in EquivalenceObject()
42 : symbol{symbol}, subscripts{subscripts}, in EquivalenceObject()
52 std::vector<ConstantSubscript> subscripts; // for array elem member
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold-implementation.h154 std::vector<Constant<SubscriptInteger>> subscripts; in Folding() local
158 subscripts.emplace_back(std::move(*constant)); in Folding()
164 return GetConstantComponent(*component, &subscripts); in Folding()
167 return ApplySubscripts(*array, subscripts); in Folding()
198 CHECK(rank == static_cast<int>(subscripts.size())); in ApplySubscripts()
202 for (const auto &ss : subscripts) { in ApplySubscripts()
216 if (subscripts[j].Rank() == 0) { in ApplySubscripts()
221 at[j] = subscripts[j].At(tmp).ToInt64(); in ApplySubscripts()
259 if (!subscripts) { in ApplyComponent()
262 return ApplySubscripts(*value, *subscripts); in ApplyComponent()
[all …]
H A Dfold-designator.cpp219 std::vector<Subscript> subscripts; in OffsetToArrayRef() local
228 subscripts.emplace_back(ExtentExpr{(*lower)[dim] + remainder}); in OffsetToArrayRef()
232 subscripts.emplace_back(ExtentExpr{(*lower)[rank - 1] + at}); in OffsetToArrayRef()
234 return ArrayRef{std::move(entity), std::move(subscripts)}; in OffsetToArrayRef()
/llvm-project-15.0.7/flang/include/flang/
H A DISO_Fortran_binding.h175 void *CFI_address(const CFI_cdesc_t *, const CFI_index_t subscripts[]);
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DIterationSpace.h577 const A &subscripts) {
578 for (auto &sub : subscripts) {
/llvm-project-15.0.7/flang/include/flang/Parser/
H A Dparse-tree-visitor.h311 Walk(x.subscripts, visitor); in Walk()
318 Walk(x.subscripts, mutator); in Walk()
531 Walk(x.subscripts, visitor); in Walk()
539 Walk(x.subscripts, mutator); in Walk()
/llvm-project-15.0.7/clang/test/Misc/
H A Dwarning-wall.c9 CHECK-NEXT: -Wchar-subscripts
/llvm-project-15.0.7/llvm/bindings/ocaml/debuginfo/
H A Dllvm_debuginfo.ml313 subscripts:Llvm.llmetadata array ->
321 subscripts:Llvm.llmetadata array ->
H A Dllvm_debuginfo.mli375 subscripts:Llvm.llmetadata array ->
385 subscripts:Llvm.llmetadata array ->
/llvm-project-15.0.7/llvm/test/Analysis/DependenceAnalysis/
H A DNonCanonicalizedSubscript.ll44 ; Extends the previous example to coupled MIV subscripts.
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A Ddibuilder.go496 subscripts, length := llvmMetadataRefs(subscriptsSlice)
502 subscripts,
/llvm-project-15.0.7/clang/docs/
H A DObjectiveCLiterals.rst349 subscript expressions use integer typed subscripts; *dictionary-style*
350 subscript expressions use Objective-C object pointer typed subscripts.
460 Currently, only subscripts of integral or Objective-C object pointer

12