[Mlir-commits] [mlir] 298d2fa - Apply clang-tidy fixes for readability-identifier-naming in SparseTensorUtils.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Fri May 6 13:20:39 PDT 2022
Author: Mehdi Amini
Date: 2022-05-06T20:19:19Z
New Revision: 298d2fa1c5f103fc28e533345ecb9e2e2f5c0ad7
URL: https://github.com/llvm/llvm-project/commit/298d2fa1c5f103fc28e533345ecb9e2e2f5c0ad7
DIFF: https://github.com/llvm/llvm-project/commit/298d2fa1c5f103fc28e533345ecb9e2e2f5c0ad7.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in SparseTensorUtils.cpp (NFC)
Added:
Modified:
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
index e66de519d1864..a7d636749c92c 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
@@ -126,11 +126,11 @@ struct SparseTensorCOO {
// only happens if we did not set the initial capacity right, and then only
// for every internal vector reallocation (which with the doubling rule
// should only incur an amortized linear overhead).
- uint64_t *new_base = indices.data();
- if (new_base != base) {
+ uint64_t *newBase = indices.data();
+ if (newBase != base) {
for (uint64_t i = 0, n = elements.size(); i < n; i++)
- elements[i].indices = new_base + (elements[i].indices - base);
- base = new_base;
+ elements[i].indices = newBase + (elements[i].indices - base);
+ base = newBase;
}
// Add element as (pointer into shared index pool, value) pair.
elements.emplace_back(base + size, val);
More information about the Mlir-commits
mailing list