[Lldb-commits] [lldb] [lldb] Adapt llgs tests for RISC-V (PR #130034)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 6 07:20:29 PST 2025


================
@@ -1393,6 +1393,11 @@ def isLoongArchLSX(self):
     def isLoongArchLASX(self):
         return self.isLoongArch() and "lasx" in self.getCPUInfo()
 
+    def isRISCV(self):
+        """Returns true if the architecture is RISCV64 or RISCV32."""
+        arch = self.getArchitecture()
+        return arch in ["riscv64", "riscv32"]
----------------
DavidSpickett wrote:

I would make this one line:
```
return self.getArchitecture() in ["riscv64", "riscv32"]
```

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


More information about the lldb-commits mailing list