[Mlir-commits] [mlir] [mlir][affine]make threadid op is valid symbol. (PR #118478)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 16 04:23:14 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff a3db5910b434d746c9c0585a092100ff7abcd1a0 8b0f52d01f6d57799be548879f77ddc301f2dad4 --extensions cpp,h -- mlir/include/mlir/IR/OpDefinition.h mlir/lib/Dialect/Affine/IR/AffineOps.cpp mlir/lib/IR/Operation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h
index 3c2f4a89ea..6f44294ae0 100644
--- a/mlir/include/mlir/IR/OpDefinition.h
+++ b/mlir/include/mlir/IR/OpDefinition.h
@@ -1789,9 +1789,9 @@ private:
llvm::is_detected<has_single_result_fold_t, T>::value;
/// Trait to check if T provides a general 'fold' method.
template <typename T, typename... Args>
- using has_fold_t = decltype(
- std::declval<T>().fold(std::declval<ArrayRef<Attribute>>(),
- std::declval<SmallVectorImpl<OpFoldResult> &>()));
+ using has_fold_t = decltype(std::declval<T>().fold(
+ std::declval<ArrayRef<Attribute>>(),
+ std::declval<SmallVectorImpl<OpFoldResult> &>()));
template <typename T>
constexpr static bool has_fold_v = llvm::is_detected<has_fold_t, T>::value;
/// Trait to check if T provides a 'fold' method with a FoldAdaptor for a
@@ -1804,9 +1804,9 @@ private:
llvm::is_detected<has_fold_adaptor_single_result_fold_t, T>::value;
/// Trait to check if T provides a general 'fold' method with a FoldAdaptor.
template <typename T, typename... Args>
- using has_fold_adaptor_fold_t = decltype(
- std::declval<T>().fold(std::declval<typename T::FoldAdaptor>(),
- std::declval<SmallVectorImpl<OpFoldResult> &>()));
+ using has_fold_adaptor_fold_t = decltype(std::declval<T>().fold(
+ std::declval<typename T::FoldAdaptor>(),
+ std::declval<SmallVectorImpl<OpFoldResult> &>()));
template <class T>
constexpr static bool has_fold_adaptor_v =
llvm::is_detected<has_fold_adaptor_fold_t, T>::value;
@@ -1821,17 +1821,18 @@ private:
/// Trait to check if printProperties(OpAsmPrinter, T, ArrayRef<StringRef>)
/// exist
template <typename T, typename... Args>
- using has_print_properties = decltype(
- printProperties(std::declval<OpAsmPrinter &>(), std::declval<T>(),
- std::declval<ArrayRef<StringRef>>()));
+ using has_print_properties =
+ decltype(printProperties(std::declval<OpAsmPrinter &>(),
+ std::declval<T>(),
+ std::declval<ArrayRef<StringRef>>()));
template <typename T>
using detect_has_print_properties =
llvm::is_detected<has_print_properties, T>;
/// Trait to check if parseProperties(OpAsmParser, T) exist
template <typename T, typename... Args>
- using has_parse_properties = decltype(
- parseProperties(std::declval<OpAsmParser &>(), std::declval<T &>()));
+ using has_parse_properties = decltype(parseProperties(
+ std::declval<OpAsmParser &>(), std::declval<T &>()));
template <typename T>
using detect_has_parse_properties =
llvm::is_detected<has_parse_properties, T>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/118478
More information about the Mlir-commits
mailing list