[PATCH] D159427: [InlineAsm] Add constraint A to getMemConstraintName

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 4 06:23:41 PDT 2023


wangpc created this revision.
wangpc added reviewers: asb, lewis-revill, jrtc27, craig.topper.
Herald added a project: All.
wangpc requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
wangpc added a reviewer: Jim.
wangpc added a comment.

Oops, we should have fixed it in D124431 <https://reviews.llvm.org/D124431>. Sorry @Jim, I didn't know it.


We will get an assertion of 'Unknown memory constraint' when we dump
`MachineOperand` with constraint A.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159427

Files:
  llvm/include/llvm/IR/InlineAsm.h


Index: llvm/include/llvm/IR/InlineAsm.h
===================================================================
--- llvm/include/llvm/IR/InlineAsm.h
+++ llvm/include/llvm/IR/InlineAsm.h
@@ -443,6 +443,8 @@
       return "m";
     case InlineAsm::Constraint_o:
       return "o";
+    case InlineAsm::Constraint_A:
+      return "A";
     case InlineAsm::Constraint_v:
       return "v";
     case InlineAsm::Constraint_Q:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159427.555717.patch
Type: text/x-patch
Size: 418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230904/a6d257a0/attachment.bin>


More information about the llvm-commits mailing list