[PATCH] D90853: [RISCV] Add DAG nodes to represent read/write CSR

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 14 23:19:21 PDT 2021


sepavloff added a comment.

Hi all,

What is the destiny of this patch?

My point is that:

- Using X0 as destination is an encoding trick to save opcode space, there is no sense to expose it to higher levels, like DAG or MIR.
- Machine instruction or DAG node which have X0 as destination register breaks DAG or MIR design, as such instruction actually is not a definitions for X0.

It looks like there is no alternative to dedicated instructions for writes to CSRs.

What do you think?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90853



More information about the llvm-commits mailing list