https://github.com/topperc created 
https://github.com/llvm/llvm-project/pull/239001

None

>From b8bc8cd0f7092b08d14b4d8e510b54d5578ac29b Mon Sep 17 00:00:00 2001
From: Craig Topper <[email protected]>
Date: Wed, 4 Nov 2026 14:46:06 -0800
Subject: [PATCH] [RISCV] Use a switch RISCVABI::isRVE. NFC

---
 llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h 
b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
index f35856d778a95..3347cb3fd2414 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
@@ -784,8 +784,15 @@ inline bool isDoubleFP(ABI TargetABI) {
 
 // Returns true for the ABIs that only use the reduced 16 register integer 
file.
 inline bool isRVE(ABI TargetABI) {
-  return TargetABI == ABI_ILP32E || TargetABI == ABI_IL32PC64E ||
-         TargetABI == ABI_LP64E || TargetABI == ABI_CHERIOT;
+  switch (TargetABI) {
+  case ABI_ILP32E:
+  case ABI_IL32PC64E:
+  case ABI_LP64E:
+  case ABI_CHERIOT:
+    return true;
+  default:
+    return false;
+  }
 }
 
 // Returns true for the ABIs in which pointers are capabilities.

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to