[Mlir-commits] [mlir] [mlir][llvm] Add `LLVM_DependentLibrariesAttr` (PR #133385)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Mar 28 19:46:11 PDT 2025


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 89cfeeb062577069d1da236d33810bb0416f1102 6728b3b45ecfd4c253a45f96aad476ea48b165d5 --extensions cpp,h -- mlir/include/mlir/Target/LLVMIR/ModuleImport.h mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h mlir/lib/Target/LLVMIR/ModuleImport.cpp mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Target/LLVMIR/ModuleImport.cpp b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
index 59ae759bda..fead71052f 100644
--- a/mlir/lib/Target/LLVMIR/ModuleImport.cpp
+++ b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
@@ -570,8 +570,7 @@ LogicalResult ModuleImport::convertDependentLibrariesMetadata() {
     SmallVector<StringRef> libraries;
     for (const llvm::MDNode *node : named.operands()) {
       if (node->getNumOperands() == 1)
-        if (auto *mdString =
-                dyn_cast<llvm::MDString>(node->getOperand(0)))
+        if (auto *mdString = dyn_cast<llvm::MDString>(node->getOperand(0)))
           libraries.push_back(mdString->getString());
     }
     if (!libraries.empty())

``````````

</details>


https://github.com/llvm/llvm-project/pull/133385


More information about the Mlir-commits mailing list