mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-11 10:39:58 +01:00
23 lines
596 B
C#
23 lines
596 B
C#
|
using Ryujinx.Graphics.Shader.IntermediateRepresentation;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Shader.StructuredIr
|
||
|
{
|
||
|
class GotoStatement
|
||
|
{
|
||
|
public AstOperation Goto { get; }
|
||
|
public AstAssignment Label { get; }
|
||
|
|
||
|
public IAstNode Condition => Label.Destination;
|
||
|
|
||
|
public bool IsLoop { get; set; }
|
||
|
|
||
|
public bool IsUnconditional => Goto.Inst == Instruction.Branch;
|
||
|
|
||
|
public GotoStatement(AstOperation branch, AstAssignment label, bool isLoop)
|
||
|
{
|
||
|
Goto = branch;
|
||
|
Label = label;
|
||
|
IsLoop = isLoop;
|
||
|
}
|
||
|
}
|
||
|
}
|