================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to