[flang-commits] [flang] [flang] Add CodeGen target support for WebAssembly (PR #226427)
via flang-commits
flang-commits at lists.llvm.org
Fri Sep 25 03:25:19 PDT 2026
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 -- flang/lib/Optimizer/CodeGen/Target.cpp --diff_from_common_commit
``````````
: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/flang/lib/Optimizer/CodeGen/Target.cpp b/flang/lib/Optimizer/CodeGen/Target.cpp
index b190b1dd8..f18085395 100644
--- a/flang/lib/Optimizer/CodeGen/Target.cpp
+++ b/flang/lib/Optimizer/CodeGen/Target.cpp
@@ -2141,13 +2141,13 @@ std::unique_ptr<fir::CodeGenSpecifics> fir::CodeGenSpecifics::get(
std::move(kindMap), targetCPU,
targetFeatures, targetABI, dl);
case llvm::Triple::ArchType::wasm32:
- return std::make_unique<TargetWasm<32>>(
- ctx, std::move(trp), std::move(kindMap), targetCPU, targetFeatures,
- targetABI, dl);
+ return std::make_unique<TargetWasm<32>>(ctx, std::move(trp),
+ std::move(kindMap), targetCPU,
+ targetFeatures, targetABI, dl);
case llvm::Triple::ArchType::wasm64:
- return std::make_unique<TargetWasm<64>>(
- ctx, std::move(trp), std::move(kindMap), targetCPU, targetFeatures,
- targetABI, dl);
+ return std::make_unique<TargetWasm<64>>(ctx, std::move(trp),
+ std::move(kindMap), targetCPU,
+ targetFeatures, targetABI, dl);
}
TODO(mlir::UnknownLoc::get(ctx), "target not implemented");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/226427
More information about the flang-commits
mailing list