[PATCH] D72184: [BPF] support atomic instructions

Yonghong Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 17 13:26:01 PST 2020


yonghong-song updated this revision to Diff 305895.
yonghong-song added a comment.

use the same register for dst and val for fetch-add, fetch-sub and xchg instructions.
for fetch-sub, if it is deemed later using different registers for dst/val is preferred, I can make the change then.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72184/new/

https://reviews.llvm.org/D72184

Files:
  clang/lib/Basic/Targets/BPF.cpp
  clang/test/Misc/target-invalid-cpu-note.c
  llvm/lib/Target/BPF/BPF.td
  llvm/lib/Target/BPF/BPFInstrFormats.td
  llvm/lib/Target/BPF/BPFInstrInfo.td
  llvm/lib/Target/BPF/BPFSubtarget.cpp
  llvm/lib/Target/BPF/BPFSubtarget.h
  llvm/lib/Target/BPF/Disassembler/BPFDisassembler.cpp
  llvm/test/CodeGen/BPF/atomics.ll
  llvm/test/CodeGen/BPF/atomics_2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72184.305895.patch
Type: text/x-patch
Size: 18360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201117/2b1e8012/attachment.bin>


More information about the cfe-commits mailing list