mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-26 05:00:13 +01:00
IR: add helpers to extract physical registers from IR
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
c4f00a05df
commit
3136a5e2f8
1 file changed
+6
@@ -24,6 +24,12 @@ union PhysicalRegister {
|
||||
: Reg(Reg)
|
||||
, Class(Class.Val) {}
|
||||
|
||||
PhysicalRegister(OrderedNodeWrapper Arg)
|
||||
: Raw(Arg.GetImmediate()) {}
|
||||
|
||||
PhysicalRegister(Ref Node)
|
||||
: Raw(Node->Reg) {}
|
||||
|
||||
static const PhysicalRegister Invalid() {
|
||||
return PhysicalRegister(InvalidClass, InvalidReg);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user