This extension contains a single instruction, wrs, which waits for the
current reservation set to be modified by a remote agent.
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This is still some sort of very early draft and I'm not sure what the
rules are in LLVM land for merging that sort of code. It's a fast track
extension so it should be done soon, but it's been drifting around a bit
as part of that process so this might not be sane right now. I'm really
just doing this to check the box on LLVM support, which is just
assembler support due to the nature of the WRS instruction.
I also haven't gotten clang-format working yet, but I'm hoping something
in the CI will help with that.
You don't need this line, that would be defined automatically once you've add zawrs in RISCVISAInfo.cpp, see the loop in the earlier in this function, it's done by there: