[Mlir-commits] [mlir] [NFC][MLIR] Prefer triple overload of lookupTarget (PR #162187)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Oct 6 15:44:41 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 origin/main HEAD --extensions cpp -- mlir/lib/Target/LLVM/ModuleToObject.cpp mlir/lib/Target/LLVM/ROCDL/Target.cpp mlir/lib/Target/LLVMIR/Transforms/TargetUtils.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Target/LLVM/ModuleToObject.cpp b/mlir/lib/Target/LLVM/ModuleToObject.cpp
index 08e7f7e61..4098ccc54 100644
--- a/mlir/lib/Target/LLVM/ModuleToObject.cpp
+++ b/mlir/lib/Target/LLVM/ModuleToObject.cpp
@@ -66,8 +66,8 @@ ModuleToObject::getOrCreateTargetMachine() {
}
// Create the target machine using the target.
- targetMachine.reset(target->createTargetMachine(parsedTriple, chip,
- features, {}, {}));
+ targetMachine.reset(
+ target->createTargetMachine(parsedTriple, chip, features, {}, {}));
if (!targetMachine)
return std::nullopt;
return targetMachine.get();
diff --git a/mlir/lib/Target/LLVMIR/Transforms/TargetUtils.cpp b/mlir/lib/Target/LLVMIR/Transforms/TargetUtils.cpp
index 437f6fc28..3f414b6dc 100644
--- a/mlir/lib/Target/LLVMIR/Transforms/TargetUtils.cpp
+++ b/mlir/lib/Target/LLVMIR/Transforms/TargetUtils.cpp
@@ -52,8 +52,8 @@ getTargetMachine(mlir::LLVM::TargetAttrInterface attr) {
return failure();
}
- return std::unique_ptr<llvm::TargetMachine>(target->createTargetMachine(
- parsedTriple, chipAKAcpu, features, {}, {}));
+ return std::unique_ptr<llvm::TargetMachine>(
+ target->createTargetMachine(parsedTriple, chipAKAcpu, features, {}, {}));
}
FailureOr<llvm::DataLayout>
``````````
</details>
https://github.com/llvm/llvm-project/pull/162187
More information about the Mlir-commits
mailing list