[llvm] [RISCV] Teach RISCVMakeCompressible handle Zca/Zcf/Zce/Zcd. (PR #81844)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 09:36:05 PST 2024


================
@@ -143,6 +143,10 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
 #include "RISCVGenSubtargetInfo.inc"
 
   bool hasStdExtCOrZca() const { return HasStdExtC || HasStdExtZca; }
+  bool hasStdExtCOrZcd() const { return HasStdExtC || HasStdExtZcd; }
+  bool hasStdExtCOrZcfOrZce() const {
----------------
topperc wrote:

We do have a `HasStdExtCOrZcfOrZce` as a tablegen predicate already. There was a reason I included in Zce in there, but I don't remember exactly why.

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


More information about the llvm-commits mailing list