File tree Expand file tree Collapse file tree
compiler/src/iree/compiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ void buildGlobalOptimizationPassPipeline(
118118 .addPass (IREE::Util::createOptimizeIntArithmeticPass)
119119 .addPass (createLinalgQuantizedConvToConvPass)
120120 .addPass (createLinalgQuantizedMatmulToMatmulPass)
121- .addPredicatedPass (transformOptions.enableConv2DToImg2Col ,
121+ .addPredicatedPass (transformOptions.useIm2colForConvs ,
122122 createConvertConv2DToImg2ColPass)
123123 .addPass (IREE::Flow::createCanonicalizePass)
124124 .addPass (createRemoveZeroExtentTensorsPass)
Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ struct TransformOptions : public PassPipelineOptions<TransformOptions> {
121121 llvm::cl::desc (" Converts linalg named matmul ops to linalg generic ops." ),
122122 llvm::cl::init (false ),
123123 };
124- Option<bool > enableConv2DToImg2Col {
124+ Option<bool > useIm2colForConvs {
125125 *this ,
126- " enable-conv2d-to-img2col " ,
127- llvm::cl::desc (" Enables conversion of Conv2D operations to img2col + "
126+ " use-im2col-for-convs " ,
127+ llvm::cl::desc (" Enables converting convolution operations to im2col + "
128128 " matmul form to leverage optimized matmul implementations." ),
129129 llvm::cl::init (false ),
130130 };
Original file line number Diff line number Diff line change @@ -303,8 +303,8 @@ void GlobalOptimizationOptions::bindOptions(OptionsBinder &binder) {
303303 " global optimization to enable better fusion." ),
304304 llvm::cl::cat (category));
305305 binder.opt <bool >(
306- " iree-global-opt-enable-conv2d-to-img2col " , enableConv2DToImg2Col ,
307- llvm::cl::desc (" Enables conversion of Conv2D operations to img2col + "
306+ " iree-global-opt-use-im2col-for-convs " , useIm2colForConvs ,
307+ llvm::cl::desc (" Enables converting convolution operations to im2col + "
308308 " matmul form to leverage optimized matmul implementations." ),
309309 llvm::cl::cat (category));
310310}
Original file line number Diff line number Diff line change @@ -187,8 +187,8 @@ struct GlobalOptimizationOptions {
187187 // Converts linalg named matmul ops to linalg generic ops.
188188 bool generalizeMatmul = false ;
189189
190- // Enables conversion of Conv2D operations to img2col + matmul form.
191- bool enableConv2DToImg2Col = false ;
190+ // Enables converting convolution operations to im2col + matmul form.
191+ bool useIm2colForConvs = false ;
192192
193193 void bindOptions (OptionsBinder &binder);
194194 using FromFlags = OptionsFromFlags<GlobalOptimizationOptions>;
Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ void buildIREEPrecompileTransformPassPipeline(
212212 globalOptimizationOptions.stripAssertions ;
213213 globalTransformOptions.generalizeMatmul =
214214 globalOptimizationOptions.generalizeMatmul ;
215- globalTransformOptions.enableConv2DToImg2Col =
216- globalOptimizationOptions.enableConv2DToImg2Col ;
215+ globalTransformOptions.useIm2colForConvs =
216+ globalOptimizationOptions.useIm2colForConvs ;
217217 globalTransformOptions.constExprHoisting = pipelineOptions.constExprHoisting ;
218218 globalTransformOptions.constExprMaxSizeIncreaseThreshold =
219219 pipelineOptions.constExprMaxSizeIncreaseThreshold ;
You can’t perform that action at this time.
0 commit comments