[clang] [llvm] [RISCV] Support RISC-V Profiles in -march option (PR #76357)
    Wang Pengcheng via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Mar  8 00:41:50 PST 2024
    
    
  
================
@@ -138,6 +150,8 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
   /// initializeProperties().
   RISCVProcFamilyEnum getProcFamily() const { return RISCVProcFamily; }
 
+  RISCVProfileEnum getRISCVProfile() const { return RISCVProfile; }
----------------
wangpc-pp wrote:
It depends on whether we need to know profile info in backend.
Currently we needn't, but I think it can be useful.
https://github.com/llvm/llvm-project/pull/76357
    
    
More information about the llvm-commits
mailing list