[llvm] [SPIR-V] Expose an API call to initialize SPIRV target and translate input LLVM IR module to SPIR-V (PR #107216)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 03:55:11 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 4befe65cf065a1be8bb8f30d76a3f45ea45aa63f 66f792ddd769ee70e04e858a56a3adc6070acc57 --extensions cpp -- llvm/lib/Target/SPIRV/SPIRV.cpp llvm/unittests/Target/SPIRV/SPIRVAPITest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRV.cpp b/llvm/lib/Target/SPIRV/SPIRV.cpp
index 2636efb261..def70961b0 100644
--- a/llvm/lib/Target/SPIRV/SPIRV.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRV.cpp
@@ -61,7 +61,7 @@ void parseSPIRVCommandLineOptions(const std::vector<std::string> &Options,
   static constexpr const char *Origin = "SPIRVTranslateModule";
   if (!Options.empty()) {
     std::vector<const char *> Argv(1, Origin);
-    for (const auto& Arg : Options)
+    for (const auto &Arg : Options)
       Argv.push_back(Arg.c_str());
     cl::ParseCommandLineOptions(Argv.size(), Argv.data(), Origin, Errs);
   }

``````````

</details>


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


More information about the llvm-commits mailing list