[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 13 17:40:00 PDT 2025


================
@@ -23133,6 +23133,12 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
           &RISCV::VRN2M4RegClass}) {
       if (TRI->isTypeLegalForClass(*RC, VT.SimpleTy))
         return std::make_pair(0U, RC);
+
+      if (VT.isFixedLengthVector() && Subtarget.useRVVForFixedLengthVectors()) {
----------------
4vtomat wrote:

Yeah right, we should use `useRVVForFixedLengthVectorVT`

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


More information about the cfe-commits mailing list