[Mlir-commits] [mlir] 2071e72 - Apply clang-tidy fixes for modernize-use-using to MLIR (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Jan 13 18:28:01 PST 2022
Author: Mehdi Amini
Date: 2022-01-14T02:26:27Z
New Revision: 2071e7204dda669013113f5b78257dea81ec57af
URL: https://github.com/llvm/llvm-project/commit/2071e7204dda669013113f5b78257dea81ec57af
DIFF: https://github.com/llvm/llvm-project/commit/2071e7204dda669013113f5b78257dea81ec57af.diff
LOG: Apply clang-tidy fixes for modernize-use-using to MLIR (NFC)
Added:
Modified:
mlir/include/mlir-c/Interfaces.h
mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
Removed:
################################################################################
diff --git a/mlir/include/mlir-c/Interfaces.h b/mlir/include/mlir-c/Interfaces.h
index 233f828b924c7..7ab6b8af3a8c7 100644
--- a/mlir/include/mlir-c/Interfaces.h
+++ b/mlir/include/mlir-c/Interfaces.h
@@ -48,7 +48,7 @@ MLIR_CAPI_EXPORTED MlirTypeID mlirInferTypeOpInterfaceTypeID();
/// transferring ownership to the caller. The first argument is the number of
/// consecutive elements pointed to by the second argument. The third argument
/// is an opaque pointer forwarded to the callback by the caller.
-typedef void (*MlirTypesCallback)(intptr_t, MlirType *, void *);
+using MlirTypesCallback = void (*)(intptr_t, MlirType *, void *);
/// Infers the return types of the operation identified by its canonical given
/// the arguments that will be supplied to its generic builder. Calls `callback`
diff --git a/mlir/include/mlir/ExecutionEngine/AsyncRuntime.h b/mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
index af4f98e154d81..a681c47200daf 100644
--- a/mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
+++ b/mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
@@ -29,13 +29,13 @@ namespace runtime {
//===----------------------------------------------------------------------===//
// Runtime implementation of `async.token` data type.
-typedef struct AsyncToken AsyncToken;
+using AsyncToken = struct AsyncToken;
// Runtime implementation of `async.group` data type.
-typedef struct AsyncGroup AsyncGroup;
+using AsyncGroup = struct AsyncGroup;
// Runtime implementation of `async.value` data type.
-typedef struct AsyncValue AsyncValue;
+using AsyncValue = struct AsyncValue;
// Async value payload stored in a memory owned by the async.value.
using ValueStorage = void *;
More information about the Mlir-commits
mailing list