diff options
author | Luís Marques <luismarques@lowrisc.org> | 2020-01-07 11:06:44 +0000 |
---|---|---|
committer | Luís Marques <luismarques@lowrisc.org> | 2020-01-07 11:06:46 +0000 |
commit | 27e6b171e0be0bca1ba4fb934f52816f24487b6f (patch) | |
tree | 21fabd177ed0d95dbdb0226ef406f66c4f89d7c2 | |
parent | c758e4692317350313ec5426d488621ab2d3ff42 (diff) | |
download | bcm5719-llvm-27e6b171e0be0bca1ba4fb934f52816f24487b6f.tar.gz bcm5719-llvm-27e6b171e0be0bca1ba4fb934f52816f24487b6f.zip |
[RISCV][Docs] Add RISC-V asm template argument modifiers
Adds the RISC-V asm template argument modifiers currently supported by LLVM.
Additional ones supported by GCC will be added to the documentation when we
start supporting them.
-rw-r--r-- | llvm/docs/LangRef.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index fc8d207e0b3..9bc5f4285a7 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -4185,6 +4185,13 @@ PowerPC: - ``X``: Prints 'x' if the memory operand is an indexed form. (NOTE: LLVM does not support indexed form, so this will currently always print nothing) +RISC-V: + +- ``i``: Print the letter 'i' if the operand is not a register, otherwise print + nothing. Used to print 'addi' vs 'add' instructions, etc. +- ``z``: Print the register ``zero`` if an immediate zero, otherwise print + normally. + Sparc: - ``r``: No effect. |