[llvm] [llvm-exegesis] [AArch64] Resolving Illegal Instruction Error (PR #132346)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 24 03:38:53 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 111cc472d1297386bc3220659d3faec2c29795cf 5039c2b1e1c63c4900b113bf6db662303faf7f53 --extensions cpp -- llvm/tools/llvm-exegesis/lib/Target.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-exegesis/lib/Target.cpp b/llvm/tools/llvm-exegesis/lib/Target.cpp
index b6a98ec5aa..ad9ceee7ba 100644
--- a/llvm/tools/llvm-exegesis/lib/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Target.cpp
@@ -7,6 +7,8 @@
 //===----------------------------------------------------------------------===//
 #include "Target.h"
 
+#include "AArch64.h"
+#include "AArch64RegisterInfo.h"
 #include "LatencyBenchmarkRunner.h"
 #include "ParallelSnippetGenerator.h"
 #include "PerfHelper.h"
@@ -15,8 +17,6 @@
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/Error.h"
 #include "llvm/TargetParser/SubtargetFeature.h"
-#include "AArch64.h"
-#include "AArch64RegisterInfo.h"
 
 namespace llvm {
 namespace exegesis {
@@ -39,34 +39,34 @@ const ExegesisTarget *ExegesisTarget::lookup(Triple TT) {
 
 static bool isPointerAuthOpcode(unsigned Opcode) {
   switch (Opcode) {
-    case AArch64::AUTDA:
-    case AArch64::AUTDB:
-    case AArch64::AUTDZA:
-    case AArch64::AUTDZB:
-    case AArch64::AUTIA:
-    case AArch64::AUTIA1716:
-    case AArch64::AUTIASP:
-    case AArch64::AUTIAZ:
-    case AArch64::AUTIB:
-    case AArch64::AUTIB1716:
-    case AArch64::AUTIBSP:
-    case AArch64::AUTIBZ:
-    case AArch64::AUTIZA:
-    case AArch64::AUTIZB:
-      return true;
-    default:
-      return false;
+  case AArch64::AUTDA:
+  case AArch64::AUTDB:
+  case AArch64::AUTDZA:
+  case AArch64::AUTDZB:
+  case AArch64::AUTIA:
+  case AArch64::AUTIA1716:
+  case AArch64::AUTIASP:
+  case AArch64::AUTIAZ:
+  case AArch64::AUTIB:
+  case AArch64::AUTIB1716:
+  case AArch64::AUTIBSP:
+  case AArch64::AUTIBZ:
+  case AArch64::AUTIZA:
+  case AArch64::AUTIZB:
+    return true;
+  default:
+    return false;
   }
 }
 
 static bool isUncheckedAccessOpcode(unsigned Opcode) {
   switch (Opcode) {
-    case AArch64::LDGM:
-      return true;
-    default:
-      return false;
-  }
+  case AArch64::LDGM:
+    return true;
+  default:
+    return false;
   }
+}
 
 const char *
 ExegesisTarget::getIgnoredOpcodeReasonOrNull(const LLVMState &State,

``````````

</details>


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


More information about the llvm-commits mailing list