[Mlir-commits] [mlir] 240f41c - [mlir] Use std::enable_if_t (NFC)
Kazu Hirata
llvmlistbot at llvm.org
Sat Oct 1 17:25:10 PDT 2022
Author: Kazu Hirata
Date: 2022-10-01T17:24:56-07:00
New Revision: 240f41c8e45186ea8f781dad7caed789a34f215c
URL: https://github.com/llvm/llvm-project/commit/240f41c8e45186ea8f781dad7caed789a34f215c
DIFF: https://github.com/llvm/llvm-project/commit/240f41c8e45186ea8f781dad7caed789a34f215c.diff
LOG: [mlir] Use std::enable_if_t (NFC)
Added:
Modified:
mlir/include/mlir/ExecutionEngine/SparseTensor/File.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/ExecutionEngine/SparseTensor/File.h b/mlir/include/mlir/ExecutionEngine/SparseTensor/File.h
index 589e0dbfa2b07..c8e7fa818f04b 100644
--- a/mlir/include/mlir/ExecutionEngine/SparseTensor/File.h
+++ b/mlir/include/mlir/ExecutionEngine/SparseTensor/File.h
@@ -163,7 +163,7 @@ struct is_complex<std::complex<T>> final : public std::true_type {};
/// Reads an element of a non-complex type for the current indices in
/// coordinate scheme.
template <typename V>
-inline typename std::enable_if<!is_complex<V>::value, V>::type
+inline std::enable_if_t<!is_complex<V>::value, V>
readCOOValue(char **linePtr, bool is_pattern) {
// The external formats always store these numerical values with the type
// double, but we cast these values to the sparse tensor object type.
@@ -174,8 +174,8 @@ readCOOValue(char **linePtr, bool is_pattern) {
/// Reads an element of a complex type for the current indices in
/// coordinate scheme.
template <typename V>
-inline typename std::enable_if<is_complex<V>::value, V>::type
-readCOOValue(char **linePtr, bool is_pattern) {
+inline std::enable_if_t<is_complex<V>::value, V> readCOOValue(char **linePtr,
+ bool is_pattern) {
// Read two values to make a complex. The external formats always store
// numerical values with the type double, but we cast these values to the
// sparse tensor object type. For a pattern tensor, we arbitrarily pick the
More information about the Mlir-commits
mailing list