[clang] [llvm] [RISCV] Mark {vl, vtype} as clobber in inline assembly (PR #128636)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 20:05:08 PST 2025
================
@@ -68,7 +68,7 @@ class RISCVTargetInfo : public TargetInfo {
return TargetInfo::VoidPtrBuiltinVaList;
}
- std::string_view getClobbers() const override { return ""; }
+ std::string_view getClobbers() const override { return "~{vl},~{vtype}"; }
----------------
topperc wrote:
That doesn't work with the `target` attribute.
https://github.com/llvm/llvm-project/pull/128636
More information about the cfe-commits
mailing list