[flang-commits] [mlir] [flang] [llvm] [lldb] [compiler-rt] [libc] [libcxx] [clang] [clang-tools-extra] [X86] Add "Ws" constraint and "p" modifier for symbolic address/label reference (PR #77886)

Phoebe Wang via flang-commits flang-commits at lists.llvm.org
Sat Jan 13 23:51:32 PST 2024


================
@@ -1418,6 +1418,14 @@ bool X86TargetInfo::validateAsmConstraint(
   case 'O':
     Info.setRequiresImmediate(0, 127);
     return true;
+  case 'W':
+    switch (*++Name) {
+    default:
+      return false;
+    case 's':
+      Info.setAllowsRegister();
----------------
phoebewang wrote:

Not sure if it matters to a print constraint, should it be `setAllowsMemory`?

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


More information about the flang-commits mailing list