[llvm] [RISCV] Teach RISCVMakeCompressible handle Zca/Zcf/Zce/Zcd. (PR #81844)
    Alex Bradbury via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb 15 06:46:14 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 {
----------------
asb wrote:
It would be better to define hasStdExtCOrZcf I think. In any case where the Zc* extensions are used, Zcf will always be defined if flw/fsw are supported (e.g. there's logic in RISCVISAInfo to add zcf if zce is specified alongside f).
https://github.com/llvm/llvm-project/pull/81844
    
    
More information about the llvm-commits
mailing list