[Mlir-commits] [mlir] [MLIR][Python] Python binding support for AffineIfOp (PR #107336)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 4 17:38:13 PDT 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 df50751d24da4f5fdf8f46119c09a7e941f7174b 22eafd60cb8bdaddcc7e22c1632c52381a2cdd6c --extensions h,cpp -- mlir/include/mlir-c/BuiltinAttributes.h mlir/lib/Bindings/Python/IRAttributes.cpp mlir/lib/CAPI/IR/BuiltinAttributes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir-c/BuiltinAttributes.h b/mlir/include/mlir-c/BuiltinAttributes.h
index 973bdd539f..7c8c84e55b 100644
--- a/mlir/include/mlir-c/BuiltinAttributes.h
+++ b/mlir/include/mlir-c/BuiltinAttributes.h
@@ -183,7 +183,8 @@ MLIR_CAPI_EXPORTED bool mlirAttributeIsAIntegerSet(MlirAttribute attr);
MLIR_CAPI_EXPORTED MlirAttribute mlirIntegerSetAttrGet(MlirIntegerSet set);
/// Returns the integer set wrapped in the given integer set attribute.
-MLIR_CAPI_EXPORTED MlirIntegerSet mlirIntegerSetAttrGetValue(MlirAttribute attr);
+MLIR_CAPI_EXPORTED MlirIntegerSet
+mlirIntegerSetAttrGetValue(MlirAttribute attr);
/// Returns the typeID of an IntegerSet attribute.
MLIR_CAPI_EXPORTED MlirTypeID mlirIntegerSetAttrGetTypeID(void);
diff --git a/mlir/lib/Bindings/Python/IRAttributes.cpp b/mlir/lib/Bindings/Python/IRAttributes.cpp
index 3991bc6d65..c557b9d4c5 100644
--- a/mlir/lib/Bindings/Python/IRAttributes.cpp
+++ b/mlir/lib/Bindings/Python/IRAttributes.cpp
@@ -147,7 +147,8 @@ public:
}
};
-class PyIntegerSetAttribute : public PyConcreteAttribute<PyIntegerSetAttribute> {
+class PyIntegerSetAttribute
+ : public PyConcreteAttribute<PyIntegerSetAttribute> {
public:
static constexpr IsAFunctionTy isaFunction = mlirAttributeIsAIntegerSet;
static constexpr const char *pyClassName = "IntegerSetAttr";
``````````
</details>
https://github.com/llvm/llvm-project/pull/107336
More information about the Mlir-commits
mailing list