mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
22 lines
528 B
C#
22 lines
528 B
C#
|
namespace ARMeilleure.IntermediateRepresentation
|
||
|
{
|
||
|
class PhiNode : Node
|
||
|
{
|
||
|
private BasicBlock[] _blocks;
|
||
|
|
||
|
public PhiNode(Operand destination, int predecessorsCount) : base(destination, predecessorsCount)
|
||
|
{
|
||
|
_blocks = new BasicBlock[predecessorsCount];
|
||
|
}
|
||
|
|
||
|
public BasicBlock GetBlock(int index)
|
||
|
{
|
||
|
return _blocks[index];
|
||
|
}
|
||
|
|
||
|
public void SetBlock(int index, BasicBlock block)
|
||
|
{
|
||
|
_blocks[index] = block;
|
||
|
}
|
||
|
}
|
||
|
}
|