[Mlir-commits] [mlir] c599650 - Apply clang-tidy fixes for readability-identifier-naming in CRunnerUtils.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 7 17:05:44 PDT 2022
Author: Mehdi Amini
Date: 2022-09-08T00:05:22Z
New Revision: c599650a0d2a1ae512490ca303e46ef81931c520
URL: https://github.com/llvm/llvm-project/commit/c599650a0d2a1ae512490ca303e46ef81931c520
DIFF: https://github.com/llvm/llvm-project/commit/c599650a0d2a1ae512490ca303e46ef81931c520.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in CRunnerUtils.cpp (NFC)
Added:
Modified:
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
index f2a43a5de95f0..e5e0d6f94f147 100644
--- a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
+++ b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
@@ -122,9 +122,9 @@ extern "C" double rtclock() {
#endif // _WIN32
}
-extern "C" void *_mlir_alloc(uint64_t size) { return malloc(size); }
+extern "C" void *mlirAlloc(uint64_t size) { return malloc(size); }
-extern "C" void *_mlir_aligned_alloc(uint64_t alignment, uint64_t size) {
+extern "C" void *mlirAlignedAlloc(uint64_t alignment, uint64_t size) {
#ifdef _WIN32
return _aligned_malloc(size, alignment);
#elif defined(__APPLE__)
@@ -138,9 +138,9 @@ extern "C" void *_mlir_aligned_alloc(uint64_t alignment, uint64_t size) {
#endif
}
-extern "C" void _mlir_free(void *ptr) { free(ptr); }
+extern "C" void mlirFree(void *ptr) { free(ptr); }
-extern "C" void _mlir_aligned_free(void *ptr) {
+extern "C" void mlirAlignedFree(void *ptr) {
#ifdef _WIN32
_aligned_free(ptr);
#else
More information about the Mlir-commits
mailing list