File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
lib/Conversion/VectorToLLVM Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1439,7 +1439,11 @@ def ConvertVectorToLLVMPass : Pass<"convert-vector-to-llvm"> {
1439
1439
Option<"x86Vector", "enable-x86vector",
1440
1440
"bool", /*default=*/"false",
1441
1441
"Enables the use of X86Vector dialect while lowering the vector "
1442
- "dialect.">
1442
+ "dialect.">,
1443
+ Option<"vectorTransformsOptions", "vector-transform-options",
1444
+ "vector::VectorTransformsOptions",
1445
+ /*default=*/"vector::VectorTransformsOptions()",
1446
+ "Options to lower some operations like contractions and transposes.">,
1443
1447
];
1444
1448
}
1445
1449
Original file line number Diff line number Diff line change 9
9
#define MLIR_CONVERSION_VECTORTOLLVM_CONVERTVECTORTOLLVMPASS_H_
10
10
11
11
#include " mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h"
12
+ #include " mlir/Dialect/Vector/Transforms/VectorTransforms.h"
12
13
13
14
namespace mlir {
14
15
class Pass ;
Original file line number Diff line number Diff line change @@ -69,12 +69,11 @@ void ConvertVectorToLLVMPass::runOnOperation() {
69
69
populateVectorToVectorCanonicalizationPatterns (patterns);
70
70
populateVectorBitCastLoweringPatterns (patterns);
71
71
populateVectorBroadcastLoweringPatterns (patterns);
72
- populateVectorContractLoweringPatterns (patterns, VectorTransformsOptions () );
72
+ populateVectorContractLoweringPatterns (patterns, vectorTransformsOptions );
73
73
populateVectorMaskOpLoweringPatterns (patterns);
74
74
populateVectorShapeCastLoweringPatterns (patterns);
75
75
populateVectorInterleaveLoweringPatterns (patterns);
76
- populateVectorTransposeLoweringPatterns (patterns,
77
- VectorTransformsOptions ());
76
+ populateVectorTransposeLoweringPatterns (patterns, vectorTransformsOptions);
78
77
// Vector transfer ops with rank > 1 should be lowered with VectorToSCF.
79
78
populateVectorTransferLoweringPatterns (patterns, /* maxTransferRank=*/ 1 );
80
79
populateVectorMaskMaterializationPatterns (patterns,
You can’t perform that action at this time.
0 commit comments