This removes duplication and makes nesting more clear.
It also reduces the amount of changes necessary for exposing future options.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks like a nice improvement!
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h | ||
---|---|---|
881 | What about naming this enableVectorTransferPartialRewrite(bool val = true)? .enableVectorTransferPartialRewrite() .enableVectorContractLowering() .enableVectorToSCFConversion(); Also since this class is also about VectorLowering options, could these be shortened? .enableTransferPartialRewrite() .enableContraction() .enableSCFConversion(); |
What about naming this enableVectorTransferPartialRewrite(bool val = true)?
The enable verb and the default value makes it nice to read at call sites I think:
Also since this class is also about VectorLowering options, could these be shortened?