[clang] [llvm] [Clang][inlineasm] Add special support for "rm" output constraints (PR #92040)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 4 08:14:28 PST 2026


================
@@ -181,6 +181,14 @@ class InlineAsm final : public Value {
     bool hasArg() const {
       return Type == isInput || (Type == isOutput && isIndirect);
     }
+
+    /// hassRegMemConstraints - Returns true if and only if the constraint
+    /// codes are "rm". This is useful when converting between a register form
+    /// to a memory form.
----------------
nikic wrote:

This applies to many similar checks: Why are we making this specific to `rm`? Wouldn't this also work if for example the `r` is a more specific register class?

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


More information about the cfe-commits mailing list