Home
last modified time | relevance | path

Searched refs:reassociation (Results 1 – 25 of 61) sorted by relevance

123

/external/llvm-project/mlir/include/mlir/Dialect/Linalg/IR/
DLinalgOps.td67 // `src` and `reassociation`.
69 "ArrayRef<ReassociationExprs>":$reassociation,
72 "ArrayRef<ReassociationIndices>":$reassociation,
76 convertReassociationIndicesToMaps($_builder, reassociation);
83 "ArrayRef<ReassociationExprs>":$reassociation,
86 "ArrayRef<ReassociationIndices>":$reassociation,
90 convertReassociationIndicesToMaps($_builder, reassociation);
96 static StringRef getReassociationAttrName() { return "reassociation"; }
98 return llvm::to_vector<4>(llvm::map_range(reassociation(), [
103 $src $reassociation attr-dict `:` type($src) `into` type(results)
[all …]
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/
DLinalgOps.cpp669 static bool isReassociationValid(ArrayRef<AffineMap> reassociation, in isReassociationValid() argument
671 if (reassociation.empty()) in isReassociationValid()
673 unsigned nDims = reassociation[0].getNumDims(); in isReassociationValid()
675 for (auto it : llvm::enumerate(reassociation)) { in isReassociationValid()
693 *invalidIndex = reassociation.size() - 1; in isReassociationValid()
728 ArrayRef<AffineMap> reassociation) { in computeReshapeCollapsedType() argument
737 newSizes.reserve(reassociation.size()); in computeReshapeCollapsedType()
739 newStrides.reserve(reassociation.size()); in computeReshapeCollapsedType()
743 assert(isReassociationValid(reassociation) && "invalid reassociation"); in computeReshapeCollapsedType()
745 for (AffineMap m : reassociation) { in computeReshapeCollapsedType()
[all …]
/external/llvm-project/llvm/test/Transforms/Reassociate/
Dsubtest.ll3 ; With sub reassociation, constant folding can eliminate the 12 and -12 constants.
16 ; With sub reassociation, constant folding can eliminate the uses of %a.
D2002-05-15-SubReassociate.ll4 ; With sub reassociation, constant folding can eliminate all of the constants.
17 ; With sub reassociation, constant folding can eliminate the two 12 constants.
Dmin_int.ll3 ; MIN_INT cannot be negated during reassociation
Dshifttest.ll1 ; With shl->mul reassociation, we can see that this is (shl A, 9) * A
Dsecondary.ll5 ; reassociation.
Dfast-SubReassociate.ll19 ; With sub reassociation, constant folding can eliminate all of the constants.
79 ; With sub reassociation, constant folding can eliminate the two 12 constants.
Dxor_reassoc.ll6 ; Xor reassociation general cases
130 ; Xor reassociation special cases
238 ; Xor reassociation curtail code size
286 ; Xor reassociation bugs
Dadd-like-or.ll32 ; And that allows reassociation in general.
Dreassociate_dbgvalue_discard.ll4 ; After reassociation m1 and m2 aren't calculated as m1=c*a and m2=c*b any longer.
/external/llvm/test/Transforms/Reassociate/
Dsubtest.ll3 ; With sub reassociation, constant folding can eliminate the 12 and -12 constants.
15 ; With sub reassociation, constant folding can eliminate the uses of %a.
D2002-05-15-SubReassociate.ll3 ; With sub reassociation, constant folding can eliminate all of the constants.
16 ; With sub reassociation, constant folding can eliminate the two 12 constants.
Dxor_reassoc.ll5 ; Xor reassociation general cases
65 ; Xor reassociation special cases
118 ; Xor reassociation curtail code size
156 ; Xor reassociation bugs
Dmin_int.ll3 ; MIN_INT cannot be negated during reassociation
Dshifttest.ll1 ; With shl->mul reassociation, we can see that this is (shl A, 9) * A
Dfast-SubReassociate.ll18 ; With sub reassociation, constant folding can eliminate all of the constants.
49 ; With sub reassociation, constant folding can eliminate the two 12 constants.
Dsecondary.ll5 ; reassociation.
Dfast-basictest.ll3 ; With reassociation, constant folding can eliminate the 12 and -12 constants.
258 ; With sub reassociation, constant folding can eliminate the 12 and -12 constants.
269 ; With sub reassociation, constant folding can eliminate the uses of %a.
277 ; opportunites for FAdd reassociation.
Dfast-ReassociateVector.ll146 ; FIXME: shifts should be converted to mul to assist further reassociation.
159 ; further reassociation.
172 ; Break up subtract to assist further reassociation.
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DFusionOnTensors.cpp532 SmallVectorImpl<ReassociationIndices> &reassociation, in fuseWithReshapeByExpansion()
539 reassociation.emplace_back(foldedDims.begin(), foldedDims.end()); in fuseWithReshapeByExpansion()
552 SmallVector<ReassociationIndices, 4> reassociation; in fuseWithReshapeByExpansion() local
554 getReshapeInfo(indexingMap, reassociation, expandedOperandShape); in fuseWithReshapeByExpansion()
561 reassociation)); in fuseWithReshapeByExpansion()
571 SmallVector<ReassociationIndices, 4> reassociation; in fuseWithReshapeByExpansion() local
573 getReshapeInfo(indexingMap, reassociation, expandedResultShape); in fuseWithReshapeByExpansion()
577 resultReassociation.emplace_back(std::move(reassociation)); in fuseWithReshapeByExpansion()
DDropUnitDims.cpp233 ArrayAttr reassociation; member
313 reassociationMaps.push_back(replacementInfo.reassociation); in matchAndRewrite()
/external/llvm-project/llvm/test/Transforms/NaryReassociate/
Dpr24301.ll37 %t21 = add i32 119, %t4 ; => dead after reassociation
/external/llvm-project/mlir/test/Dialect/Linalg/
Dinvalid.mlir336 …// expected-error @+1 {{expected rank of the collapsed type(2) to be the number of reassociation m…
344 …// expected-error @+1 {{expected reassociation map #0 of same rank as expanded memref(3), but got …
352 // expected-error @+1 {{expected reassociation map #1 to be valid and contiguous}}
/external/llvm/test/CodeGen/X86/
Dlea-recursion.ll5 ; expression reassociation which causes it to miss opportunities for

123