Home
last modified time | relevance | path

Searched full:dimension (Results 1 – 25 of 944) sorted by relevance

12345678910>>...38

/llvm-project/flang/test/Semantics/
H A Dspec-expr.f9012 real, dimension(3) :: realVar1
13 real, dimension(dConst%field) :: realVar2
23 real, dimension(inArg) :: realVar1
24 real, dimension(inoutArg) :: realVar2
26 real, dimension(outArg) :: realVar3
28 real, dimension(optArg) :: realVar4
37 real, dimension(intCommonVar) :: realVar
48 real, dimension(intVar) :: realVar
54 real, dimension(storage_size([1,2])) :: realVar
64 real, dimension(storage_siz
[all...]
H A Dresolve89.f9036 integer, dimension(:), intent(in) :: arrayArg
43 real, dimension(merge(1, 2, allocated(allocArg))) :: realVar1
44 real, dimension(merge(1, 2, associated(pointerArg))) :: realVar2
45 real, dimension(merge(1, 2, is_contiguous(arrayArg))) :: realVar3
46 real, dimension(ioArg) :: realVar4
47 real, dimension(merge(1, 2, present(optionalArg))) :: realVar5
55 real, dimension(merge(1, 2, allocated(mVar))) :: rVar
59 real, dimension(iVolatileStmtFunc()) :: arrayVarWithVolatile
61 real, dimension(iImpureStmtFunc()) :: arrayVarWithImpureFunction
63 real, dimension(iPureStmtFunc()) :: arrayVarWithPureFunction
[all …]
H A Dmisc-intrinsics.f905 real, dimension(5, 5) :: array
9 real, dimension(5, *) :: arg
10 real, dimension(..) :: assumedRank
25 !ERROR: DIM=0 dimension must be positive
27 !ERROR: DIM=0 dimension must be positive
29 !ERROR: DIM=666 dimension is too large for any array (maximum rank 15)
31 !ERROR: DIM=0 dimension must be positive
33 !ERROR: DIM=2 dimension is out of range for rank-2 assumed-size array
35 !ERROR: DIM=0 dimension must be positive
37 !ERROR: DIM=666 dimension is too large for any array (maximum rank 15)
[all …]
H A Dexpr-errors06.f9010 !ERROR: Subscript 0 is less than lower bound 1 for dimension 1 of array
12 !ERROR: Subscript 0 is less than lower bound 1 for dimension 1 of array
14 !ERROR: Subscript 11 is greater than upper bound 10 for dimension 1 of array
16 !ERROR: Subscript 11 is greater than upper bound 10 for dimension 1 of array
18 !ERROR: Subscript value (0) is out of range on dimension 1 in reference to a constant array value
20 !ERROR: Subscript value (3) is out of range on dimension 1 in reference to a constant array value
23 !ERROR: Subscript 13 is greater than upper bound 10 for dimension 1 of array
26 !ERROR: Subscript -2 is less than lower bound 1 for dimension 1 of array
30 !ERROR: Subscript 0 is less than lower bound 1 for dimension 1 of array
32 !ERROR: Subscript 11 is greater than upper bound 10 for dimension
[all...]
H A Dshape.f9011 !ERROR: Dimension 1 of left operand has extent 1, but right operand has extent 0
12 !ERROR: Dimension 1 of left operand has extent 1, but right operand has extent 0
16 !ERROR: Dimension 1 of left operand has extent 0, but right operand has extent 1
17 !ERROR: Dimension 1 of left operand has extent 0, but right operand has extent 1
24 !ERROR: Dimension 1 of left operand has extent 1, but right operand has extent 0
25 !ERROR: Dimension 1 of left operand has extent 1, but right operand has extent 0
29 !ERROR: Dimension 1 of left operand has extent 0, but right operand has extent 1
30 !ERROR: Dimension 1 of left operand has extent 0, but right operand has extent 1
37 !ERROR: Dimension 1 of left operand has extent 1, but right operand has extent 0
38 !ERROR: Dimension 1 of left operand has extent 1, but right operand has extent 0
[all …]
H A Dunpack.f904 integer, dimension(2) :: vector = [343, 512]
5 logical, dimension(2, 2) :: mask = &
7 integer, dimension(2, 2) :: field = reshape([1, 2, 3, 4, 5, 6], [2, 2])
8 integer, dimension(2, 1) :: bad_field = reshape([1, 2], [2, 1])
10 integer, dimension(2, 2) :: result
12 !ERROR: Dimension 2 of 'mask=' argument has extent 2, but 'field=' argument has extent 1
H A Dresolve91.f9012 real, dimension(:), pointer :: realArray => null()
15 real, dimension(:), pointer :: realArray => localArray
47 real, dimension(:), pointer :: localArray => null()
49 real, dimension(:), pointer :: realArray => null()
51 real, dimension(:), pointer :: realArray => localArray
63 integer, dimension(3) :: iarray
69 integer, dimension(2) :: iarray
H A Dselecttype03.f9018 class(t1),DIMENSION(:,:),allocatable::array1
19 class(t2),DIMENSION(:,:),allocatable::array2
20 integer, dimension(2) :: V
113 class(t1),DIMENSION(:),allocatable :: foo
114 integer, dimension(2) :: U
124 class(t2),DIMENSION(:),allocatable :: foo2
136 type(t2),DIMENSION(:), INTENT(IN) :: y
137 class(t2),DIMENSION(:), INTENT(INOUT) :: z
/llvm-project/flang/runtime/
H A Dinquiry.cpp38 const Dimension &dimension{array.GetDimension(dim - 1)}; in RTDEF() local
39 return static_cast<std::int64_t>(dimension.LowerBound()); in RTDEF()
47 const Dimension &dimension{array.GetDimension(i)}; in RTDEF() local
49 kind, terminator, result, i, dimension.UpperBound()); in RTDEF()
57 const Dimension &dimension{array.GetDimension(i)}; in RTDEF() local
58 result *= dimension.Extent(); in RTDEF()
70 const Dimension &dimension{array.GetDimension(dim - 1)}; in RTDEF() local
71 return static_cast<std::int64_t>(dimension.Extent()); in RTDEF()
79 const Dimension &dimension{array.GetDimension(i)}; in RTDEF() local
81 kind, terminator, result, i, dimension.Extent()); in RTDEF()
[all …]
/llvm-project/mlir/include/mlir/Dialect/
H A DTraits.h37 /// with less dimensions with 1s. For each dimension pair, deduces the result
38 /// dimension according to the following order:
40 /// - If either dimension is greater than 1, we assume that the program is
41 /// correct, and the other dimension will be broadcast to match it.
42 /// - If either dimension is 1, the other dimension is the result.
43 /// - Otherwise, the result dimension is unknown dimension.
44 /// - If one of the dimension is 1, the other dimension is the result.
57 /// true and vice versa, with one exception. If a dimension is unknown in both
59 /// dimension, while this function will return false because it's possible for
60 /// both shapes to have a dimension greater than 1 and different which would
[all …]
/llvm-project/flang/lib/Evaluate/
H A Dshape.cpp86 for (int dimension{0}; dimension < rank; ++dimension) {
87 shape.emplace_back(GetExtent(base, dimension, invariantOnly_)); in AsExtentArrayExpr()
234 // Determines lower bound on a dimension. This can be other than 1 only
269 // last dimension of assumed-size dummy array: don't worry in GetLowerBound()
270 // about handling an empty dimension in GetLowerBound()
277 // If we can't prove that the dimension is nonempty, in GetLowerBound()
391 const NamedEntity &base, int dimension, bool invariantOnly) { in GetRawLowerBound()
393 dimension, nullpt in GetRawLowerBound()
81 for (int dimension{0}; dimension < rank; ++dimension) { CreateShape() local
384 GetRawLowerBound(const NamedEntity & base,int dimension,bool invariantOnly) GetRawLowerBound() argument
390 GetRawLowerBound(FoldingContext & context,const NamedEntity & base,int dimension,bool invariantOnly) GetRawLowerBound() argument
397 GetLBOUND(const NamedEntity & base,int dimension,bool invariantOnly) GetLBOUND() argument
403 GetLBOUND(FoldingContext & context,const NamedEntity & base,int dimension,bool invariantOnly) GetLBOUND() argument
481 GetAssociatedExtent(const Symbol & symbol,int dimension) GetAssociatedExtent() argument
500 GetExtent(const NamedEntity & base,int dimension,bool invariantOnly) GetExtent() argument
548 GetExtent(FoldingContext & context,const NamedEntity & base,int dimension,bool invariantOnly) GetExtent() argument
553 GetExtent(const Subscript & subscript,const NamedEntity & base,int dimension,bool invariantOnly) GetExtent() argument
582 GetExtent(FoldingContext & context,const Subscript & subscript,const NamedEntity & base,int dimension,bool invariantOnly) GetExtent() argument
605 GetRawUpperBound(const NamedEntity & base,int dimension,bool invariantOnly) GetRawUpperBound() argument
636 GetRawUpperBound(FoldingContext & context,const NamedEntity & base,int dimension,bool invariantOnly) GetRawUpperBound() argument
659 GetUBOUND(FoldingContext * context,const NamedEntity & base,int dimension,bool invariantOnly) GetUBOUND() argument
698 GetUBOUND(const NamedEntity & base,int dimension,bool invariantOnly) GetUBOUND() argument
703 GetUBOUND(FoldingContext & context,const NamedEntity & base,int dimension,bool invariantOnly) GetUBOUND() argument
759 for (int dimension{0}; dimension < rank; ++dimension) { operator ()() local
812 int dimension{0}; operator ()() local
834 int dimension{0}; operator ()() local
[all...]
/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
H A DSplit.cpp24 /// Creates a part of the given `op` split along the iteration space `dimension`
34 ValueRange resultOperands, unsigned dimension, in createSplitPart() argument
40 sizesCopy[dimension] = size; in createSplitPart()
41 offsetsCopy[dimension] = offset; in createSplitPart()
67 linalg::splitOp(RewriterBase &rewriter, TilingInterface op, unsigned dimension, in splitOp() argument
72 // Bail out on dimension overflow. in splitOp()
73 if (dimension >= iterationSpace.size()) in splitOp()
89 {splitPoint, offsets[dimension], sizes[dimension]}); in splitOp()
95 {iterationSpace[dimension] in splitOp()
[all...]
/llvm-project/mlir/lib/AsmParser/
H A DTypeParser.cpp174 /// ranked-memref-type ::= `memref` `<` dimension-list-ranked type
179 /// stride-list ::= `[` (dimension (`,` dimension)*)? `]` in parseMemRefType()
180 /// strided-layout ::= `offset:` dimension `,` `strides: ` stride-list in parseMemRefType()
389 /// tensor-type ::= `tensor` `<` dimension-list type `>` in parseTensorType()
390 /// dimension-list ::= dimension-list-ranked | `*x` in parseTensorType()
497 /// Parse a dimension list in a vector type. This populates the dimension list. in parseVectorDimensionList()
498 /// For i-th dimension, `scalableDim in parseVectorDimensionList()
578 std::optional<uint64_t> dimension = getToken().getUInt64IntegerValue(); parseIntegerInDimensionList() local
[all...]
/llvm-project/mlir/docs/Traits/
H A DBroadcastable.md22 ## Dimension inference
24dimension `i` of its result can be inferred from dimension `i` of the operands according to the ta…
29 … If `RuntimeSize(dim0)` is 1, dimension `dim0` is broadcast to `RuntimeSize(dim1)`. If `RuntimeSiz…
30 | ? | 1 | ? | Dimension `dim1` is broadcast to `RuntimeSize(dim0)`. |
33 | 1 | >1 | `dim1` | Dimension `dim0` is broadcast to `dim1`. |
37 The following pseudo-function is a formal representation of the dimension inference process:
108 Once a rank match is guaranteed, each dimension of the inferred shape is compared with the correspo…
114dimension size of the result is equal to `actualDim` causes undefined behavior. While unusual, thi…
115dimension may be dynamic even when a static size can be inferred at compile time. The programmer m…
178 // Dimension 0 of input operands is static but not equal.
/llvm-project/flang/include/flang/Runtime/
H A Ddescriptor.h41 // and its type and per-dimension information.
43 class Dimension {
52 RT_API_ATTRS Dimension &SetBounds( in UpperBound()
63 // Do not use this API to cause the LB of an empty dimension in SetBounds()
65 RT_API_ATTRS Dimension &SetLowerBound(SubscriptValue lower) { in SetBounds()
69 RT_API_ATTRS Dimension &SetUpperBound(SubscriptValue upper) {
74 RT_API_ATTRS Dimension &SetExtent(SubscriptValue extent) { in SetUpperBound()
78 RT_API_ATTRS Dimension &SetByteStride(SubscriptValue bytes) { in SetUpperBound()
220 RT_API_ATTRS Dimension &GetDimension(int dim) { in IsAllocatable()
221 return *reinterpret_cast<Dimension *>( in IsAllocatable()
[all...]
/llvm-project/libc/src/__support/GPU/nvptx/
H A Dutils.h
/llvm-project/mlir/include/mlir/Interfaces/
H A DValueBoundsOpInterface.h55 /// values or dimension sizes of shaped values.
60 /// expressed in terms of another value/dimension, `getExpr` can be used to
61 /// retrieve an AffineExpr that represents the specified value/dimension.
63 /// When a value/dimension is retrieved for the first time through `getExpr`,
71 /// Helper class that builds a bound for a shaped value dimension or
75 /// Specify a dimension, assuming that the underlying value is a shaped
128 /// Construct a variable for a dimension of a shaped value.
132 /// dimension of a shaped value. A non-null dimension must be provided if
153 /// value. The second parameter is the dimension in case of a shaped value.
161 /// dimension.
[all …]
/llvm-project/flang/test/Lower/Intrinsics/
H A Ddot_product.f9010 integer, dimension(1:) :: x,y
11 integer, dimension(1:) :: z
23 integer(kind=1), dimension(1:) :: x,y
24 integer(kind=1), dimension(1:) :: z
36 integer(kind=2), dimension(1:) :: x,y
37 integer(kind=2), dimension(1:) :: z
49 integer(kind=4), dimension(1:) :: x,y
50 integer(kind=4), dimension(1:) :: z
62 integer(kind=8), dimension(1:) :: x,y
63 integer(kind=8), dimension(
[all...]
/llvm-project/libc/src/__support/GPU/amdgpu/
H A Dutils.h
/llvm-project/mlir/test/Integration/Dialect/Linalg/CPU/
H A Druntime-verification.mlir30 // CHECK: ^ dimension #0 of input/output operand #1 is incompatible with inferred dimension size
35 // CHECK: ^ dimension #0 of input/output operand #1 is incompatible with inferred dimension size
60 // CHECK: ^ dimension #1 of input/output operand #1 is incompatible with inferred dimension size
65 // CHECK: ^ dimension #0 of input/output operand #1 is incompatible with inferred dimension size
68 // CHECK: ^ dimension #1 of input/output operand #1 is incompatible with inferred dimension siz
[all...]
/llvm-project/mlir/include/mlir/Dialect/Linalg/IR/
H A DLinalgInterfaces.h42 /// contraction dimension.
50 /// Find at least 2 parallel (m and n) and 1 reduction (k) dimension candidates
53 /// 1. The m dimension is involved in an outer-product along LHS
55 /// 2. The n dimension is involved in an outer-product along RHS
57 /// 3. The k dimension appears as a permutation on LHS and RHS.
62 /// When multiple dimension occurrences exist that match `batch`, `m`, `n`, or
74 /// convolution dimension.
87 /// dimension candidates that form a convolution subcomputation within
92 /// 2. The output_image dimension is involved in a cross-correlation along LHS
95 /// 3. Optional output_channel dimension i
[all...]
H A DLinalgOps.td55 enclosing linalg structured operation for the iteration dimension `dim`. The
56 `dim` attribute specifies the position of the accessed dimension in the
67 // Access the outer iteration dimension i
69 // Access the inner iteration dimension j
108 For a given input tensor and a specified dimension `d`, compute:
109 1. the max `m` along that dimension `d`
111 3. sum f(x) along dimension d to get l(x).
120 sizes for each dimension make sense with respect to the semantic of
126 I64Attr:$dimension
133 `dimension` `(`
[all...]
/llvm-project/flang/include/flang/Evaluate/
H A Dshape.h79 // The dimension argument to these inquiries is zero-based,
84 // in its scope, and it will not have been forced to 1 on an empty dimension.
87 // Similarly, GetUBOUND result will be forced to 0 on an empty dimension,
90 const NamedEntity &, int dimension, bool invariantOnly = true);
92 int dimension, bool invariantOnly = true);
94 const NamedEntity &, int dimension, bool invariantOnly = true);
95 MaybeExtentExpr GetLBOUND(FoldingContext &, const NamedEntity &, int dimension,
98 const NamedEntity &, int dimension, bool invariantOnly = true);
100 int dimension, bool invariantOnly = true);
102 const NamedEntity &, int dimension, boo
[all...]
/llvm-project/polly/lib/Transform/
H A DFlattenAlgo.cpp26 /// Whether a dimension of a set is bounded (lower and upper) by a constant,
39 /// Whether a dimension of a set is (lower and upper) bounded by a constant or
51 /// Whether BMap's first out-dimension is not a constant.
57 /// Whether Map's first out dimension is no constant nor piecewise constant.
66 /// Whether UMap's first out dimension is no (piecewise) constant.
130 /// Return the @p pos' range dimension, converted to an isl_union_pw_aff.
146 /// Flatten a sequence-like first dimension.
148 /// A sequence-like scatter dimension is constant, or at least only small
155 /// possible value of the dimension, call it "i" [In the example we start at 0].
157 /// that value and determine the extent of the next dimension. Let l_X(i) and
[all …]
/llvm-project/mlir/test/Dialect/Affine/
H A Dmemref-bound-check.mlir20 // expected-error@-1 {{'affine.load' op memref out of upper bound access along dimension #1}}
21 // expected-error@-2 {{'affine.load' op memref out of lower bound access along dimension #1}}
22 // expected-error@-3 {{'affine.load' op memref out of upper bound access along dimension #2}}
23 // expected-error@-4 {{'affine.load' op memref out of lower bound access along dimension #2}}
34 …1 x i32> // expected-error {{'affine.load' op memref out of upper bound access along dimension #1}}
36 …x i32> // expected-error {{'affine.store' op memref out of lower bound access along dimension #1}}
52 // expected-error@-1 {{'affine.load' op memref out of upper bound access along dimension #1}}
53 // expected-error@-2 {{'affine.load' op memref out of upper bound access along dimension #2}}
54 // expected-error@-3 {{'affine.load' op memref out of upper bound access along dimension #3}}
58 … x i32> // expected-error {{'affine.store' op memref out of lower bound access along dimension #3}}
[all …]

12345678910>>...38