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"> {
14391439 Option<"x86Vector", "enable-x86vector",
14401440 "bool", /*default=*/"false",
14411441 "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.">,
14431447 ];
14441448}
14451449
Original file line number Diff line number Diff line change 99#define MLIR_CONVERSION_VECTORTOLLVM_CONVERTVECTORTOLLVMPASS_H_
1010
1111#include " mlir/Conversion/VectorToLLVM/ConvertVectorToLLVM.h"
12+ #include " mlir/Dialect/Vector/Transforms/VectorTransforms.h"
1213
1314namespace mlir {
1415class Pass ;
Original file line number Diff line number Diff line change @@ -69,12 +69,11 @@ void ConvertVectorToLLVMPass::runOnOperation() {
6969 populateVectorToVectorCanonicalizationPatterns (patterns);
7070 populateVectorBitCastLoweringPatterns (patterns);
7171 populateVectorBroadcastLoweringPatterns (patterns);
72- populateVectorContractLoweringPatterns (patterns, VectorTransformsOptions () );
72+ populateVectorContractLoweringPatterns (patterns, vectorTransformsOptions );
7373 populateVectorMaskOpLoweringPatterns (patterns);
7474 populateVectorShapeCastLoweringPatterns (patterns);
7575 populateVectorInterleaveLoweringPatterns (patterns);
76- populateVectorTransposeLoweringPatterns (patterns,
77- VectorTransformsOptions ());
76+ populateVectorTransposeLoweringPatterns (patterns, vectorTransformsOptions);
7877 // Vector transfer ops with rank > 1 should be lowered with VectorToSCF.
7978 populateVectorTransferLoweringPatterns (patterns, /* maxTransferRank=*/ 1 );
8079 populateVectorMaskMaterializationPatterns (patterns,
You can’t perform that action at this time.
0 commit comments