[all-commits] [llvm/llvm-project] fcad2b: [RISC-V] Add proposed mapping for Ztso
patrick-rivos via All-commits
all-commits at lists.llvm.org
Thu Aug 10 07:59:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fcad2bbcfc1f0acaa91fe03b71ff069975f80c8e
https://github.com/llvm/llvm-project/commit/fcad2bbcfc1f0acaa91fe03b71ff069975f80c8e
Author: Patrick O'Neill <patrick at rivosinc.com>
Date: 2023-08-10 (Thu, 10 Aug 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVExpandAtomicPseudoInsts.cpp
M llvm/lib/Target/RISCV/RISCVFeatures.td
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVInstrInfoA.td
M llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
M llvm/test/CodeGen/RISCV/atomic-load-store.ll
M llvm/test/CodeGen/RISCV/atomic-rmw.ll
Log Message:
-----------
[RISC-V] Add proposed mapping for Ztso
Currently LLVM emits Ztso code for fences, loads, and stores (behind an
experimental flag) [1]. This patch updates the mapping and implements
support for LR/SC and AMO ops. This updated mapping is compatible with
the RVWMO ABI present in the psABI. Additional context can be found in
the psABI pull request [2].
[1] https://reviews.llvm.org/D143076
[2] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/391
Differential Revision: https://reviews.llvm.org/D155517
More information about the All-commits
mailing list