[clang] [llvm] [RISCV] Mark {vl, vtype} as clobber in inline assembly (PR #128636)

Hank Chang via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 6 19:13:00 PST 2025


================
@@ -68,7 +68,11 @@ class RISCVTargetInfo : public TargetInfo {
     return TargetInfo::VoidPtrBuiltinVaList;
   }
 
-  std::string_view getClobbers() const override { return ""; }
+  std::string_view getClobbers() const override {
+    if (ISAInfo->hasExtension("zve32x"))
----------------
HankChang736 wrote:

I just reverted this implementation.

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


More information about the cfe-commits mailing list