[RISCV] Refactor RISCV::hasAllWUsers to hasAllNBitUsers similar to RISCVISelDAGToDAG...
authorCraig Topper <craig.topper@sifive.com>
Wed, 28 Dec 2022 19:41:01 +0000 (11:41 -0800)
committerCraig Topper <craig.topper@sifive.com>
Wed, 28 Dec 2022 20:49:23 +0000 (12:49 -0800)
commitac51cf19604630919f54131ba1d9e3d9443f715c
tree660c850ba6d65f66959224adc65f3fb21edf968a
parentee9ccb11036ac46ff9b9f3fa2d459d9d2bce5509
[RISCV] Refactor RISCV::hasAllWUsers to hasAllNBitUsers similar to RISCVISelDAGToDAG's version. NFC

Move to RISCVInstrInfo since we need RISCVSubtarget now.

Instead of asking if only the lower 32 bits are used we can now
ask if the lower N bits are used. This will be needed by a future
patch.
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.h
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
llvm/lib/Target/RISCV/RISCVStripWSuffix.cpp