[PATCH] D158062: [RISCV] Teach RISCVMergeBaseOffset to handle inline asm

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 02:52:57 PDT 2023


wangpc created this revision.
wangpc added reviewers: asb, jrtc27, craig.topper, luismarques, reames.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
wangpc requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

For inline asm with memory operands, we can merge the offset into
the second operand of memory constraint operands.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158062

Files:
  llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
  llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
  llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158062.550682.patch
Type: text/x-patch
Size: 15614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230816/db5de1fe/attachment.bin>


More information about the llvm-commits mailing list