[Mlir-commits] [mlir] 0ae2e95 - Apply clang-tidy fixes for modernize-use-override to MLIR (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sat Jan 1 17:24:36 PST 2022


Author: Mehdi Amini
Date: 2022-01-02T01:24:02Z
New Revision: 0ae2e9580c5764eeb15f96cfb661f44307d4e6fa

URL: https://github.com/llvm/llvm-project/commit/0ae2e9580c5764eeb15f96cfb661f44307d4e6fa
DIFF: https://github.com/llvm/llvm-project/commit/0ae2e9580c5764eeb15f96cfb661f44307d4e6fa.diff

LOG: Apply clang-tidy fixes for modernize-use-override to MLIR (NFC)

Reviewed By: rriddle, jpienaar

Differential Revision: https://reviews.llvm.org/D116356

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
    mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
index 5cc40665a8af1..32faad2d0d41d 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
@@ -277,7 +277,7 @@ class SparseTensorStorage : public SparseTensorStorageBase {
     }
   }
 
-  virtual ~SparseTensorStorage() = default;
+  ~SparseTensorStorage() override = default;
 
   /// Get the rank of the tensor.
   uint64_t getRank() const { return sizes.size(); }

diff  --git a/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp b/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp
index d30815410af95..0b4085911675f 100644
--- a/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp
+++ b/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp
@@ -25,7 +25,7 @@ class TestUniformQuantizedValueConverter
 public:
   TestUniformQuantizedValueConverter(UniformQuantizedType type)
       : UniformQuantizedValueConverter(type), qtype(type) {}
-  APInt quantizeFloatToInt(APFloat expressedValue) const {
+  APInt quantizeFloatToInt(APFloat expressedValue) const override {
     return APInt(qtype.getStorageType().cast<IntegerType>().getWidth(), 5L);
   }
 


        


More information about the Mlir-commits mailing list