[llvm] [PPC] Lower unreachable IR instruction to a trap. (PR #101379)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 11:10:56 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 78b4b5cccbd92363708906d9171e21b0307b91a2 46ef1cca882487014acab20123766d86da81d2c7 --extensions cpp -- llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index f74a354552..4f94b109e8 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -112,9 +112,10 @@ static cl::opt<bool> EnablePPCGenScalarMASSEntries(
     cl::Hidden);
 
 static cl::opt<bool> PPCDisableTrapOnUnreachable(
-  "ppc-disable-trap-on-unreachable", cl::init(false),
-  cl::desc("Disable lowering of unreachable IR intruction to a trap instuction"),
-           cl::Hidden);
+    "ppc-disable-trap-on-unreachable", cl::init(false),
+    cl::desc(
+        "Disable lowering of unreachable IR intruction to a trap instuction"),
+    cl::Hidden);
 
 extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializePowerPCTarget() {
   // Register the targets

``````````

</details>


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


More information about the llvm-commits mailing list