[PATCH] D117851: [Hexagon] Use llvm::Register instead of unsigned in HexagonConstExtenders.cpp. NFC.
Jim Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 24 00:04:23 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf53301125257: [Hexagon] Use llvm::Register instead of unsigned in HexagonConstExtenders.cpp. (authored by Jim).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117851/new/
https://reviews.llvm.org/D117851
Files:
llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
Index: llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
===================================================================
--- llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
+++ llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
@@ -229,7 +229,7 @@
private:
struct Register {
Register() = default;
- Register(unsigned R, unsigned S) : Reg(R), Sub(S) {}
+ Register(llvm::Register R, unsigned S) : Reg(R), Sub(S) {}
Register(const MachineOperand &Op)
: Reg(Op.getReg()), Sub(Op.getSubReg()) {}
Register &operator=(const MachineOperand &Op) {
@@ -1573,7 +1573,7 @@
// No compounds are available. It is not clear whether we should
// even process such extenders where the initializer cannot be
// a single instruction, but do it for now.
- unsigned TmpR = MRI->createVirtualRegister(&Hexagon::IntRegsRegClass);
+ llvm::Register TmpR = MRI->createVirtualRegister(&Hexagon::IntRegsRegClass);
BuildMI(MBB, At, dl, HII->get(Hexagon::S2_asl_i_r), TmpR)
.add(MachineOperand(Ex.Rs))
.addImm(Ex.S);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117851.402410.patch
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220124/faa08d9a/attachment.bin>
More information about the llvm-commits
mailing list