diff options
author | Nicolas Vasilache <nicolas.vasilache@gmail.com> | 2021-10-27 18:11:12 +0000 |
---|---|---|
committer | Nicolas Vasilache <nicolas.vasilache@gmail.com> | 2021-10-28 19:48:57 +0000 |
commit | cd392c0e9e2af95c38071dbcbc5e12b1265aac00 (patch) | |
tree | 72bde20d35133193451ca18270880376587976e4 /mlir/lib/Conversion/VectorToLLVM | |
parent | d8075e878158c472b53b19de2c81bb18f254a372 (diff) |
[mlir][Linalg] NFC - Make more option names consistent.
Differential Revision: https://reviews.llvm.org/D112640
Diffstat (limited to 'mlir/lib/Conversion/VectorToLLVM')
-rw-r--r-- | mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp index 7d75f11d0e3d..7dbd28223b4b 100644 --- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp +++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp @@ -34,24 +34,24 @@ struct LowerVectorToLLVMPass : public ConvertVectorToLLVMBase<LowerVectorToLLVMPass> { LowerVectorToLLVMPass(const LowerVectorToLLVMOptions &options) { this->reassociateFPReductions = options.reassociateFPReductions; - this->enableIndexOptimizations = options.enableIndexOptimizations; - this->enableArmNeon = options.enableArmNeon; - this->enableArmSVE = options.enableArmSVE; - this->enableAMX = options.enableAMX; - this->enableX86Vector = options.enableX86Vector; + this->indexOptimizations = options.indexOptimizations; + this->armNeon = options.armNeon; + this->armSVE = options.armSVE; + this->amx = options.amx; + this->x86Vector = options.x86Vector; } // Override explicitly to allow conditional dialect dependence. void getDependentDialects(DialectRegistry ®istry) const override { registry.insert<LLVM::LLVMDialect>(); registry.insert<arith::ArithmeticDialect>(); registry.insert<memref::MemRefDialect>(); - if (enableArmNeon) + if (armNeon) registry.insert<arm_neon::ArmNeonDialect>(); - if (enableArmSVE) + if (armSVE) registry.insert<arm_sve::ArmSVEDialect>(); - if (enableAMX) + if (amx) registry.insert<amx::AMXDialect>(); - if (enableX86Vector) + if (x86Vector) registry.insert<x86vector::X86VectorDialect>(); } void runOnOperation() override; @@ -77,7 +77,7 @@ void LowerVectorToLLVMPass::runOnOperation() { // Convert to the LLVM IR dialect. LLVMTypeConverter converter(&getContext()); RewritePatternSet patterns(&getContext()); - populateVectorMaskMaterializationPatterns(patterns, enableIndexOptimizations); + populateVectorMaskMaterializationPatterns(patterns, indexOptimizations); populateVectorTransferLoweringPatterns(patterns); populateVectorToLLVMMatrixConversionPatterns(converter, patterns); populateVectorToLLVMConversionPatterns(converter, patterns, @@ -90,21 +90,21 @@ void LowerVectorToLLVMPass::runOnOperation() { target.addLegalDialect<memref::MemRefDialect>(); target.addLegalDialect<StandardOpsDialect>(); target.addLegalOp<UnrealizedConversionCastOp>(); - if (enableArmNeon) { + if (armNeon) { // TODO: we may or may not want to include in-dialect lowering to // LLVM-compatible operations here. So far, all operations in the dialect // can be translated to LLVM IR so there is no conversion necessary. target.addLegalDialect<arm_neon::ArmNeonDialect>(); } - if (enableArmSVE) { + if (armSVE) { configureArmSVELegalizeForExportTarget(target); populateArmSVELegalizeForLLVMExportPatterns(converter, patterns); } - if (enableAMX) { + if (amx) { configureAMXLegalizeForExportTarget(target); populateAMXLegalizeForLLVMExportPatterns(converter, patterns); } - if (enableX86Vector) { + if (x86Vector) { configureX86VectorLegalizeForExportTarget(target); populateX86VectorLegalizeForLLVMExportPatterns(converter, patterns); } |