[RISCV] Use TargetConstant for CSR number for READ_CSR/WRITE_CSR.
authorCraig Topper <craig.topper@sifive.com>
Mon, 8 Nov 2021 23:05:27 +0000 (15:05 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 8 Nov 2021 23:10:24 +0000 (15:10 -0800)
commit376233113e254e47ea9624c770150c1e90bbce80
treee6ead0bf35dc0005f9161c6e024dfddaa18e2bb8
parent28a06a1b8795604403c5ac2fdd69e676050c27a2
[RISCV] Use TargetConstant for CSR number for READ_CSR/WRITE_CSR.

This is consistent with what we do for other operands that are required
to be constants.

I don't think this results in any real changes. The pattern match
code for isel treats ConstantSDNode and TargetConstantSDNode the same.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp