diff --git a/Source/Docs/compiler-transformations.rst b/Source/Docs/compiler-transformations.rst index c4a9c0cc85..dab1ea9e62 100644 --- a/Source/Docs/compiler-transformations.rst +++ b/Source/Docs/compiler-transformations.rst @@ -44,7 +44,7 @@ This is translated into the following C# code: { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -55,7 +55,7 @@ This is translated into the following C# code: return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.ARM32/Architecture.cs b/Source/Mosa.Compiler.ARM32/Architecture.cs index cd92cdbdcd..f539d42647 100644 --- a/Source/Mosa.Compiler.ARM32/Architecture.cs +++ b/Source/Mosa.Compiler.ARM32/Architecture.cs @@ -273,7 +273,7 @@ public override bool IsInstructionMove(BaseInstruction instruction) /// The operand. /// /// true if [is parameter store] [the specified context]; otherwise, false. - public override bool IsParameterStore(InstructionNode node, out Operand operand) + public override bool IsParameterStore(Node node, out Operand operand) { // TODO operand = null; @@ -286,7 +286,7 @@ public override bool IsParameterStore(InstructionNode node, out Operand operand) /// the node /// /// true if [is parameter load] [the specified context]; otherwise, false. - public override bool IsParameterLoad(InstructionNode node, out Operand operand) + public override bool IsParameterLoad(Node node, out Operand operand) { // TODO operand = null; diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Abs.cs b/Source/Mosa.Compiler.ARM32/Instructions/Abs.cs index 09cfb1cd0d..2cf9b0f5cd 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Abs.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Abs.cs @@ -19,7 +19,7 @@ internal Abs() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Adc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Adc.cs index a70969096e..daa00f38bc 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Adc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Adc.cs @@ -21,7 +21,7 @@ internal Adc() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/AdcRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/AdcRegShift.cs index 8bf36a5a58..a5abe7bfa9 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/AdcRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/AdcRegShift.cs @@ -21,7 +21,7 @@ internal AdcRegShift() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Add.cs b/Source/Mosa.Compiler.ARM32/Instructions/Add.cs index 25fc7817b1..dd190f3f45 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Add.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Add.cs @@ -19,7 +19,7 @@ internal Add() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/AddRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/AddRegShift.cs index 484968f92d..165768c9fc 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/AddRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/AddRegShift.cs @@ -19,7 +19,7 @@ internal AddRegShift() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Adf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Adf.cs index 3e5848a315..eb7fc8454e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Adf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Adf.cs @@ -19,7 +19,7 @@ internal Adf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/And.cs b/Source/Mosa.Compiler.ARM32/Instructions/And.cs index ec7cc44760..08c9e392d3 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/And.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/And.cs @@ -19,7 +19,7 @@ internal And() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/AndRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/AndRegShift.cs index b58c5c61ff..bd9250ffca 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/AndRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/AndRegShift.cs @@ -19,7 +19,7 @@ internal AndRegShift() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Asr.cs b/Source/Mosa.Compiler.ARM32/Instructions/Asr.cs index 556d1ea0a6..779a15ee15 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Asr.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Asr.cs @@ -19,7 +19,7 @@ internal Asr() public override bool IsCarryFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/B.cs b/Source/Mosa.Compiler.ARM32/Instructions/B.cs index 6476940eaa..562eea2d2a 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/B.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/B.cs @@ -21,7 +21,7 @@ internal B() public override bool IsConditionalBranch => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Bic.cs b/Source/Mosa.Compiler.ARM32/Instructions/Bic.cs index 5f977ad7a1..75e4d96337 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Bic.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Bic.cs @@ -17,7 +17,7 @@ internal Bic() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/BicRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/BicRegShift.cs index 03d84e8014..e1bbb9d6c2 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/BicRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/BicRegShift.cs @@ -17,7 +17,7 @@ internal BicRegShift() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Bkpt.cs b/Source/Mosa.Compiler.ARM32/Instructions/Bkpt.cs index 4fef09a56b..f993604770 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Bkpt.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Bkpt.cs @@ -17,7 +17,7 @@ internal Bkpt() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Bl.cs b/Source/Mosa.Compiler.ARM32/Instructions/Bl.cs index cec0da66d6..634dd01e74 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Bl.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Bl.cs @@ -17,7 +17,7 @@ internal Bl() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Bx.cs b/Source/Mosa.Compiler.ARM32/Instructions/Bx.cs index 68f89801db..a6799b4a62 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Bx.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Bx.cs @@ -17,7 +17,7 @@ internal Bx() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Cmf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Cmf.cs index ca304f6145..93ef41b80c 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Cmf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Cmf.cs @@ -19,7 +19,7 @@ internal Cmf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Cmfe.cs b/Source/Mosa.Compiler.ARM32/Instructions/Cmfe.cs index d36b633e83..6f29c33615 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Cmfe.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Cmfe.cs @@ -19,7 +19,7 @@ internal Cmfe() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Cmn.cs b/Source/Mosa.Compiler.ARM32/Instructions/Cmn.cs index 51a7b92bdb..f7c761fdfb 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Cmn.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Cmn.cs @@ -27,7 +27,7 @@ internal Cmn() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/CmnRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/CmnRegShift.cs index 7664b1b11f..5676e8465e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/CmnRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/CmnRegShift.cs @@ -27,7 +27,7 @@ internal CmnRegShift() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Cmp.cs b/Source/Mosa.Compiler.ARM32/Instructions/Cmp.cs index 17d4b2fc72..b308d7d88e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Cmp.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Cmp.cs @@ -27,7 +27,7 @@ internal Cmp() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/CmpRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/CmpRegShift.cs index bd506513d8..5ece0cd6c8 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/CmpRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/CmpRegShift.cs @@ -27,7 +27,7 @@ internal CmpRegShift() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Cnf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Cnf.cs index 03c2aa4aae..c220903c55 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Cnf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Cnf.cs @@ -19,7 +19,7 @@ internal Cnf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Cnfe.cs b/Source/Mosa.Compiler.ARM32/Instructions/Cnfe.cs index 748bbb5d1c..0daa362e1e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Cnfe.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Cnfe.cs @@ -19,7 +19,7 @@ internal Cnfe() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Dmb.cs b/Source/Mosa.Compiler.ARM32/Instructions/Dmb.cs index d6612263a2..118274934d 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Dmb.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Dmb.cs @@ -17,7 +17,7 @@ internal Dmb() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Dsb.cs b/Source/Mosa.Compiler.ARM32/Instructions/Dsb.cs index 7f95512a09..7a120659e6 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Dsb.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Dsb.cs @@ -17,7 +17,7 @@ internal Dsb() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Dvf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Dvf.cs index dede992e3c..4648854b5c 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Dvf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Dvf.cs @@ -19,7 +19,7 @@ internal Dvf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Dvr.cs b/Source/Mosa.Compiler.ARM32/Instructions/Dvr.cs index be4d621c2a..34697a6ea7 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Dvr.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Dvr.cs @@ -19,7 +19,7 @@ internal Dvr() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Eor.cs b/Source/Mosa.Compiler.ARM32/Instructions/Eor.cs index a3686783b5..2f23e677a1 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Eor.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Eor.cs @@ -21,7 +21,7 @@ internal Eor() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/EorRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/EorRegShift.cs index d3e0f9b6e1..8021eea95e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/EorRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/EorRegShift.cs @@ -21,7 +21,7 @@ internal EorRegShift() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Fdv.cs b/Source/Mosa.Compiler.ARM32/Instructions/Fdv.cs index 03f2e14d21..f3ddd3f7ca 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Fdv.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Fdv.cs @@ -19,7 +19,7 @@ internal Fdv() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Fix.cs b/Source/Mosa.Compiler.ARM32/Instructions/Fix.cs index 9da7728080..2ece9afd87 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Fix.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Fix.cs @@ -19,7 +19,7 @@ internal Fix() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Flt.cs b/Source/Mosa.Compiler.ARM32/Instructions/Flt.cs index f7a15c3579..ea4e74dff8 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Flt.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Flt.cs @@ -19,7 +19,7 @@ internal Flt() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Fml.cs b/Source/Mosa.Compiler.ARM32/Instructions/Fml.cs index 6d3d3aeffb..aa96d181c9 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Fml.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Fml.cs @@ -19,7 +19,7 @@ internal Fml() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Fmov.cs b/Source/Mosa.Compiler.ARM32/Instructions/Fmov.cs index cff7810712..01c725a554 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Fmov.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Fmov.cs @@ -17,7 +17,7 @@ internal Fmov() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Frd.cs b/Source/Mosa.Compiler.ARM32/Instructions/Frd.cs index dc470f65b6..b27bcd86d2 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Frd.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Frd.cs @@ -19,7 +19,7 @@ internal Frd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Isb.cs b/Source/Mosa.Compiler.ARM32/Instructions/Isb.cs index fe3676b032..40396f714f 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Isb.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Isb.cs @@ -17,7 +17,7 @@ internal Isb() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Ldf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Ldf.cs index 521487d9fd..3cf959b4e8 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Ldf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Ldf.cs @@ -17,7 +17,7 @@ internal Ldf() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Ldm.cs b/Source/Mosa.Compiler.ARM32/Instructions/Ldm.cs index 38d9f6edc2..3647a8d859 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Ldm.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Ldm.cs @@ -17,7 +17,7 @@ internal Ldm() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Ldr16.cs b/Source/Mosa.Compiler.ARM32/Instructions/Ldr16.cs index 3a0aaadabb..ff8542b43c 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Ldr16.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Ldr16.cs @@ -17,7 +17,7 @@ internal Ldr16() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Ldr32.cs b/Source/Mosa.Compiler.ARM32/Instructions/Ldr32.cs index 6cf16f7939..d1db890352 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Ldr32.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Ldr32.cs @@ -17,7 +17,7 @@ internal Ldr32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Ldr8.cs b/Source/Mosa.Compiler.ARM32/Instructions/Ldr8.cs index 9580277689..375bb1db69 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Ldr8.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Ldr8.cs @@ -17,7 +17,7 @@ internal Ldr8() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/LdrS16.cs b/Source/Mosa.Compiler.ARM32/Instructions/LdrS16.cs index ab60091131..6f41075f43 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/LdrS16.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/LdrS16.cs @@ -17,7 +17,7 @@ internal LdrS16() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/LdrS8.cs b/Source/Mosa.Compiler.ARM32/Instructions/LdrS8.cs index 2b6f9bbce5..6063ebf937 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/LdrS8.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/LdrS8.cs @@ -17,7 +17,7 @@ internal LdrS8() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Lsl.cs b/Source/Mosa.Compiler.ARM32/Instructions/Lsl.cs index 54386d6b7f..e0b60e3a6f 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Lsl.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Lsl.cs @@ -19,7 +19,7 @@ internal Lsl() public override bool IsCarryFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Lsr.cs b/Source/Mosa.Compiler.ARM32/Instructions/Lsr.cs index ec5dddaaa4..50c07a47ea 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Lsr.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Lsr.cs @@ -19,7 +19,7 @@ internal Lsr() public override bool IsCarryFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mcr.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mcr.cs index 6da9615abe..8e0918c301 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mcr.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mcr.cs @@ -19,7 +19,7 @@ internal Mcr() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 5); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mla.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mla.cs index 38623b9fc7..527e0db898 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mla.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mla.cs @@ -27,7 +27,7 @@ internal Mla() public override bool IsSignFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mnf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mnf.cs index a4addd0e7e..3a21bba3f8 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mnf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mnf.cs @@ -19,7 +19,7 @@ internal Mnf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mov.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mov.cs index c92e4ae318..5a0b1079ff 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mov.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mov.cs @@ -17,7 +17,7 @@ internal Mov() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/MovRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/MovRegShift.cs index 724407a128..c63facdbbf 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/MovRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/MovRegShift.cs @@ -19,7 +19,7 @@ internal MovRegShift() public override bool IsCarryFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Movt.cs b/Source/Mosa.Compiler.ARM32/Instructions/Movt.cs index 072343618c..a89b9cd66c 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Movt.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Movt.cs @@ -17,7 +17,7 @@ internal Movt() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Movw.cs b/Source/Mosa.Compiler.ARM32/Instructions/Movw.cs index ddfbce9995..48844bdf42 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Movw.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Movw.cs @@ -17,7 +17,7 @@ internal Movw() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mrc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mrc.cs index b3ee71e70c..7fbcc6e597 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mrc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mrc.cs @@ -19,7 +19,7 @@ internal Mrc() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 5); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mrs.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mrs.cs index ef87d343e8..d70d0e9b2f 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mrs.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mrs.cs @@ -17,7 +17,7 @@ internal Mrs() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Msr.cs b/Source/Mosa.Compiler.ARM32/Instructions/Msr.cs index f6f522ca16..e4605eeea9 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Msr.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Msr.cs @@ -17,7 +17,7 @@ internal Msr() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Muf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Muf.cs index 09f4c8913f..a88322f236 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Muf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Muf.cs @@ -19,7 +19,7 @@ internal Muf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mul.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mul.cs index f333b38f8e..1451c847a9 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mul.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mul.cs @@ -27,7 +27,7 @@ internal Mul() public override bool IsSignFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mvf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mvf.cs index 2d76e7db1e..7f1311a5a4 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mvf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mvf.cs @@ -19,7 +19,7 @@ internal Mvf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Mvn.cs b/Source/Mosa.Compiler.ARM32/Instructions/Mvn.cs index 26f4fac428..7d99beeaff 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Mvn.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Mvn.cs @@ -17,7 +17,7 @@ internal Mvn() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/MvnRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/MvnRegShift.cs index b0cf674638..b869a53894 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/MvnRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/MvnRegShift.cs @@ -17,7 +17,7 @@ internal MvnRegShift() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Nop.cs b/Source/Mosa.Compiler.ARM32/Instructions/Nop.cs index 1ea0343c9a..0f6d4b3777 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Nop.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Nop.cs @@ -17,7 +17,7 @@ internal Nop() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Orr.cs b/Source/Mosa.Compiler.ARM32/Instructions/Orr.cs index 1ddf9b89a6..7ec84cfa84 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Orr.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Orr.cs @@ -19,7 +19,7 @@ internal Orr() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/OrrRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/OrrRegShift.cs index 0fb36ec918..70845180ee 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/OrrRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/OrrRegShift.cs @@ -19,7 +19,7 @@ internal OrrRegShift() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Pop.cs b/Source/Mosa.Compiler.ARM32/Instructions/Pop.cs index 3bbf118a80..c928c07483 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Pop.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Pop.cs @@ -17,7 +17,7 @@ internal Pop() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Push.cs b/Source/Mosa.Compiler.ARM32/Instructions/Push.cs index c4a03e55a7..eb85289c37 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Push.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Push.cs @@ -17,7 +17,7 @@ internal Push() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rev.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rev.cs index f06eb7a6a1..36f043ce66 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rev.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rev.cs @@ -17,7 +17,7 @@ internal Rev() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rev16.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rev16.cs index 2bb7f10aa4..4aba9e7814 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rev16.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rev16.cs @@ -17,7 +17,7 @@ internal Rev16() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Revsh.cs b/Source/Mosa.Compiler.ARM32/Instructions/Revsh.cs index 260c4dbf7b..96a3453c74 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Revsh.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Revsh.cs @@ -17,7 +17,7 @@ internal Revsh() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rfc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rfc.cs index a75f849479..b7a44bf9ca 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rfc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rfc.cs @@ -19,7 +19,7 @@ internal Rfc() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rfs.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rfs.cs index e3d77efcfa..c7a17d0830 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rfs.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rfs.cs @@ -19,7 +19,7 @@ internal Rfs() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rmf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rmf.cs index 0b1d41a3ef..4c3574c19e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rmf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rmf.cs @@ -19,7 +19,7 @@ internal Rmf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rnd.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rnd.cs index 37ab76bb9d..0e41bb87c3 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rnd.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rnd.cs @@ -19,7 +19,7 @@ internal Rnd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Ror.cs b/Source/Mosa.Compiler.ARM32/Instructions/Ror.cs index 8e9421fe34..9a4d316182 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Ror.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Ror.cs @@ -19,7 +19,7 @@ internal Ror() public override bool IsCarryFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rsb.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rsb.cs index 8a67e58cc2..e2152b860f 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rsb.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rsb.cs @@ -17,7 +17,7 @@ internal Rsb() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/RsbRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/RsbRegShift.cs index 249ca3e51c..e80c813cf0 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/RsbRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/RsbRegShift.cs @@ -17,7 +17,7 @@ internal RsbRegShift() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rsc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rsc.cs index 87bb43093b..406a587ff8 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rsc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rsc.cs @@ -19,7 +19,7 @@ internal Rsc() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/RscRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/RscRegShift.cs index 06fe1e8ea0..cb2b9b0ec9 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/RscRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/RscRegShift.cs @@ -19,7 +19,7 @@ internal RscRegShift() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Rsf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Rsf.cs index d1a5c409f3..8887b1adbb 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Rsf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Rsf.cs @@ -19,7 +19,7 @@ internal Rsf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/SMlal.cs b/Source/Mosa.Compiler.ARM32/Instructions/SMlal.cs index b6132f5bde..690323af71 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/SMlal.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/SMlal.cs @@ -27,7 +27,7 @@ internal SMlal() public override bool IsSignFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/SMull.cs b/Source/Mosa.Compiler.ARM32/Instructions/SMull.cs index 36ae0d8b97..69d378673a 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/SMull.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/SMull.cs @@ -27,7 +27,7 @@ internal SMull() public override bool IsSignFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Sbc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Sbc.cs index 6dc0637946..97812ef2b7 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Sbc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Sbc.cs @@ -19,7 +19,7 @@ internal Sbc() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/SbcRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/SbcRegShift.cs index 6c8cd27ecb..818114795e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/SbcRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/SbcRegShift.cs @@ -19,7 +19,7 @@ internal SbcRegShift() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Sev.cs b/Source/Mosa.Compiler.ARM32/Instructions/Sev.cs index bf22687288..b1f038c06a 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Sev.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Sev.cs @@ -17,7 +17,7 @@ internal Sev() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Sqt.cs b/Source/Mosa.Compiler.ARM32/Instructions/Sqt.cs index 1c945fc884..a5b01a8b98 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Sqt.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Sqt.cs @@ -19,7 +19,7 @@ internal Sqt() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Stf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Stf.cs index d6161bf0bb..8951d87076 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Stf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Stf.cs @@ -17,7 +17,7 @@ internal Stf() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Stm.cs b/Source/Mosa.Compiler.ARM32/Instructions/Stm.cs index 8e2b5e8f0e..787f944320 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Stm.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Stm.cs @@ -17,7 +17,7 @@ internal Stm() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Str16.cs b/Source/Mosa.Compiler.ARM32/Instructions/Str16.cs index 07b04a19aa..54f39a8711 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Str16.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Str16.cs @@ -17,7 +17,7 @@ internal Str16() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Str32.cs b/Source/Mosa.Compiler.ARM32/Instructions/Str32.cs index b4b988b7c3..b00a3ae611 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Str32.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Str32.cs @@ -17,7 +17,7 @@ internal Str32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Str8.cs b/Source/Mosa.Compiler.ARM32/Instructions/Str8.cs index ae48b85224..ff5d54e2d3 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Str8.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Str8.cs @@ -17,7 +17,7 @@ internal Str8() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/StrS16.cs b/Source/Mosa.Compiler.ARM32/Instructions/StrS16.cs index d2779d3ab1..2abcb29a96 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/StrS16.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/StrS16.cs @@ -17,7 +17,7 @@ internal StrS16() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/StrS8.cs b/Source/Mosa.Compiler.ARM32/Instructions/StrS8.cs index cd1e7bc4b9..ba2773f316 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/StrS8.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/StrS8.cs @@ -17,7 +17,7 @@ internal StrS8() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Sub.cs b/Source/Mosa.Compiler.ARM32/Instructions/Sub.cs index 3f50f4ff6d..9b1e0de757 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Sub.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Sub.cs @@ -19,7 +19,7 @@ internal Sub() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/SubRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/SubRegShift.cs index 50c1534ec8..d56d011216 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/SubRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/SubRegShift.cs @@ -19,7 +19,7 @@ internal SubRegShift() public override bool IsCarryFlagUsed => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Suf.cs b/Source/Mosa.Compiler.ARM32/Instructions/Suf.cs index e7aee13fbe..f8237d8cd4 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Suf.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Suf.cs @@ -19,7 +19,7 @@ internal Suf() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Svc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Svc.cs index 5f3538bcac..67709f40bd 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Svc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Svc.cs @@ -17,7 +17,7 @@ internal Svc() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Swi.cs b/Source/Mosa.Compiler.ARM32/Instructions/Swi.cs index c7d71997d8..eda59cd8e7 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Swi.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Swi.cs @@ -17,7 +17,7 @@ internal Swi() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Sxtb.cs b/Source/Mosa.Compiler.ARM32/Instructions/Sxtb.cs index 92c46380b3..aba02be2f2 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Sxtb.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Sxtb.cs @@ -17,7 +17,7 @@ internal Sxtb() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Sxth.cs b/Source/Mosa.Compiler.ARM32/Instructions/Sxth.cs index 2d6d4ddd9e..b9617d1518 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Sxth.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Sxth.cs @@ -17,7 +17,7 @@ internal Sxth() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Teq.cs b/Source/Mosa.Compiler.ARM32/Instructions/Teq.cs index 23f8549ef9..e52d47782e 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Teq.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Teq.cs @@ -27,7 +27,7 @@ internal Teq() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/TeqRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/TeqRegShift.cs index 48882df962..ed47400b69 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/TeqRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/TeqRegShift.cs @@ -27,7 +27,7 @@ internal TeqRegShift() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Tst.cs b/Source/Mosa.Compiler.ARM32/Instructions/Tst.cs index ca369289c2..5186959d4d 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Tst.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Tst.cs @@ -27,7 +27,7 @@ internal Tst() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/TstRegShift.cs b/Source/Mosa.Compiler.ARM32/Instructions/TstRegShift.cs index 990b5f8e2f..ae0217a573 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/TstRegShift.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/TstRegShift.cs @@ -27,7 +27,7 @@ internal TstRegShift() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/UMlal.cs b/Source/Mosa.Compiler.ARM32/Instructions/UMlal.cs index 83e0013127..e7491e3581 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/UMlal.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/UMlal.cs @@ -27,7 +27,7 @@ internal UMlal() public override bool IsSignFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/UMull.cs b/Source/Mosa.Compiler.ARM32/Instructions/UMull.cs index 033df412b7..d778456160 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/UMull.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/UMull.cs @@ -27,7 +27,7 @@ internal UMull() public override bool IsSignFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Uxtb.cs b/Source/Mosa.Compiler.ARM32/Instructions/Uxtb.cs index 7ab79cf670..5d45c402e1 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Uxtb.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Uxtb.cs @@ -17,7 +17,7 @@ internal Uxtb() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Uxth.cs b/Source/Mosa.Compiler.ARM32/Instructions/Uxth.cs index dea810c3b9..2e86894480 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Uxth.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Uxth.cs @@ -17,7 +17,7 @@ internal Uxth() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Wfc.cs b/Source/Mosa.Compiler.ARM32/Instructions/Wfc.cs index bb70b4d773..8c0d1fa8b7 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Wfc.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Wfc.cs @@ -19,7 +19,7 @@ internal Wfc() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Wfe.cs b/Source/Mosa.Compiler.ARM32/Instructions/Wfe.cs index 14c21b81e6..7cc3656444 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Wfe.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Wfe.cs @@ -17,7 +17,7 @@ internal Wfe() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Wfi.cs b/Source/Mosa.Compiler.ARM32/Instructions/Wfi.cs index a68b43e45e..5a6255b88c 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Wfi.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Wfi.cs @@ -17,7 +17,7 @@ internal Wfi() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Wfs.cs b/Source/Mosa.Compiler.ARM32/Instructions/Wfs.cs index 72a1b04d8b..b0d5d9518d 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Wfs.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Wfs.cs @@ -19,7 +19,7 @@ internal Wfs() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.ARM32/Instructions/Yield.cs b/Source/Mosa.Compiler.ARM32/Instructions/Yield.cs index 306eb17f42..741f1b1fa1 100644 --- a/Source/Mosa.Compiler.ARM32/Instructions/Yield.cs +++ b/Source/Mosa.Compiler.ARM32/Instructions/Yield.cs @@ -17,7 +17,7 @@ internal Yield() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.ARM32/Intrinsic/Mcr.cs b/Source/Mosa.Compiler.ARM32/Intrinsic/Mcr.cs index 51891afed3..a1476b529f 100644 --- a/Source/Mosa.Compiler.ARM32/Intrinsic/Mcr.cs +++ b/Source/Mosa.Compiler.ARM32/Intrinsic/Mcr.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.ARM32.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.ARM32.Intrinsic::Mcr")] - private static void Mcr(Context context, TransformContext transformContext) + private static void Mcr(Context context, Transform transform) { context.SetInstruction(ARM32.Mcr, context.Result, context.Operand1, context.Operand2, context.Operand3, context.Operand4, context.Operand5); } diff --git a/Source/Mosa.Compiler.ARM32/Intrinsic/Mrc.cs b/Source/Mosa.Compiler.ARM32/Intrinsic/Mrc.cs index 40a0c20b65..0595175fea 100644 --- a/Source/Mosa.Compiler.ARM32/Intrinsic/Mrc.cs +++ b/Source/Mosa.Compiler.ARM32/Intrinsic/Mrc.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.ARM32.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.ARM32.Intrinsic::Mrc")] - private static void Mrc(Context context, TransformContext transformContext) + private static void Mrc(Context context, Transform transform) { context.SetInstruction(ARM32.Mcr, context.Result, context.Operand1, context.Operand2, context.Operand3, context.Operand4, context.Operand5); } diff --git a/Source/Mosa.Compiler.ARM32/Intrinsic/Nop.cs b/Source/Mosa.Compiler.ARM32/Intrinsic/Nop.cs index fd78dda50c..0454ed1b20 100644 --- a/Source/Mosa.Compiler.ARM32/Intrinsic/Nop.cs +++ b/Source/Mosa.Compiler.ARM32/Intrinsic/Nop.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.ARM32.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.ARM32.Intrinsic::Nop")] - private static void Nop(Context context, TransformContext transformContext) + private static void Nop(Context context, Transform transform) { context.SetInstruction(ARM32.Nop); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/BaseARM32Transform.cs b/Source/Mosa.Compiler.ARM32/Transforms/BaseARM32Transform.cs index f920a43818..d69f307beb 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/BaseARM32Transform.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/BaseARM32Transform.cs @@ -14,7 +14,7 @@ public BaseARM32Transform(BaseInstruction instruction, TransformType type, bool #region Helpers - public static void ExpandMul(TransformContext transform, Context context) + public static void ExpandMul(Transform transform, Context context) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); @@ -51,7 +51,7 @@ public static void MoveConstantRightForComparison(Context context) context.ConditionCode = context.ConditionCode.GetReverse(); } - public static void Translate(TransformContext transform, Context context, BaseInstruction instruction, bool allowImmediate) + public static void Translate(Transform transform, Context context, BaseInstruction instruction, bool allowImmediate) { var result = context.Result; var operand1 = context.Operand1; @@ -78,7 +78,7 @@ public static void Translate(TransformContext transform, Context context, BaseIn } } - public static void MoveConstantRight(TransformContext transform, Context context) + public static void MoveConstantRight(Transform transform, Context context) { Debug.Assert(context.OperandCount == 2); Debug.Assert(context.Instruction.IsCommutative); @@ -94,7 +94,7 @@ public static void MoveConstantRight(TransformContext transform, Context context } } - public static void TransformLoad(TransformContext transform, Context context, BaseInstruction loadInstruction, Operand result, Operand baseOperand, Operand offsetOperand) + public static void TransformLoad(Transform transform, Context context, BaseInstruction loadInstruction, Operand result, Operand baseOperand, Operand offsetOperand) { baseOperand = MoveConstantToRegister(transform, context, baseOperand); bool upDirection = true; @@ -123,7 +123,7 @@ public static void TransformLoad(TransformContext transform, Context context, Ba context.SetInstruction(loadInstruction, upDirection ? StatusRegister.UpDirection : StatusRegister.DownDirection, result, baseOperand, offsetOperand); } - public static void TransformStore(TransformContext transform, Context context, BaseInstruction storeInstruction, Operand baseOperand, Operand offsetOperand, Operand sourceOperand) + public static void TransformStore(Transform transform, Context context, BaseInstruction storeInstruction, Operand baseOperand, Operand offsetOperand, Operand sourceOperand) { baseOperand = MoveConstantToRegister(transform, context, baseOperand); sourceOperand = MoveConstantToRegister(transform, context, sourceOperand); @@ -154,17 +154,17 @@ public static void TransformStore(TransformContext transform, Context context, B context.SetInstruction(storeInstruction, upDirection ? StatusRegister.UpDirection : StatusRegister.DownDirection, null, baseOperand, offsetOperand, sourceOperand); } - public static Operand MoveConstantToRegister(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToRegister(Transform transform, Context context, Operand operand) { return MoveConstantToRegisterOrImmediate(transform, context, operand, false); } - public static Operand MoveConstantToRegisterOrImmediate(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToRegisterOrImmediate(Transform transform, Context context, Operand operand) { return MoveConstantToRegisterOrImmediate(transform, context, operand, true); } - public static Operand MoveConstantToRegisterOrImmediate(TransformContext transform, Context context, Operand operand, bool allowImmediate) + public static Operand MoveConstantToRegisterOrImmediate(Transform transform, Context context, Operand operand, bool allowImmediate) { if (operand.IsVirtualRegister || operand.IsCPURegister) return operand; @@ -219,17 +219,17 @@ public static Operand MoveConstantToRegisterOrImmediate(TransformContext transfo throw new CompilerException("Error at {context} in {Method}"); } - public static Operand MoveConstantToFloatRegisterOrImmediate(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToFloatRegisterOrImmediate(Transform transform, Context context, Operand operand) { return MoveConstantToFloatRegisterOrImmediate(transform, context, operand, true); } - public static Operand MoveConstantToFloatRegister(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToFloatRegister(Transform transform, Context context, Operand operand) { return MoveConstantToFloatRegisterOrImmediate(transform, context, operand, false); } - public static Operand MoveConstantToFloatRegisterOrImmediate(TransformContext transform, Context context, Operand operand, bool allowImmediate) + public static Operand MoveConstantToFloatRegisterOrImmediate(Transform transform, Context context, Operand operand, bool allowImmediate) { if (operand.IsVirtualRegister || operand.IsCPURegister) return operand; @@ -261,7 +261,7 @@ public static Operand MoveConstantToFloatRegisterOrImmediate(TransformContext tr return v1; } - public static Operand ConvertFloatToImm(TransformContext transform, Operand operand) + public static Operand ConvertFloatToImm(Transform transform, Operand operand) { if (operand.IsCPURegister || operand.IsVirtualRegister || operand.IsUnresolvedConstant) return operand; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Add32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Add32.cs index 48d715c207..e1505e402f 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Add32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Add32.cs @@ -14,9 +14,9 @@ public Add32() : base(IRInstruction.Add32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Add, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Add64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Add64.cs index ad98349eaf..d103e29996 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Add64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Add64.cs @@ -14,7 +14,7 @@ public Add64() : base(IRInstruction.Add64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryIn32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryIn32.cs index 3311264cca..d8212bf988 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryIn32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryIn32.cs @@ -14,7 +14,7 @@ public AddCarryIn32() : base(IRInstruction.AddCarryIn32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryOut32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryOut32.cs index 6b00c41c2d..6f60339425 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryOut32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddCarryOut32.cs @@ -14,7 +14,7 @@ public AddCarryOut32() : base(IRInstruction.AddCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddManagedPointer.cs index 204d34db94..42087c9608 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddManagedPointer.cs @@ -14,7 +14,7 @@ public AddManagedPointer() : base(IRInstruction.AddManagedPointer, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(ARM32.Add); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR4.cs index 3ef1625ed2..cf0640fe10 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR4.cs @@ -14,9 +14,9 @@ public AddR4() : base(IRInstruction.AddR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Adf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR8.cs index e40bd6e79b..a9c7b01086 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddR8.cs @@ -14,9 +14,9 @@ public AddR8() : base(IRInstruction.AddR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Adf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddressOf.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddressOf.cs index 7a32a5e534..8e46c29f4f 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/AddressOf.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/AddressOf.cs @@ -15,7 +15,7 @@ public AddressOf() : base(IRInstruction.AddressOf, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsOnStack || context.Operand1.IsStaticField); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/And32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/And32.cs index 3f7b6c30ab..7926bbe34f 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/And32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/And32.cs @@ -14,9 +14,9 @@ public And32() : base(IRInstruction.And32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.And, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/And64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/And64.cs index a631f4ca74..e2ba6ec04c 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/And64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/And64.cs @@ -14,7 +14,7 @@ public And64() : base(IRInstruction.And64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight32.cs index 21a2da6a3c..9b34dbd105 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight32.cs @@ -14,7 +14,7 @@ public ArithShiftRight32() : base(IRInstruction.ArithShiftRight32, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Asr, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight64.cs index f301411906..eca2bd56ae 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ArithShiftRight64.cs @@ -14,7 +14,7 @@ public ArithShiftRight64() : base(IRInstruction.ArithShiftRight64, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/BaseIRTransform.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/BaseIRTransform.cs index 837e4899d0..ef0bac8981 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/BaseIRTransform.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/BaseIRTransform.cs @@ -12,7 +12,7 @@ public BaseIRTransform(BaseInstruction instruction, TransformType type, bool log #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Branch32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Branch32.cs index c9d5f95d2a..a6ac67edcf 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Branch32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Branch32.cs @@ -14,7 +14,7 @@ public Branch32() : base(IRInstruction.Branch32, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { MoveConstantRightForComparison(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchManagedPointer.cs index daf4eda69b..ecd1632184 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchManagedPointer.cs @@ -14,9 +14,9 @@ public BranchManagedPointer() : base(IRInstruction.BranchManagedPointer, Transfo { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchObject.cs index d06ef8509a..80ac0f0236 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/BranchObject.cs @@ -14,9 +14,9 @@ public BranchObject() : base(IRInstruction.BranchObject, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Call.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Call.cs index 073bae960d..6c0d0f1040 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Call.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Call.cs @@ -14,7 +14,7 @@ public Call() : base(IRInstruction.Call, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (context.Result?.IsInt64 == true) { diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/CallDirect.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/CallDirect.cs index 1194db11de..8984a2eb8b 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/CallDirect.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/CallDirect.cs @@ -14,7 +14,7 @@ public CallDirect() : base(IRInstruction.CallDirect, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Compare32x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Compare32x32.cs index 43311ec1c3..292e3084ae 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Compare32x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Compare32x32.cs @@ -14,7 +14,7 @@ public Compare32x32() : base(IRInstruction.Compare32x32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { MoveConstantRightForComparison(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareManagedPointer.cs index 25e6646f92..bd2ac7994b 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareManagedPointer.cs @@ -14,7 +14,7 @@ public CompareManagedPointer() : base(IRInstruction.CompareManagedPointer, Trans { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { MoveConstantRightForComparison(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareObject.cs index 21c2f8699b..cd30e3c284 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareObject.cs @@ -14,7 +14,7 @@ public CompareObject() : base(IRInstruction.CompareObject, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { MoveConstantRightForComparison(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR4.cs index 9b101e2ff9..b3b440101d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR4.cs @@ -14,7 +14,7 @@ public CompareR4() : base(IRInstruction.CompareR4, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { MoveConstantRightForComparison(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR8.cs index 1326d9102c..be9a39f77c 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/CompareR8.cs @@ -14,7 +14,7 @@ public CompareR8() : base(IRInstruction.CompareR8, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { MoveConstantRightForComparison(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR4.cs index 1eafe939c9..f46e2564d3 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR4.cs @@ -14,7 +14,7 @@ public ConvertI32ToR4() : base(IRInstruction.ConvertI32ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Flt, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR8.cs index dff4fe5213..c908f60cb8 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertI32ToR8.cs @@ -14,7 +14,7 @@ public ConvertI32ToR8() : base(IRInstruction.ConvertI32ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Flt, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR4ToI32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR4ToI32.cs index 9825ad86ae..6809db751d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR4ToI32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR4ToI32.cs @@ -14,7 +14,7 @@ public ConvertR4ToI32() : base(IRInstruction.ConvertR4ToI32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Fix, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR8ToI32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR8ToI32.cs index 136211621c..50fb49e06d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR8ToI32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ConvertR8ToI32.cs @@ -14,7 +14,7 @@ public ConvertR8ToI32() : base(IRInstruction.ConvertR8ToI32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Fix, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR4.cs index af058534df..cfa5ae4f18 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR4.cs @@ -14,7 +14,7 @@ public DivR4() : base(IRInstruction.DivR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Dvf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR8.cs index 302ad9feaa..927fec300d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/DivR8.cs @@ -14,7 +14,7 @@ public DivR8() : base(IRInstruction.DivR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Dvf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/GetHigh32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/GetHigh32.cs index 067ce5c032..e46203ceb0 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/GetHigh32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/GetHigh32.cs @@ -14,7 +14,7 @@ public GetHigh32() : base(IRInstruction.GetHigh32, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out _); transform.SplitOperand(context.Operand1, out _, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/GetLow32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/GetLow32.cs index ff52d7805b..07c972018c 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/GetLow32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/GetLow32.cs @@ -14,7 +14,7 @@ public GetLow32() : base(IRInstruction.GetLow32, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out _); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse32.cs index a7dc92bbc9..f7adfb268a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse32.cs @@ -14,7 +14,7 @@ public IfThenElse32() : base(IRInstruction.IfThenElse32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse64.cs index 3fc1b0ed58..17184681ed 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/IfThenElse64.cs @@ -14,7 +14,7 @@ public IfThenElse64() : base(IRInstruction.IfThenElse64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Jmp.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Jmp.cs index 80b4ba74dd..d2096c68ae 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Jmp.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Jmp.cs @@ -14,7 +14,7 @@ public Jmp() : base(IRInstruction.Jmp, TransformType.Manual | TransformType.Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(ARM32.B); context.ConditionCode = ConditionCode.Always; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Load32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Load32.cs index 8bd0a8e151..acb0a777c2 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Load32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Load32.cs @@ -15,7 +15,7 @@ public Load32() : base(IRInstruction.Load32, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Load64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Load64.cs index 4c68b22a5d..27e1a72b90 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Load64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Load64.cs @@ -14,7 +14,7 @@ public Load64() : base(IRInstruction.Load64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadManagedPointer.cs index eb0cd606fb..7aaabe0824 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadManagedPointer.cs @@ -15,7 +15,7 @@ public LoadManagedPointer() : base(IRInstruction.LoadManagedPointer, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadObject.cs index ba3f0dc137..29b7e5eec2 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadObject.cs @@ -15,7 +15,7 @@ public LoadObject() : base(IRInstruction.LoadObject, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam32.cs index 2637e75c57..626c325f3b 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam32.cs @@ -15,7 +15,7 @@ public LoadParam32() : base(IRInstruction.LoadParam32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam64.cs index 5d578e6492..0040942890 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParam64.cs @@ -14,7 +14,7 @@ public LoadParam64() : base(IRInstruction.LoadParam64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out var highOffset); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamManagedPointer.cs index 94cb3ccf08..69deea6ec1 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamManagedPointer.cs @@ -14,7 +14,7 @@ public LoadParamManagedPointer() : base(IRInstruction.LoadParamManagedPointer, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformLoad(transform, context, ARM32.Ldr32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamObject.cs index 94532b255d..8a7b7d7a72 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamObject.cs @@ -14,7 +14,7 @@ public LoadParamObject() : base(IRInstruction.LoadParamObject, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformLoad(transform, context, ARM32.Ldr32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR4.cs index 4561573f68..ecd745d0a1 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR4.cs @@ -15,7 +15,7 @@ public LoadParamR4() : base(IRInstruction.LoadParamR4, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsConstant); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR8.cs index 42a931b871..93ccc83b94 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamR8.cs @@ -15,7 +15,7 @@ public LoadParamR8() : base(IRInstruction.LoadParamR8, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsConstant); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x32.cs index 8d41b2d407..a491687809 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x32.cs @@ -15,7 +15,7 @@ public LoadParamSignExtend16x32() : base(IRInstruction.LoadParamSignExtend16x32, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x64.cs index 97209beb24..208722e1c5 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend16x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x64() : base(IRInstruction.LoadParamSignExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out var highOffset); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend32x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend32x64.cs index f39911f90e..5b7c911356 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend32x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend32x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend32x64() : base(IRInstruction.LoadParamSignExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out var highOffset); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x32.cs index 2a8cf737ce..30be9c8a79 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x32.cs @@ -15,7 +15,7 @@ public LoadParamSignExtend8x32() : base(IRInstruction.LoadParamSignExtend8x32, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x64.cs index e5679a6b23..ef666597dd 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamSignExtend8x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x64() : base(IRInstruction.LoadParamSignExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out var highOffset); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x32.cs index 471c86a0c9..7f932b5cf2 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x32.cs @@ -15,7 +15,7 @@ public LoadParamZeroExtend16x32() : base(IRInstruction.LoadParamZeroExtend16x32, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x64.cs index 06812c9659..ef7aa1c769 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend16x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x64() : base(IRInstruction.LoadParamZeroExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend32x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend32x64.cs index ff15d64fa9..7f612a7815 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend32x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend32x64() : base(IRInstruction.LoadParamZeroExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x32.cs index a2cd2eebd3..4bd5f85258 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x32.cs @@ -15,7 +15,7 @@ public LoadParamZeroExtend8x32() : base(IRInstruction.LoadParamZeroExtend8x32, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x64.cs index ce54c82ff6..8882201837 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadParamZeroExtend8x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x64() : base(IRInstruction.LoadParamZeroExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR4.cs index dc2cd61959..f4657fd443 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR4.cs @@ -14,7 +14,7 @@ public LoadR4() : base(IRInstruction.LoadR4, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR8.cs index c524a21df2..df3dc521e8 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadR8.cs @@ -14,7 +14,7 @@ public LoadR8() : base(IRInstruction.LoadR8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend16x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend16x32.cs index 20f142792a..0dcaa24279 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend16x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend16x32.cs @@ -15,7 +15,7 @@ public LoadSignExtend16x32() : base(IRInstruction.LoadSignExtend16x32, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend8x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend8x32.cs index 2988070798..63750e9e8d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend8x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadSignExtend8x32.cs @@ -15,7 +15,7 @@ public LoadSignExtend8x32() : base(IRInstruction.LoadSignExtend8x32, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend16x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend16x32.cs index 3aaf6864e6..3c58f302db 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend16x32.cs @@ -15,7 +15,7 @@ public LoadZeroExtend16x32() : base(IRInstruction.LoadZeroExtend16x32, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend8x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend8x32.cs index 841d7a6863..de5a035cce 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/LoadZeroExtend8x32.cs @@ -15,7 +15,7 @@ public LoadZeroExtend8x32() : base(IRInstruction.LoadZeroExtend8x32, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Move32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Move32.cs index f860b34643..402c0523b9 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Move32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Move32.cs @@ -14,7 +14,7 @@ public Move32() : base(IRInstruction.Move32, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Mov, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Move64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Move64.cs index bd8035af15..5fe734a8b6 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Move64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Move64.cs @@ -14,7 +14,7 @@ public Move64() : base(IRInstruction.Move64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveManagedPointer.cs index 0b6ee1af20..484b7a19f1 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveManagedPointer.cs @@ -14,7 +14,7 @@ public MoveManagedPointer() : base(IRInstruction.MoveManagedPointer, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(ARM32.Mov); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveObject.cs index e7f567ae1d..8c45e8f174 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveObject.cs @@ -14,7 +14,7 @@ public MoveObject() : base(IRInstruction.MoveObject, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(ARM32.Mov); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR4.cs index 696dab9174..12df220a30 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR4.cs @@ -14,7 +14,7 @@ public MoveR4() : base(IRInstruction.MoveR4, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Mvf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR8.cs index 48a0e5aaaf..f7010d001a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MoveR8.cs @@ -14,7 +14,7 @@ public MoveR8() : base(IRInstruction.MoveR8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Mvf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR4.cs index d929736233..9ff444690d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR4.cs @@ -14,9 +14,9 @@ public MulR4() : base(IRInstruction.MulR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Muf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR8.cs index fd4bbd829e..95960a4f41 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulR8.cs @@ -14,9 +14,9 @@ public MulR8() : base(IRInstruction.MulR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Muf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned32.cs index e066575393..1f88697c7a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned32.cs @@ -14,9 +14,9 @@ public MulSigned32() : base(IRInstruction.MulSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Mul, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned64.cs index 198b2f12fe..cb6f83fd1f 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulSigned64.cs @@ -14,7 +14,7 @@ public MulSigned64() : base(IRInstruction.MulSigned64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned32.cs index 588fff576c..73574e6a5f 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned32.cs @@ -14,9 +14,9 @@ public MulUnsigned32() : base(IRInstruction.MulUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Mul, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned64.cs index 56b72bea46..eba1a4db22 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/MulUnsigned64.cs @@ -14,7 +14,7 @@ public MulUnsigned64() : base(IRInstruction.MulUnsigned64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Nop.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Nop.cs index b6d8719c9f..533e65b19d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Nop.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Nop.cs @@ -14,7 +14,7 @@ public Nop() : base(IRInstruction.Nop, TransformType.Manual | TransformType.Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Not32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Not32.cs index 917a1cc247..c5325b8344 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Not32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Not32.cs @@ -14,7 +14,7 @@ public Not32() : base(IRInstruction.Not32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Mvn, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Not64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Not64.cs index 8990be481b..8cce7d7225 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Not64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Not64.cs @@ -14,7 +14,7 @@ public Not64() : base(IRInstruction.Not64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Or32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Or32.cs index 9c8c1ebe17..aac8c9632e 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Or32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Or32.cs @@ -14,9 +14,9 @@ public Or32() : base(IRInstruction.Or32, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Orr, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Or64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Or64.cs index b17d5ee372..5a7cdb0e9c 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Or64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Or64.cs @@ -14,7 +14,7 @@ public Or64() : base(IRInstruction.Or64, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft32.cs index 36503878a1..2c95906ba6 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft32.cs @@ -14,7 +14,7 @@ public ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Lsl, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft64.cs index a37ca093a5..078410f469 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftLeft64.cs @@ -14,7 +14,7 @@ public ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight32.cs index 24f8aea80e..45e5bbe0f0 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight32.cs @@ -14,7 +14,7 @@ public ShiftRight32() : base(IRInstruction.ShiftRight32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Lsr, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight64.cs index 329182578b..6bdf00b5a3 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ShiftRight64.cs @@ -14,7 +14,7 @@ public ShiftRight64() : base(IRInstruction.ShiftRight64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x32.cs index 20496785e0..f44e46f710 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x32.cs @@ -14,7 +14,7 @@ public SignExtend16x32() : base(IRInstruction.SignExtend16x32, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Sxth, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x64.cs index f740a14a50..b383d6a0bf 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend16x64.cs @@ -14,7 +14,7 @@ public SignExtend16x64() : base(IRInstruction.SignExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend32x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend32x64.cs index 6d58cf3829..e0cd0a0071 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend32x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend32x64.cs @@ -14,7 +14,7 @@ public SignExtend32x64() : base(IRInstruction.SignExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x32.cs index ef60c21786..890a153d07 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x32.cs @@ -14,7 +14,7 @@ public SignExtend8x32() : base(IRInstruction.SignExtend8x32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Sxth, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x64.cs index 6da1807064..0d305dfd34 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SignExtend8x64.cs @@ -14,7 +14,7 @@ public SignExtend8x64() : base(IRInstruction.SignExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store16.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store16.cs index be920427f1..09deb48997 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store16.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store16.cs @@ -14,7 +14,7 @@ public Store16() : base(IRInstruction.Store16, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str16, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store32.cs index ffb5d55a98..efe5896fd9 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store32.cs @@ -14,7 +14,7 @@ public Store32() : base(IRInstruction.Store32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str32, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store64.cs index 8079431451..9b0e3f655b 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store64.cs @@ -14,7 +14,7 @@ public Store64() : base(IRInstruction.Store64, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand1, out var baseLow, out var baseHigh); transform.SplitOperand(context.Operand2, out var lowOffset, out var highOffset); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store8.cs index 73c225b8fa..9be74207d0 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Store8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Store8.cs @@ -14,7 +14,7 @@ public Store8() : base(IRInstruction.Store8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str8, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreManagedPointer.cs index 0718eae392..c9c8f97ef5 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreManagedPointer.cs @@ -14,7 +14,7 @@ public StoreManagedPointer() : base(IRInstruction.StoreManagedPointer, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformLoad(transform, context, ARM32.Ldr32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreObject.cs index 2e21d8de29..43473c2a9b 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreObject.cs @@ -14,7 +14,7 @@ public StoreObject() : base(IRInstruction.StoreObject, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str32, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam16.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam16.cs index 3003758496..f8e6428f22 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam16.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam16.cs @@ -14,7 +14,7 @@ public StoreParam16() : base(IRInstruction.StoreParam16, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str16, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam32.cs index 0ff7349a5c..4236d2c6cb 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam32.cs @@ -14,7 +14,7 @@ public StoreParam32() : base(IRInstruction.StoreParam32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str32, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam64.cs index cf8df094ec..537d2239ab 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam64.cs @@ -14,7 +14,7 @@ public StoreParam64() : base(IRInstruction.StoreParam64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand1, out var lowOffset, out var highOffset); transform.SplitOperand(context.Operand2, out var valueLow, out var valueHigh); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam8.cs index 3788318590..a04c0052c1 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParam8.cs @@ -14,7 +14,7 @@ public StoreParam8() : base(IRInstruction.StoreParam8, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Str8, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamManagedPointer.cs index a84805805a..9ade5e6fec 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamManagedPointer.cs @@ -14,7 +14,7 @@ public StoreParamManagedPointer() : base(IRInstruction.StoreParamManagedPointer, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(ARM32.Mov, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamObject.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamObject.cs index d826ef7ef6..0bc715236a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamObject.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamObject.cs @@ -14,7 +14,7 @@ public StoreParamObject() : base(IRInstruction.StoreParamObject, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(ARM32.Mov, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR4.cs index c0afe9ebce..a4c7522dd8 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR4.cs @@ -14,7 +14,7 @@ public StoreParamR4() : base(IRInstruction.StoreParamR4, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Stf, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR8.cs index 5191eceeb5..bb34b3e826 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreParamR8.cs @@ -14,7 +14,7 @@ public StoreParamR8() : base(IRInstruction.StoreParamR8, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Stf, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR4.cs index d072b7a07a..cc55e61423 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR4.cs @@ -14,7 +14,7 @@ public StoreR4() : base(IRInstruction.StoreR4, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Stf, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR8.cs index 8025fe30da..ab3aab069b 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/StoreR8.cs @@ -14,7 +14,7 @@ public StoreR8() : base(IRInstruction.StoreR8, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { TransformStore(transform, context, ARM32.Stf, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub32.cs index 984a340aac..34c696d633 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub32.cs @@ -14,7 +14,7 @@ public Sub32() : base(IRInstruction.Sub32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Sub, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub64.cs index 73008b2a32..52b4c1cb70 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Sub64.cs @@ -14,7 +14,7 @@ public Sub64() : base(IRInstruction.Sub64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryIn32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryIn32.cs index 53cad82d33..119babde21 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryIn32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryIn32.cs @@ -14,7 +14,7 @@ public SubCarryIn32() : base(IRInstruction.SubCarryIn32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryOut32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryOut32.cs index 7ade4ec7e3..72f4ec267a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryOut32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubCarryOut32.cs @@ -14,7 +14,7 @@ public SubCarryOut32() : base(IRInstruction.SubCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubManagedPointer.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubManagedPointer.cs index 220b14d783..6e4286c9ed 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubManagedPointer.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubManagedPointer.cs @@ -14,7 +14,7 @@ public SubManagedPointer() : base(IRInstruction.SubManagedPointer, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(ARM32.Sub); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR4.cs index 8509aaf837..cf94068ec1 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR4.cs @@ -14,7 +14,7 @@ public SubR4() : base(IRInstruction.SubR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Suf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR8.cs index e2c986c838..327c41420f 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/SubR8.cs @@ -14,7 +14,7 @@ public SubR8() : base(IRInstruction.SubR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Suf, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/To64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/To64.cs index 283f328f5b..96de0f1479 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/To64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/To64.cs @@ -14,7 +14,7 @@ public To64() : base(IRInstruction.To64, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Truncate64x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Truncate64x32.cs index 9dfd11e6f7..d7845f672a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Truncate64x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Truncate64x32.cs @@ -15,7 +15,7 @@ public Truncate64x32() : base(IRInstruction.Truncate64x32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsInt64); Debug.Assert(!context.Result.IsInt64); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor32.cs index ff9902dfb4..2498442f47 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor32.cs @@ -14,9 +14,9 @@ public Xor32() : base(IRInstruction.Xor32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); Translate(transform, context, ARM32.Eor, true); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor64.cs index 7616d07781..16f672af9d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/Xor64.cs @@ -14,7 +14,7 @@ public Xor64() : base(IRInstruction.Xor64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x32.cs index 73daa19140..856a40fa25 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x32.cs @@ -14,7 +14,7 @@ public ZeroExtend16x32() : base(IRInstruction.ZeroExtend16x32, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Uxth, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x64.cs index 55bad49a14..4399133897 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend16x64.cs @@ -14,7 +14,7 @@ public ZeroExtend16x64() : base(IRInstruction.ZeroExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend32x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend32x64.cs index c08aadb66c..0982a39420 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend32x64.cs @@ -14,7 +14,7 @@ public ZeroExtend32x64() : base(IRInstruction.ZeroExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x32.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x32.cs index f2d6e3a069..1d12f6fa18 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x32.cs @@ -14,7 +14,7 @@ public ZeroExtend8x32() : base(IRInstruction.ZeroExtend8x32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Translate(transform, context, ARM32.Uxtb, false); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x64.cs b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x64.cs index 8f5e0019e7..6c0045c70d 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/IR/ZeroExtend8x64.cs @@ -14,7 +14,7 @@ public ZeroExtend8x64() : base(IRInstruction.ZeroExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopy32ToR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopy32ToR4.cs index 1f31737fa7..c33ffd59e3 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopy32ToR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopy32ToR4.cs @@ -14,12 +14,12 @@ public BitCopy32ToR4() : base(IRInstruction.BitCopy32ToR4, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.ARM32.Math.FloatingPoint", "BitCopyInt32ToFloatR4"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopyR4To32.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopyR4To32.cs index a87f4fbb82..87990a8958 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopyR4To32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/BitCopyR4To32.cs @@ -14,12 +14,12 @@ public BitCopyR4To32() : base(IRInstruction.BitCopyR4To32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.ARM32.Math.FloatingPoint", "BitCopyFloatR4ToInt32"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR4ToR8.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR4ToR8.cs index 0593f77e3e..c7e5720e6a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR4ToR8.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR4ToR8.cs @@ -14,12 +14,12 @@ public ConvertR4ToR8() : base(IRInstruction.ConvertR4ToR8, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.ARM32.Math.FloatingPoint", "FloatToDouble"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR8ToR4.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR8ToR4.cs index f96998fbab..c2faea1a5a 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR8ToR4.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/ConvertR8ToR4.cs @@ -14,12 +14,12 @@ public ConvertR8ToR4() : base(IRInstruction.ConvertR8ToR4, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.ARM32.Math.FloatingPoint", "DoubleToFloat"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned32.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned32.cs index 391f99377b..cb1743c4eb 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned32.cs @@ -14,12 +14,12 @@ public DivSigned32() : base(IRInstruction.DivSigned32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "sdiv32"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned64.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned64.cs index 378b158c81..a444d04287 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivSigned64.cs @@ -14,12 +14,12 @@ public DivSigned64() : base(IRInstruction.DivSigned64, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "sdiv64"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned32.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned32.cs index c2df33535c..509756cbe9 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned32.cs @@ -14,12 +14,12 @@ public DivUnsigned32() : base(IRInstruction.DivUnsigned32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "udiv32"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned64.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned64.cs index 5934b4d342..0612078f07 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/DivUnsigned64.cs @@ -14,12 +14,12 @@ public DivUnsigned64() : base(IRInstruction.DivUnsigned64, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "udiv64"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned32.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned32.cs index 9fd8801fa4..b15d6bc3fd 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned32.cs @@ -14,12 +14,12 @@ public RemSigned32() : base(IRInstruction.RemSigned32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "smod32"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned64.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned64.cs index fb1b210e87..710befa9ec 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemSigned64.cs @@ -14,12 +14,12 @@ public RemSigned64() : base(IRInstruction.RemSigned64, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "smod64"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned32.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned32.cs index 7ac0c5e6f2..d1ea0eeae2 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned32.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned32.cs @@ -14,12 +14,12 @@ public RemUnsigned32() : base(IRInstruction.RemUnsigned32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "umod32"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned64.cs b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned64.cs index fa514caa85..1616da0bbb 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned64.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/RuntimeCall/RemUnsigned64.cs @@ -14,12 +14,12 @@ public RemUnsigned64() : base(IRInstruction.RemUnsigned64, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "umod64"); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/Stack/Epilogue.cs b/Source/Mosa.Compiler.ARM32/Transforms/Stack/Epilogue.cs index df01b70c43..01ebdf79d0 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/Stack/Epilogue.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/Stack/Epilogue.cs @@ -14,12 +14,12 @@ public Epilogue() : base(IRInstruction.Epilogue, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.MethodCompiler.IsLocalStackFinalized; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); diff --git a/Source/Mosa.Compiler.ARM32/Transforms/Stack/Prologue.cs b/Source/Mosa.Compiler.ARM32/Transforms/Stack/Prologue.cs index f177537740..1f5a83aca4 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/Stack/Prologue.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/Stack/Prologue.cs @@ -14,12 +14,12 @@ public Prologue() : base(IRInstruction.Prologue, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.MethodCompiler.IsLocalStackFinalized; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (!transform.MethodCompiler.IsStackFrameRequired) return; diff --git a/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mov.cs b/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mov.cs index 91d3b5e6f3..0c50f2ae6e 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mov.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mov.cs @@ -14,12 +14,12 @@ public Mov() : base(ARM32.Mov, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mvf.cs b/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mvf.cs index 1479e33645..51d4105f23 100644 --- a/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mvf.cs +++ b/Source/Mosa.Compiler.ARM32/Transforms/Tweak/Mvf.cs @@ -14,12 +14,12 @@ public Mvf() : base(ARM32.Mvf, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.ARM64/Architecture.cs b/Source/Mosa.Compiler.ARM64/Architecture.cs index 2cd473afca..4ada888abc 100644 --- a/Source/Mosa.Compiler.ARM64/Architecture.cs +++ b/Source/Mosa.Compiler.ARM64/Architecture.cs @@ -274,7 +274,7 @@ public override bool IsInstructionMove(BaseInstruction instruction) /// The operand. /// /// true if [is parameter store] [the specified context]; otherwise, false. - public override bool IsParameterStore(InstructionNode node, out Operand operand) + public override bool IsParameterStore(Node node, out Operand operand) { // TODO operand = null; @@ -287,7 +287,7 @@ public override bool IsParameterStore(InstructionNode node, out Operand operand) /// The node. /// /// true if [is parameter load] [the specified context]; otherwise, false. - public override bool IsParameterLoad(InstructionNode node, out Operand operand) + public override bool IsParameterLoad(Node node, out Operand operand) { // TODO operand = null; diff --git a/Source/Mosa.Compiler.ARM64/Instructions/Nop.cs b/Source/Mosa.Compiler.ARM64/Instructions/Nop.cs index 7ad4f3c684..77975a6d4b 100644 --- a/Source/Mosa.Compiler.ARM64/Instructions/Nop.cs +++ b/Source/Mosa.Compiler.ARM64/Instructions/Nop.cs @@ -17,7 +17,7 @@ internal Nop() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.ARM64/Intrinsic/Nop.cs b/Source/Mosa.Compiler.ARM64/Intrinsic/Nop.cs index fbab5ce2b1..46c28db962 100644 --- a/Source/Mosa.Compiler.ARM64/Intrinsic/Nop.cs +++ b/Source/Mosa.Compiler.ARM64/Intrinsic/Nop.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.ARM64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.ARM64.Intrinsic::Nop")] - private static void Nop(Context context, TransformContext transformContext) + private static void Nop(Context context, Transform transform) { context.SetInstruction(ARM64.Nop); // TODO } diff --git a/Source/Mosa.Compiler.ARM64/Transforms/BaseARM32Transform.cs b/Source/Mosa.Compiler.ARM64/Transforms/BaseARM32Transform.cs index 7e47e7ebe9..6976f57712 100644 --- a/Source/Mosa.Compiler.ARM64/Transforms/BaseARM32Transform.cs +++ b/Source/Mosa.Compiler.ARM64/Transforms/BaseARM32Transform.cs @@ -14,7 +14,7 @@ public BaseARM32Transform(BaseInstruction instruction, TransformType type, bool #region Helpers - public static void ExpandMul(TransformContext transform, Context context) + public static void ExpandMul(Transform transform, Context context) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); @@ -51,7 +51,7 @@ public static void MoveConstantRightForComparison(Context context) context.ConditionCode = context.ConditionCode.GetReverse(); } - public static void Translate(TransformContext transform, Context context, BaseInstruction instruction, bool allowImmediate) + public static void Translate(Transform transform, Context context, BaseInstruction instruction, bool allowImmediate) { var result = context.Result; var operand1 = context.Operand1; @@ -78,7 +78,7 @@ public static void Translate(TransformContext transform, Context context, BaseIn } } - public static void MoveConstantRight(TransformContext transform, Context context) + public static void MoveConstantRight(Transform transform, Context context) { Debug.Assert(context.OperandCount == 2); Debug.Assert(context.Instruction.IsCommutative); @@ -94,7 +94,7 @@ public static void MoveConstantRight(TransformContext transform, Context context } } - public static void TransformLoad(TransformContext transform, Context context, BaseInstruction loadInstruction, Operand result, Operand baseOperand, Operand offsetOperand) + public static void TransformLoad(Transform transform, Context context, BaseInstruction loadInstruction, Operand result, Operand baseOperand, Operand offsetOperand) { baseOperand = MoveConstantToRegister(transform, context, baseOperand); bool upDirection = true; @@ -123,7 +123,7 @@ public static void TransformLoad(TransformContext transform, Context context, Ba context.SetInstruction(loadInstruction, upDirection ? StatusRegister.UpDirection : StatusRegister.DownDirection, result, baseOperand, offsetOperand); } - public static void TransformStore(TransformContext transform, Context context, BaseInstruction storeInstruction, Operand baseOperand, Operand offsetOperand, Operand sourceOperand) + public static void TransformStore(Transform transform, Context context, BaseInstruction storeInstruction, Operand baseOperand, Operand offsetOperand, Operand sourceOperand) { baseOperand = MoveConstantToRegister(transform, context, baseOperand); sourceOperand = MoveConstantToRegister(transform, context, sourceOperand); @@ -154,17 +154,17 @@ public static void TransformStore(TransformContext transform, Context context, B context.SetInstruction(storeInstruction, upDirection ? StatusRegister.UpDirection : StatusRegister.DownDirection, null, baseOperand, offsetOperand, sourceOperand); } - public static Operand MoveConstantToRegister(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToRegister(Transform transform, Context context, Operand operand) { return MoveConstantToRegisterOrImmediate(transform, context, operand, false); } - public static Operand MoveConstantToRegisterOrImmediate(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToRegisterOrImmediate(Transform transform, Context context, Operand operand) { return MoveConstantToRegisterOrImmediate(transform, context, operand, true); } - public static Operand MoveConstantToRegisterOrImmediate(TransformContext transform, Context context, Operand operand, bool allowImmediate) + public static Operand MoveConstantToRegisterOrImmediate(Transform transform, Context context, Operand operand, bool allowImmediate) { if (operand.IsVirtualRegister || operand.IsCPURegister) return operand; @@ -219,17 +219,17 @@ public static Operand MoveConstantToRegisterOrImmediate(TransformContext transfo throw new CompilerException("Error at {context} in {Method}"); } - public static Operand MoveConstantToFloatRegisterOrImmediate(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToFloatRegisterOrImmediate(Transform transform, Context context, Operand operand) { return MoveConstantToFloatRegisterOrImmediate(transform, context, operand, true); } - public static Operand MoveConstantToFloatRegister(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToFloatRegister(Transform transform, Context context, Operand operand) { return MoveConstantToFloatRegisterOrImmediate(transform, context, operand, false); } - public static Operand MoveConstantToFloatRegisterOrImmediate(TransformContext transform, Context context, Operand operand, bool allowImmediate) + public static Operand MoveConstantToFloatRegisterOrImmediate(Transform transform, Context context, Operand operand, bool allowImmediate) { if (operand.IsVirtualRegister || operand.IsCPURegister) return operand; @@ -261,7 +261,7 @@ public static Operand MoveConstantToFloatRegisterOrImmediate(TransformContext tr return v1; } - public static Operand ConvertFloatToImm(TransformContext transform, Operand operand) + public static Operand ConvertFloatToImm(Transform transform, Operand operand) { if (operand.IsCPURegister || operand.IsVirtualRegister || operand.IsUnresolvedConstant) return operand; diff --git a/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/BaseLivenessAnalysisEnvironment.cs b/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/BaseLivenessAnalysisEnvironment.cs index f3399c0a6f..282941bca9 100644 --- a/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/BaseLivenessAnalysisEnvironment.cs +++ b/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/BaseLivenessAnalysisEnvironment.cs @@ -9,11 +9,11 @@ public abstract class BaseLivenessAnalysisEnvironment { public BasicBlocks BasicBlocks { get; protected set; } - public abstract IEnumerable GetInputs(InstructionNode node); + public abstract IEnumerable GetInputs(Node node); - public abstract IEnumerable GetOutputs(InstructionNode node); + public abstract IEnumerable GetOutputs(Node node); - public abstract IEnumerable GetKills(InstructionNode node); + public abstract IEnumerable GetKills(Node node); public int IndexCount { get; protected set; } } diff --git a/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/GCEnvironment.cs b/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/GCEnvironment.cs index 9e18b400cb..7655ada418 100644 --- a/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/GCEnvironment.cs +++ b/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/GCEnvironment.cs @@ -45,7 +45,7 @@ protected bool ContainsObjectReference(Operand operand) return false; } - public override IEnumerable GetInputs(InstructionNode node) + public override IEnumerable GetInputs(Node node) { if (node.Instruction == IRInstruction.KillAll || node.Instruction == IRInstruction.KillAllExcept || node.Instruction == IRInstruction.Kill) yield break; @@ -59,7 +59,7 @@ public override IEnumerable GetInputs(InstructionNode node) } } - public override IEnumerable GetOutputs(InstructionNode node) + public override IEnumerable GetOutputs(Node node) { if (node.Instruction == IRInstruction.KillAll || node.Instruction == IRInstruction.KillAllExcept || node.Instruction == IRInstruction.Kill) yield break; @@ -73,7 +73,7 @@ public override IEnumerable GetOutputs(InstructionNode node) } } - public override IEnumerable GetKills(InstructionNode node) + public override IEnumerable GetKills(Node node) { if (node.Instruction.IsCall || node.Instruction == IRInstruction.KillAll) { diff --git a/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/RegisterAllocatorEnvironment.cs b/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/RegisterAllocatorEnvironment.cs index 2a56197766..ff6c1ae42d 100644 --- a/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/RegisterAllocatorEnvironment.cs +++ b/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/RegisterAllocatorEnvironment.cs @@ -20,7 +20,7 @@ protected int GetIndex(Operand operand) return operand.IsCPURegister ? operand.Register.Index : operand.Index + PhysicalRegisterCount - 1; } - public override IEnumerable GetInputs(InstructionNode node) + public override IEnumerable GetInputs(Node node) { foreach (var operand in node.Operands) { @@ -34,7 +34,7 @@ public override IEnumerable GetInputs(InstructionNode node) } } - public override IEnumerable GetOutputs(InstructionNode node) + public override IEnumerable GetOutputs(Node node) { foreach (var operand in node.Results) { @@ -48,7 +48,7 @@ public override IEnumerable GetOutputs(InstructionNode node) } } - public override IEnumerable GetKills(InstructionNode node) + public override IEnumerable GetKills(Node node) { if (node.Instruction.IsCall || node.Instruction == IRInstruction.KillAll) { diff --git a/Source/Mosa.Compiler.Framework/Analysis/SparseConditionalConstantPropagation.cs b/Source/Mosa.Compiler.Framework/Analysis/SparseConditionalConstantPropagation.cs index ddc739eb80..d1f7a7f0b0 100644 --- a/Source/Mosa.Compiler.Framework/Analysis/SparseConditionalConstantPropagation.cs +++ b/Source/Mosa.Compiler.Framework/Analysis/SparseConditionalConstantPropagation.cs @@ -213,16 +213,16 @@ public override string ToString() private readonly Dictionary variableStates; - private readonly Stack instructionWorkList; + private readonly Stack instructionWorkList; private readonly Stack blockWorklist; - private readonly HashSet executedStatements; + private readonly HashSet executedStatements; private readonly BasicBlocks BasicBlocks; private readonly CreateTraceHandler CreateTrace; private readonly TraceLog MainTrace; - private readonly KeyedList phiStatements; + private readonly KeyedList phiStatements; private readonly bool Is32BitPlatform; @@ -237,10 +237,10 @@ public SparseConditionalConstantPropagation(BasicBlocks basicBlocks, CreateTrace Is32BitPlatform = is32BitPlatform; variableStates = new Dictionary(); - instructionWorkList = new Stack(); + instructionWorkList = new Stack(); blockWorklist = new Stack(); - phiStatements = new KeyedList(); - executedStatements = new HashSet(); + phiStatements = new KeyedList(); + executedStatements = new HashSet(); MainTrace = CreateTrace("SparseConditionalConstantPropagation", 5); @@ -348,7 +348,7 @@ private void AddExecutionBlock(BasicBlock block) blockWorklist.Push(block); } - private void AddInstruction(InstructionNode node) + private void AddInstruction(Node node) { instructionWorkList.Push(node); } @@ -397,7 +397,7 @@ private void ProcessBlock(BasicBlock block) } } - private void ProcessInstructionsContinuiously(InstructionNode node) + private void ProcessInstructionsContinuiously(Node node) { // instead of adding items to the worklist, the whole block will be processed for (; !node.IsBlockEndInstruction; node = node.Next) @@ -434,7 +434,7 @@ private void ProcessInstructions() } } - private bool ProcessInstruction(InstructionNode node) + private bool ProcessInstruction(Node node) { //MainTrace?.Log(node.ToString()); @@ -630,7 +630,7 @@ private bool ProcessInstruction(InstructionNode node) return null; } - private void CompareOperation(InstructionNode node) + private void CompareOperation(Node node) { var result = GetVariableState(node.Result); @@ -709,7 +709,7 @@ private void SetReferenceNotNull(VariableState variable) AddInstruction(variable); } - private void Jmp(InstructionNode node) + private void Jmp(Node node) { if (node.BranchTargets == null || node.BranchTargetsCount == 0) return; @@ -717,7 +717,7 @@ private void Jmp(InstructionNode node) Branch(node); } - private void Move(InstructionNode node) + private void Move(Node node) { if (!node.Result.IsVirtualRegister) return; @@ -785,7 +785,7 @@ private void CheckAndUpdateNullAssignment(VariableState result, VariableState op } } - private void Call(InstructionNode node) + private void Call(Node node) { if (node.ResultCount == 0) return; @@ -800,7 +800,7 @@ private void Call(InstructionNode node) SetReferenceOverdefined(result); } - private void NewObject(InstructionNode node) + private void NewObject(Node node) { if (node.ResultCount == 0) return; @@ -813,7 +813,7 @@ private void NewObject(InstructionNode node) SetReferenceNotNull(result); } - private void SignOrZeroExtend(InstructionNode node) + private void SignOrZeroExtend(Node node) { var result = GetVariableState(node.Result); @@ -865,7 +865,7 @@ private void SignOrZeroExtend(InstructionNode node) } } - private void IntegerOperation(InstructionNode node) + private void IntegerOperation(Node node) { var result = GetVariableState(node.Result); @@ -1064,14 +1064,14 @@ private static bool SignOrZeroExtend(BaseInstruction instruction, ulong operand1 return false; } - private void Load(InstructionNode node) + private void Load(Node node) { var result = GetVariableState(node.Result); UpdateToOverDefined(result); SetReferenceOverdefined(result); } - private void AddressOf(InstructionNode node) + private void AddressOf(Node node) { var result = GetVariableState(node.Result); var operand1 = GetVariableState(node.Operand1); @@ -1082,7 +1082,7 @@ private void AddressOf(InstructionNode node) SetReferenceOverdefined(operand1); } - private void FinallyStart(InstructionNode node) + private void FinallyStart(Node node) { var result = GetVariableState(node.Result); @@ -1090,7 +1090,7 @@ private void FinallyStart(InstructionNode node) SetReferenceOverdefined(result); } - private void Default(InstructionNode node) + private void Default(Node node) { if (node.ResultCount == 0) return; @@ -1109,7 +1109,7 @@ private void Default(InstructionNode node) } } - private bool CompareBranch(InstructionNode node) + private bool CompareBranch(Node node) { var operand1 = GetVariableState(node.Operand1); var operand2 = GetVariableState(node.Operand2); @@ -1242,7 +1242,7 @@ private bool CompareBranch(InstructionNode node) }; } - private void Branch(InstructionNode node) + private void Branch(Node node) { //Debug.Assert(node.BranchTargets.Length == 1); @@ -1252,13 +1252,13 @@ private void Branch(InstructionNode node) } } - private void Switch(InstructionNode node) + private void Switch(Node node) { // no optimization attempted Branch(node); } - private void IfThenElse(InstructionNode node) + private void IfThenElse(Node node) { MainTrace?.Log(node.ToString()); @@ -1300,7 +1300,7 @@ private void IfThenElse(InstructionNode node) } } - private void Phi(InstructionNode node) + private void Phi(Node node) { MainTrace?.Log(node.ToString()); diff --git a/Source/Mosa.Compiler.Framework/BaseArchitecture.cs b/Source/Mosa.Compiler.Framework/BaseArchitecture.cs index c34cf15795..fbdb95b8cd 100644 --- a/Source/Mosa.Compiler.Framework/BaseArchitecture.cs +++ b/Source/Mosa.Compiler.Framework/BaseArchitecture.cs @@ -201,7 +201,7 @@ protected BaseArchitecture() /// The node. /// /// true if [is parameter store] [the specified context]; otherwise, false. - public abstract bool IsParameterStore(InstructionNode node, out Operand operand); + public abstract bool IsParameterStore(Node node, out Operand operand); /// /// Determines whether [is parameter load] [the specified context]. @@ -209,7 +209,7 @@ protected BaseArchitecture() /// The node. /// /// true if [is parameter load] [the specified context]; otherwise, false. - public abstract bool IsParameterLoad(InstructionNode node, out Operand operand); + public abstract bool IsParameterLoad(Node node, out Operand operand); /// /// Gets the platform intrinsic method. diff --git a/Source/Mosa.Compiler.Framework/BaseBlockTransform.cs b/Source/Mosa.Compiler.Framework/BaseBlockTransform.cs index 3e143f8ffa..c286643026 100644 --- a/Source/Mosa.Compiler.Framework/BaseBlockTransform.cs +++ b/Source/Mosa.Compiler.Framework/BaseBlockTransform.cs @@ -29,7 +29,7 @@ public BaseBlockTransform(bool log = false) #region Abstract Methods - public abstract int Process(TransformContext transformContext); + public abstract int Process(Transform transform); #endregion Abstract Methods diff --git a/Source/Mosa.Compiler.Framework/BaseInstruction.cs b/Source/Mosa.Compiler.Framework/BaseInstruction.cs index 1673b9b32b..44f971a5f2 100644 --- a/Source/Mosa.Compiler.Framework/BaseInstruction.cs +++ b/Source/Mosa.Compiler.Framework/BaseInstruction.cs @@ -198,7 +198,7 @@ protected BaseInstruction(byte resultCount, byte operandCount) #region Methods - public virtual void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public virtual void Emit(Node node, OpcodeEncoder opcodeEncoder) { return; } diff --git a/Source/Mosa.Compiler.Framework/BaseMethodCompilerStage.cs b/Source/Mosa.Compiler.Framework/BaseMethodCompilerStage.cs index 2586964997..5ebf03fc6f 100644 --- a/Source/Mosa.Compiler.Framework/BaseMethodCompilerStage.cs +++ b/Source/Mosa.Compiler.Framework/BaseMethodCompilerStage.cs @@ -181,7 +181,7 @@ public abstract class BaseMethodCompilerStage #endregion Method Properties - public TransformContext TransformContext { get; private set; } + public Transform Transform { get; private set; } #region Methods @@ -214,7 +214,7 @@ public void Setup(MethodCompiler methodCompiler, int position) { MethodCompiler = methodCompiler; BasicBlocks = methodCompiler.BasicBlocks; - TransformContext = methodCompiler.TransformContext; + Transform = methodCompiler.Transform; traceLogs = new List(); @@ -342,7 +342,7 @@ protected Context[] CreateNewBlockContexts(int blocks, int instructionLabel) /// /// The node. /// - protected BasicBlock Split(InstructionNode node) + protected BasicBlock Split(Node node) { var newblock = BasicBlocks.CreateBlock(-1, node.Label); diff --git a/Source/Mosa.Compiler.Framework/BaseTransform.cs b/Source/Mosa.Compiler.Framework/BaseTransform.cs index 8671408226..ea080dfb72 100644 --- a/Source/Mosa.Compiler.Framework/BaseTransform.cs +++ b/Source/Mosa.Compiler.Framework/BaseTransform.cs @@ -63,9 +63,9 @@ int IComparable.CompareTo(BaseTransform other) #region Abstract Methods - public abstract bool Match(Context context, TransformContext transform); + public abstract bool Match(Context context, Transform transform); - public abstract void Transform(Context context, TransformContext transform); + public abstract void Transform(Context context, Transform transform); #endregion Abstract Methods @@ -758,17 +758,17 @@ public static TriState AreAnyStatusFlagsUsed(Context context) return AreAnyStatusFlagsUsed(context.Node); } - public static TriState AreAnyStatusFlagsUsed(InstructionNode node) + public static TriState AreAnyStatusFlagsUsed(Node node) { return AreStatusFlagsUsed(node.Next, true, true, true, true, true); } - public static TriState IsCarryFlagUsed(InstructionNode node) + public static TriState IsCarryFlagUsed(Node node) { return AreStatusFlagsUsed(node.Next, false, true, false, false, false); } - public static TriState AreStatusFlagsUsed(BaseInstruction instruction, InstructionNode node) + public static TriState AreStatusFlagsUsed(BaseInstruction instruction, Node node) { return AreStatusFlagsUsed(node.Next, instruction.IsZeroFlagModified, @@ -778,7 +778,7 @@ public static TriState AreStatusFlagsUsed(BaseInstruction instruction, Instructi instruction.IsParityFlagModified); } - public static TriState AreStatusFlagsUsed(InstructionNode node, bool checkZero, bool checkCarry, bool checkSign, bool checkOverlow, bool checkParity) + public static TriState AreStatusFlagsUsed(Node node, bool checkZero, bool checkCarry, bool checkSign, bool checkOverlow, bool checkParity) { // if none are being checked, then for sure it's a no if (!checkZero && !checkCarry && !checkSign && !checkOverlow && !checkParity) @@ -851,12 +851,12 @@ public static TriState AreStatusFlagsUsed(InstructionNode node, bool checkZero, #region Navigation - protected static InstructionNode GetPreviousNodeUntil(Context context, BaseInstruction untilInstruction, int window, Operand operand1 = null, Operand operand2 = null) + protected static Node GetPreviousNodeUntil(Context context, BaseInstruction untilInstruction, int window, Operand operand1 = null, Operand operand2 = null) { return GetPreviousNodeUntil(context, untilInstruction, window, out _, operand1, operand2); } - protected static InstructionNode GetPreviousNodeUntil(Context context, BaseInstruction untilInstruction, int window, out bool immediate, Operand operand1 = null, Operand operand2 = null) + protected static Node GetPreviousNodeUntil(Context context, BaseInstruction untilInstruction, int window, out bool immediate, Operand operand1 = null, Operand operand2 = null) { var previous = context.Node.Previous; var count = 0; @@ -907,12 +907,12 @@ protected static InstructionNode GetPreviousNodeUntil(Context context, BaseInstr return null; } - protected static InstructionNode GetNextNodeUntil(Context context, BaseInstruction untilInstruction, int window, Operand operand = null) + protected static Node GetNextNodeUntil(Context context, BaseInstruction untilInstruction, int window, Operand operand = null) { return GetNextNodeUntil(context, untilInstruction, window, out _, operand); } - protected static InstructionNode GetNextNodeUntil(Context context, BaseInstruction untilInstruction, int window, out bool immediate, Operand operand = null) + protected static Node GetNextNodeUntil(Context context, BaseInstruction untilInstruction, int window, out bool immediate, Operand operand = null) { var next = context.Node.Next; var count = 0; diff --git a/Source/Mosa.Compiler.Framework/BasicBlock.cs b/Source/Mosa.Compiler.Framework/BasicBlock.cs index 4bf9e674f7..cc1ed12b1a 100644 --- a/Source/Mosa.Compiler.Framework/BasicBlock.cs +++ b/Source/Mosa.Compiler.Framework/BasicBlock.cs @@ -21,7 +21,7 @@ public sealed class BasicBlock : IComparable /// /// The branch instructions /// - private readonly List branchInstructions = new List(2); + private readonly List branchInstructions = new List(2); #endregion Data Fields @@ -30,22 +30,22 @@ public sealed class BasicBlock : IComparable /// /// Gets the first instruction node. /// - public InstructionNode First { get; } + public Node First { get; } /// /// Gets the last instruction node. /// - public InstructionNode Last { get; } + public Node Last { get; } /// /// Gets the before last instruction node. /// - public InstructionNode BeforeLast => Last.Previous; + public Node BeforeLast => Last.Previous; /// /// Gets the instruction after the first instruction. /// - public InstructionNode AfterFirst => First.Next; + public Node AfterFirst => First.Next; /// /// Retrieves the label, which uniquely identifies this block. @@ -112,7 +112,7 @@ public sealed class BasicBlock : IComparable public Context ContextBeforeBranch => new Context(BeforeBranch); - public InstructionNode BeforeBranch + public Node BeforeBranch { get { @@ -148,19 +148,19 @@ internal BasicBlock(int sequence, int blockLabel, int instructionLabel) Label = blockLabel; Sequence = sequence; - First = new InstructionNode(IRInstruction.BlockStart) + First = new Node(IRInstruction.BlockStart) { Label = instructionLabel, Block = this }; - var middle = new InstructionNode + var middle = new Node { Label = instructionLabel, Block = this }; - Last = new InstructionNode(IRInstruction.BlockEnd) + Last = new Node(IRInstruction.BlockEnd) { Label = instructionLabel, Block = this, @@ -177,7 +177,7 @@ internal BasicBlock(int sequence, int blockLabel, int instructionLabel) #region Methods - internal void AddBranchInstruction(InstructionNode node) + internal void AddBranchInstruction(Node node) { if (node.Instruction?.IgnoreInstructionBasicBlockTargets == true) return; @@ -200,7 +200,7 @@ internal void AddBranchInstruction(InstructionNode node) } } - internal void RemoveBranchInstruction(InstructionNode node) + internal void RemoveBranchInstruction(Node node) { if (node.BranchTargets == null || node.BranchTargetsCount == 0) return; diff --git a/Source/Mosa.Compiler.Framework/Context.cs b/Source/Mosa.Compiler.Framework/Context.cs index a6145f7032..245ea9da1e 100644 --- a/Source/Mosa.Compiler.Framework/Context.cs +++ b/Source/Mosa.Compiler.Framework/Context.cs @@ -17,7 +17,7 @@ public sealed class Context /// /// The node. /// - public InstructionNode Node { get; set; } + public Node Node { get; set; } /// /// Gets or sets the basic block currently processed. @@ -198,7 +198,7 @@ public List PhiBlocks /// Initializes a new instance of the class. /// /// The instruction node. - public Context(InstructionNode instructionNode) + public Context(Node instructionNode) { Node = instructionNode; } @@ -255,7 +255,7 @@ private void AppendInstruction() Debug.Assert(!IsBlockEndInstruction); Debug.Assert(Block != null); - var node = new InstructionNode + var node = new Node { Label = Label }; @@ -272,7 +272,7 @@ public Context InsertBefore() { Debug.Assert(!IsBlockStartInstruction); - var node = new InstructionNode + var node = new Node { Label = Label }; @@ -289,7 +289,7 @@ public Context InsertAfter() { Debug.Assert(!IsBlockStartInstruction); - var node = new InstructionNode + var node = new Node { Label = Label }; diff --git a/Source/Mosa.Compiler.Framework/DelegatePatcher.cs b/Source/Mosa.Compiler.Framework/DelegatePatcher.cs index 5b4623a099..735918cb2e 100644 --- a/Source/Mosa.Compiler.Framework/DelegatePatcher.cs +++ b/Source/Mosa.Compiler.Framework/DelegatePatcher.cs @@ -175,7 +175,7 @@ private static void PatchEndInvoke(MethodCompiler methodCompiler) { var start = CreateMethodStructure(methodCompiler); - start.First.Insert(new InstructionNode(IRInstruction.Jmp, methodCompiler.BasicBlocks.EpilogueBlock)); + start.First.Insert(new Node(IRInstruction.Jmp, methodCompiler.BasicBlocks.EpilogueBlock)); } private static BasicBlock CreateMethodStructure(MethodCompiler methodCompiler) diff --git a/Source/Mosa.Compiler.Framework/InstructionTrace.cs b/Source/Mosa.Compiler.Framework/InstructionTrace.cs index b2af4006ba..bdc046b272 100644 --- a/Source/Mosa.Compiler.Framework/InstructionTrace.cs +++ b/Source/Mosa.Compiler.Framework/InstructionTrace.cs @@ -59,7 +59,7 @@ private static string ListBlocks(IList blocks) /// /// The trace log. /// The context. - private static void LogInstructions(TraceLog traceLog, InstructionNode node) + private static void LogInstructions(TraceLog traceLog, Node node) { for (; !node.IsBlockEndInstruction; node = node.Next) { diff --git a/Source/Mosa.Compiler.Framework/IntrinsicMethodAttribute.cs b/Source/Mosa.Compiler.Framework/IntrinsicMethodAttribute.cs index b03424b6a0..3f5e71a103 100644 --- a/Source/Mosa.Compiler.Framework/IntrinsicMethodAttribute.cs +++ b/Source/Mosa.Compiler.Framework/IntrinsicMethodAttribute.cs @@ -4,7 +4,7 @@ namespace Mosa.Compiler.Framework; -public delegate void IntrinsicMethodDelegate(Context context, TransformContext transformContext); +public delegate void IntrinsicMethodDelegate(Context context, Transform transform); /// /// Used for defining targets when using intrinsic replacements diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/CreateInstanceSimple.cs b/Source/Mosa.Compiler.Framework/Intrinsics/CreateInstanceSimple.cs index d92949c328..b7059b1f0d 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/CreateInstanceSimple.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/CreateInstanceSimple.cs @@ -8,7 +8,7 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::CreateInstanceSimple")] - private static void CreateInstanceSimple(Context context, TransformContext transformContext) + private static void CreateInstanceSimple(Context context, Transform transform) { var ctor = context.Operand1; var thisObject = context.Operand2; diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetAssemblyListTable.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetAssemblyListTable.cs index 503cb668b6..c81026fcd1 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetAssemblyListTable.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetAssemblyListTable.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetAssemblyListTable")] - private static void GetAssemblyListTable(Context context, TransformContext transformContext) + private static void GetAssemblyListTable(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.AssembliesTable, transformContext.Is32BitPlatform)); + context.SetInstruction(transform.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.AssembliesTable, transform.Is32BitPlatform)); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetBootOptions.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetBootOptions.cs index 694f1b323c..82fde436d3 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetBootOptions.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetBootOptions.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetBootOptions")] - private static void GetBootOptions(Context context, TransformContext transformContext) + private static void GetBootOptions(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.BootOptions, transformContext.Is32BitPlatform)); + context.SetInstruction(transform.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.BootOptions, transform.Is32BitPlatform)); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateMethodAddress.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateMethodAddress.cs index 9fdc18620c..e24322f5e4 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateMethodAddress.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateMethodAddress.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetDelegateMethodAddress")] - private static void GetDelegateMethodAddress(Context context, TransformContext transformContext) + private static void GetDelegateMethodAddress(Context context, Transform transform) { - context.SetInstruction(transformContext.LoadInstruction, context.Result, context.Operand1, transformContext.ConstantZero); + context.SetInstruction(transform.LoadInstruction, context.Result, context.Operand1, transform.ConstantZero); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateTargetAddress.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateTargetAddress.cs index fc3668046e..a8570adc75 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateTargetAddress.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetDelegateTargetAddress.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetDelegateTargetAddress")] - private static void GetDelegateTargetAddress(Context context, TransformContext transformContext) + private static void GetDelegateTargetAddress(Context context, Transform transform) { - context.SetInstruction(transformContext.LoadInstruction, context.Result, context.Operand1, Operand.CreateConstant32(transformContext.Architecture.NativePointerSize)); + context.SetInstruction(transform.LoadInstruction, context.Result, context.Operand1, Operand.CreateConstant32(transform.Architecture.NativePointerSize)); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetExceptionRegister.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetExceptionRegister.cs index 2d70f688fe..50c4900e8d 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetExceptionRegister.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetExceptionRegister.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetExceptionRegister")] - private static void GetExceptionRegister(Context context, TransformContext transformContext) + private static void GetExceptionRegister(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, transformContext.Compiler.ExceptionRegister); + context.SetInstruction(transform.MoveInstruction, context.Result, transform.Compiler.ExceptionRegister); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodExceptionLookupTable.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodExceptionLookupTable.cs index e31c6fa273..4c1dc71a6e 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodExceptionLookupTable.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodExceptionLookupTable.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetMethodExceptionLookupTable")] - private static void GetMethodExceptionLookupTable(Context context, TransformContext transformContext) + private static void GetMethodExceptionLookupTable(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.MethodExceptionLookupTable, transformContext.Is32BitPlatform)); + context.SetInstruction(transform.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.MethodExceptionLookupTable, transform.Is32BitPlatform)); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodLookupTable.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodLookupTable.cs index 378cd27c9e..4550a414ed 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodLookupTable.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetMethodLookupTable.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetMethodLookupTable")] - private static void GetMethodLookupTable(Context context, TransformContext transformContext) + private static void GetMethodLookupTable(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.MethodLookupTable, transformContext.Is32BitPlatform)); + context.SetInstruction(transform.MoveInstruction, context.Result, Operand.CreateLabel(Metadata.MethodLookupTable, transform.Is32BitPlatform)); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectAddress.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectAddress.cs index 3054b64e35..712e5baf14 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectAddress.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectAddress.cs @@ -9,7 +9,7 @@ internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetObjectAddress")] [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetValueTypeAddress")] - private static void GetObjectAddress(Context context, TransformContext transformContext) + private static void GetObjectAddress(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; @@ -27,6 +27,6 @@ private static void GetObjectAddress(Context context, TransformContext transform def.Empty(); } - context.SetInstruction(transformContext.MoveInstruction, result, operand1); + context.SetInstruction(transform.MoveInstruction, result, operand1); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectFromAddress.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectFromAddress.cs index ddd987af13..cf7804afb7 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectFromAddress.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetObjectFromAddress.cs @@ -8,7 +8,7 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetObjectFromAddress")] - private static void GetObjectFromAddress(Context context, TransformContext transformContext) + private static void GetObjectFromAddress(Context context, Transform transform) { context.SetInstruction(IRInstruction.MoveObject, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetStackFrame.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetStackFrame.cs index 3752837071..da8525e402 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetStackFrame.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetStackFrame.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetStackFrame")] - private static void GetStackFrame(Context context, TransformContext transformContext) + private static void GetStackFrame(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, transformContext.Compiler.StackFrame); + context.SetInstruction(transform.MoveInstruction, context.Result, transform.Compiler.StackFrame); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetStackPointer.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetStackPointer.cs index 44d3789943..1df309ba2b 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetStackPointer.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetStackPointer.cs @@ -8,8 +8,8 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetStackPointer")] - private static void GetStackPointer(Context context, TransformContext transformContext) + private static void GetStackPointer(Context context, Transform transform) { - context.SetInstruction(transformContext.MoveInstruction, context.Result, transformContext.Compiler.StackPointer); + context.SetInstruction(transform.MoveInstruction, context.Result, transform.Compiler.StackPointer); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/GetStringType.cs b/Source/Mosa.Compiler.Framework/Intrinsics/GetStringType.cs index 8cd5fee132..f17f79b0eb 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/GetStringType.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/GetStringType.cs @@ -8,12 +8,12 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::GetStringType")] - private static void GetStringType(Context context, TransformContext transformContext) + private static void GetStringType(Context context, Transform transform) { var result = context.Result; - var typeDef = Operand.CreateLabel(Metadata.TypeDefinition + "System.String", transformContext.Is32BitPlatform); + var typeDef = Operand.CreateLabel(Metadata.TypeDefinition + "System.String", transform.Is32BitPlatform); - context.SetInstruction(transformContext.MoveInstruction, result, typeDef); + context.SetInstruction(transform.MoveInstruction, result, typeDef); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Load16.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Load16.cs index 437dc19145..0ea3d2159e 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Load16.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Load16.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Load16")] - private static void Load16(Context context, TransformContext transformContext) + private static void Load16(Context context, Transform transform) { - var instruction = transformContext.Is32BitPlatform ? IRInstruction.LoadZeroExtend16x32 : IRInstruction.LoadZeroExtend16x64; + var instruction = transform.Is32BitPlatform ? IRInstruction.LoadZeroExtend16x32 : IRInstruction.LoadZeroExtend16x64; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Load32.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Load32.cs index 74bcccb975..c7fe6d9990 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Load32.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Load32.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Load32")] - private static void Load32(Context context, TransformContext transformContext) + private static void Load32(Context context, Transform transform) { - var instruction = transformContext.Is32BitPlatform ? IRInstruction.Load32 : IRInstruction.LoadZeroExtend32x64; + var instruction = transform.Is32BitPlatform ? IRInstruction.Load32 : IRInstruction.LoadZeroExtend32x64; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Load64.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Load64.cs index f13be4c6e2..2843ff3b82 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Load64.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Load64.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Load64")] - private static void Load64(Context context, TransformContext transformContext) + private static void Load64(Context context, Transform transform) { var instruction = IRInstruction.Load64; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Load8.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Load8.cs index 9863d2557c..a7d7a50a29 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Load8.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Load8.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Load8")] - private static void Load8(Context context, TransformContext transformContext) + private static void Load8(Context context, Transform transform) { - var instruction = transformContext.Is32BitPlatform ? IRInstruction.LoadZeroExtend8x32 : IRInstruction.LoadZeroExtend8x64; + var instruction = transform.Is32BitPlatform ? IRInstruction.LoadZeroExtend8x32 : IRInstruction.LoadZeroExtend8x64; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/LoadPointer.cs b/Source/Mosa.Compiler.Framework/Intrinsics/LoadPointer.cs index bbd1d5320d..9bdd32abd5 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/LoadPointer.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/LoadPointer.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::LoadPointer")] - private static void LoadPointer(Context context, TransformContext transformContext) + private static void LoadPointer(Context context, Transform transform) { - var instruction = transformContext.Is32BitPlatform ? IRInstruction.Load32 : IRInstruction.LoadZeroExtend32x64; + var instruction = transform.Is32BitPlatform ? IRInstruction.Load32 : IRInstruction.LoadZeroExtend32x64; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/LoadR4.cs b/Source/Mosa.Compiler.Framework/Intrinsics/LoadR4.cs index b7ff660f1b..03307ab243 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/LoadR4.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/LoadR4.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::LoadR4")] - private static void LoadR4(Context context, TransformContext transformContext) + private static void LoadR4(Context context, Transform transform) { var instruction = IRInstruction.LoadR4; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/LoadR8.cs b/Source/Mosa.Compiler.Framework/Intrinsics/LoadR8.cs index 1b605b4502..cdc0b55f6b 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/LoadR8.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/LoadR8.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::LoadR8")] - private static void LoadR8(Context context, TransformContext transformContext) + private static void LoadR8(Context context, Transform transform) { var instruction = IRInstruction.LoadR8; var result = context.Result; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 2 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 2 ? context.Operand2 : transform.ConstantZero; - LoadStore.Set(context, transformContext, instruction, result, operand1, operand2); + LoadStore.Set(context, transform, instruction, result, operand1, operand2); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Store16.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Store16.cs index 3cfb200240..591d1f2cec 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Store16.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Store16.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Store16")] - private static void Store16(Context context, TransformContext transformContext) + private static void Store16(Context context, Transform transform) { var instruction = IRInstruction.Store16; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Store32.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Store32.cs index d9a2b0ca19..d4b47e4a01 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Store32.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Store32.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Store32")] - private static void Store32(Context context, TransformContext transformContext) + private static void Store32(Context context, Transform transform) { var instruction = IRInstruction.Store32; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Store64.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Store64.cs index f7c6492743..b381163744 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Store64.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Store64.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Store64")] - private static void Store64(Context context, TransformContext transformContext) + private static void Store64(Context context, Transform transform) { var instruction = IRInstruction.Store64; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/Store8.cs b/Source/Mosa.Compiler.Framework/Intrinsics/Store8.cs index c5f125da71..9ed3e87b9c 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/Store8.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/Store8.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::Store8")] - private static void Store8(Context context, TransformContext transformContext) + private static void Store8(Context context, Transform transform) { var instruction = IRInstruction.Store8; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/StorePointer.cs b/Source/Mosa.Compiler.Framework/Intrinsics/StorePointer.cs index fcff76a4e1..373247d199 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/StorePointer.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/StorePointer.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::StorePointer")] - private static void StorePointer(Context context, TransformContext transformContext) + private static void StorePointer(Context context, Transform transform) { - var instruction = transformContext.Is32BitPlatform ? IRInstruction.Store32 : IRInstruction.Store64; + var instruction = transform.Is32BitPlatform ? IRInstruction.Store32 : IRInstruction.Store64; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/StoreR4.cs b/Source/Mosa.Compiler.Framework/Intrinsics/StoreR4.cs index a336022ce8..4a33d822b5 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/StoreR4.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/StoreR4.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::StoreR4")] - private static void StoreR4(Context context, TransformContext transformContext) + private static void StoreR4(Context context, Transform transform) { var instruction = IRInstruction.StoreR4; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/StoreR8.cs b/Source/Mosa.Compiler.Framework/Intrinsics/StoreR8.cs index 7529e81136..2e8a3ffec7 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/StoreR8.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/StoreR8.cs @@ -8,14 +8,14 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::StoreR8")] - private static void StoreR8(Context context, TransformContext transformContext) + private static void StoreR8(Context context, Transform transform) { var instruction = IRInstruction.StoreR8; var operand1 = context.Operand1; - var operand2 = context.OperandCount == 3 ? context.Operand2 : transformContext.ConstantZero; + var operand2 = context.OperandCount == 3 ? context.Operand2 : transform.ConstantZero; var operand3 = context.OperandCount == 3 ? context.Operand3 : context.Operand2; - LoadStore.Set(context, transformContext, instruction, null, operand1, operand2, operand3); + LoadStore.Set(context, transform, instruction, null, operand1, operand2, operand3); } } diff --git a/Source/Mosa.Compiler.Framework/Intrinsics/SuppressStackFrame.cs b/Source/Mosa.Compiler.Framework/Intrinsics/SuppressStackFrame.cs index a5c4236819..3bffa208d4 100644 --- a/Source/Mosa.Compiler.Framework/Intrinsics/SuppressStackFrame.cs +++ b/Source/Mosa.Compiler.Framework/Intrinsics/SuppressStackFrame.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Runtime.Intrinsic::SuppressStackFrame")] - private static void SurpressStackFrame(Context context, TransformContext transformContext) + private static void SurpressStackFrame(Context context, Transform transform) { - transformContext.MethodCompiler.IsStackFrameRequired = false; + transform.MethodCompiler.IsStackFrameRequired = false; context.Empty(); } } diff --git a/Source/Mosa.Compiler.Framework/LoadStore.cs b/Source/Mosa.Compiler.Framework/LoadStore.cs index 16ff92f45b..8f6fa886f1 100644 --- a/Source/Mosa.Compiler.Framework/LoadStore.cs +++ b/Source/Mosa.Compiler.Framework/LoadStore.cs @@ -7,15 +7,15 @@ namespace Mosa.Compiler.Framework; /// public static class LoadStore { - public static void Set(Context context, TransformContext transformContext, BaseInstruction instruction, Operand result, Operand operand1, Operand operand2, Operand operand3 = null) + public static void Set(Context context, Transform transform, BaseInstruction instruction, Operand result, Operand operand1, Operand operand2, Operand operand3 = null) { if (operand1.IsResolvedConstant && operand2.IsResolvedConstant) { - operand1 = transformContext.Is32BitPlatform + operand1 = transform.Is32BitPlatform ? Operand.CreateConstant32(operand1.ConstantUnsigned32 + operand2.ConstantUnsigned32) : Operand.CreateConstant64(operand1.ConstantUnsigned64 + operand2.ConstantUnsigned64); - operand2 = transformContext.ConstantZero; + operand2 = transform.ConstantZero; } else if (operand1.IsConstant && !operand2.IsConstant) { @@ -24,18 +24,18 @@ public static void Set(Context context, TransformContext transformContext, BaseI operand2 = swap; } - if (transformContext.Is32BitPlatform) + if (transform.Is32BitPlatform) { if (operand1.IsInt64) { - var low = transformContext.VirtualRegisters.Allocate32(); + var low = transform.VirtualRegisters.Allocate32(); context.InsertBefore().SetInstruction(IRInstruction.GetLow32, low, operand1); operand1 = low; } if (operand2.IsInt64) { - var low = transformContext.VirtualRegisters.Allocate32(); + var low = transform.VirtualRegisters.Allocate32(); context.InsertBefore().SetInstruction(IRInstruction.GetLow32, low, operand2); operand2 = low; } diff --git a/Source/Mosa.Compiler.Framework/Managers/CodeMotionManager.cs b/Source/Mosa.Compiler.Framework/Managers/CodeMotionManager.cs index 3f9b728dda..2e8adee276 100644 --- a/Source/Mosa.Compiler.Framework/Managers/CodeMotionManager.cs +++ b/Source/Mosa.Compiler.Framework/Managers/CodeMotionManager.cs @@ -6,14 +6,14 @@ namespace Mosa.Compiler.Framework.Managers; public class CodeMotionManager : BaseTransformManager { - private readonly HashSet Motion = new HashSet(); + private readonly HashSet Motion = new HashSet(); - public void MarkMotion(InstructionNode node) + public void MarkMotion(Node node) { Motion.Add(node); } - public bool CheckMotion(InstructionNode node) + public bool CheckMotion(Node node) { return Motion.Contains(node); } diff --git a/Source/Mosa.Compiler.Framework/MethodCompiler.cs b/Source/Mosa.Compiler.Framework/MethodCompiler.cs index b1944d80a1..4c01cb7fcd 100644 --- a/Source/Mosa.Compiler.Framework/MethodCompiler.cs +++ b/Source/Mosa.Compiler.Framework/MethodCompiler.cs @@ -27,7 +27,7 @@ public sealed class MethodCompiler private readonly NotifyTraceLogHandler NotifyTranformTraceHandler; - public readonly TransformContext TransformContext = new(); + public readonly Transform Transform = new(); #endregion Data Members @@ -273,8 +273,8 @@ public MethodCompiler(Compiler compiler, MosaMethod method, BasicBlocks basicBlo MethodData.Counters.Update("ExecutionTime.Setup.Ticks", (int)Stopwatch.ElapsedTicks); MethodData.Counters.Update("ExecutionTime.Setup.MicroSeconds", Stopwatch.Elapsed.Microseconds); - TransformContext.SetCompiler(compiler); - TransformContext.SetMethodCompiler(this); + Transform.SetCompiler(compiler); + Transform.SetMethodCompiler(this); } #endregion Construction @@ -364,7 +364,7 @@ private void ExecutePipeline() try { - TransformContext.SetStage(stage); + Transform.SetStage(stage); stage.Setup(this, i); stage.Execute(); @@ -600,7 +600,7 @@ private void StubMethod() var start = new Context(startBlock); - stub(start, TransformContext); + stub(start, Transform); if (NotifyInstructionTraceHandler != null) { diff --git a/Source/Mosa.Compiler.Framework/InstructionNode.cs b/Source/Mosa.Compiler.Framework/Node.cs similarity index 96% rename from Source/Mosa.Compiler.Framework/InstructionNode.cs rename to Source/Mosa.Compiler.Framework/Node.cs index a4c6e95553..f008f8bc0d 100644 --- a/Source/Mosa.Compiler.Framework/InstructionNode.cs +++ b/Source/Mosa.Compiler.Framework/Node.cs @@ -8,7 +8,7 @@ namespace Mosa.Compiler.Framework; /// /// Instruction Node /// -public sealed class InstructionNode +public sealed class Node { #region Data Members @@ -45,7 +45,7 @@ public sealed class InstructionNode /// /// The additional properties of an instruction node /// - private InstructionNodeAddition addition; + private NodeAddition addition; #endregion Data Members @@ -54,12 +54,12 @@ public sealed class InstructionNode /// /// Gets or sets the previous instruction node. /// - public InstructionNode Previous { get; set; } + public Node Previous { get; set; } /// /// Gets or sets the next instruction node. /// - public InstructionNode Next { get; set; } + public Node Next { get; set; } /// /// Holds the instruction type of this instruction @@ -334,7 +334,7 @@ public void UpdateBranchTarget(int index, BasicBlock block) } /// - /// Gets or sets a value indicating whether this is marked. + /// Gets or sets a value indicating whether this is marked. /// public bool Marked { get; set; } @@ -352,7 +352,7 @@ private void CheckAddition() { if (addition == null) { - addition = new InstructionNodeAddition(); + addition = new NodeAddition(); } } @@ -444,7 +444,7 @@ public void Empty() //Block.DebugCheck(); } - public void Insert(InstructionNode node) + public void Insert(Node node) { //Block.DebugCheck(); @@ -477,7 +477,7 @@ public void Insert(InstructionNode node) //Block.DebugCheck(); } - public void MoveFrom(InstructionNode startNode, InstructionNode endNode) + public void MoveFrom(Node startNode, Node endNode) { //var cutBlock = startNode.Previous.Block; @@ -492,7 +492,7 @@ public void MoveFrom(InstructionNode startNode, InstructionNode endNode) Insert(startNode); } - public void MoveFrom(InstructionNode node) + public void MoveFrom(Node node) { //var cutBlock = node.Previous.Block; @@ -511,7 +511,7 @@ public void MoveFrom(InstructionNode node) /// Replaces the specified node with the given node, the existing node is invalid afterwards /// /// The node. - public void Replace(InstructionNode node) + public void Replace(Node node) { //Block.DebugCheck(); @@ -926,7 +926,7 @@ public void ReplaceResult(Operand target, Operand replacement) #region Navigation - public InstructionNode NextNonEmpty + public Node NextNonEmpty { get { @@ -941,7 +941,7 @@ public InstructionNode NextNonEmpty } } - public InstructionNode PreviousNonEmpty + public Node PreviousNonEmpty { get { @@ -957,7 +957,7 @@ public InstructionNode PreviousNonEmpty } /// Returns the 1st non empty node (including the current) by traversing the instructions forward - public InstructionNode ForwardToNonEmpty + public Node ForwardToNonEmpty { get { @@ -973,7 +973,7 @@ public InstructionNode ForwardToNonEmpty } /// Returns the 1st non empty node (including the current) by traversing the instructions backwards - public InstructionNode BackwardsToNonEmpty + public Node BackwardsToNonEmpty { get { @@ -992,7 +992,7 @@ public InstructionNode BackwardsToNonEmpty #region Constructors - public InstructionNode() + public Node() { } @@ -1002,7 +1002,7 @@ public InstructionNode() /// The instruction. /// The operand count. /// The result count. - public InstructionNode(BaseInstruction instruction, int operandCount, int resultCount) + public Node(BaseInstruction instruction, int operandCount, int resultCount) { Instruction = instruction; OperandCount = operandCount; @@ -1013,7 +1013,7 @@ public InstructionNode(BaseInstruction instruction, int operandCount, int result /// Sets the instruction. /// /// The instruction. - public InstructionNode(BaseInstruction instruction) + public Node(BaseInstruction instruction) : this(instruction, instruction.DefaultOperandCount, instruction.DefaultResultCount) { } @@ -1023,7 +1023,7 @@ public InstructionNode(BaseInstruction instruction) /// /// The instruction. /// The block. - public InstructionNode(BaseInstruction instruction, BasicBlock block) + public Node(BaseInstruction instruction, BasicBlock block) : this(instruction) { AddBranchTarget(block); @@ -1035,7 +1035,7 @@ public InstructionNode(BaseInstruction instruction, BasicBlock block) /// The instruction. /// The block1. /// The block2. - public InstructionNode(BaseInstruction instruction, BasicBlock block1, BasicBlock block2) + public Node(BaseInstruction instruction, BasicBlock block1, BasicBlock block2) : this(instruction) { AddBranchTarget(block1); @@ -1047,7 +1047,7 @@ public InstructionNode(BaseInstruction instruction, BasicBlock block1, BasicBloc /// /// The instruction. /// The condition. - public InstructionNode(BaseInstruction instruction, ConditionCode condition) + public Node(BaseInstruction instruction, ConditionCode condition) : this(instruction) { ConditionCode = condition; @@ -1059,7 +1059,7 @@ public InstructionNode(BaseInstruction instruction, ConditionCode condition) /// The instruction. /// The condition. /// The block. - public InstructionNode(BaseInstruction instruction, ConditionCode condition, BasicBlock block) + public Node(BaseInstruction instruction, ConditionCode condition, BasicBlock block) : this(instruction, condition) { AddBranchTarget(block); @@ -1070,7 +1070,7 @@ public InstructionNode(BaseInstruction instruction, ConditionCode condition, Bas /// /// The instruction. /// The result. - public InstructionNode(BaseInstruction instruction, Operand result) + public Node(BaseInstruction instruction, Operand result) : this(instruction, 0, 1) { Result = result; @@ -1082,7 +1082,7 @@ public InstructionNode(BaseInstruction instruction, Operand result) /// The instruction. /// if set to true [update status]. /// The result. - public InstructionNode(BaseInstruction instruction, StatusRegister statusRegister, Operand result) + public Node(BaseInstruction instruction, StatusRegister statusRegister, Operand result) : this(instruction, result) { StatusRegister = statusRegister; @@ -1094,14 +1094,14 @@ public InstructionNode(BaseInstruction instruction, StatusRegister statusRegiste /// The instruction. /// The result. /// The operand1. - public InstructionNode(BaseInstruction instruction, Operand result, Operand operand1) + public Node(BaseInstruction instruction, Operand result, Operand operand1) : this(instruction, 1, 1) { Result = result; Operand1 = operand1; } - public InstructionNode(BaseInstruction instruction, Operand result, Operand operand1, Operand operand2) + public Node(BaseInstruction instruction, Operand result, Operand operand1, Operand operand2) : this(instruction, 2, 1) { Result = result; diff --git a/Source/Mosa.Compiler.Framework/InstructionNodeAddition.cs b/Source/Mosa.Compiler.Framework/NodeAddition.cs similarity index 86% rename from Source/Mosa.Compiler.Framework/InstructionNodeAddition.cs rename to Source/Mosa.Compiler.Framework/NodeAddition.cs index 498e24fab0..de52ec2169 100644 --- a/Source/Mosa.Compiler.Framework/InstructionNodeAddition.cs +++ b/Source/Mosa.Compiler.Framework/NodeAddition.cs @@ -1,13 +1,11 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. -using System.Collections.Generic; - namespace Mosa.Compiler.Framework; /// /// Instruction Node Addition /// -public sealed class InstructionNodeAddition +public sealed class NodeAddition { #region Properties diff --git a/Source/Mosa.Compiler.Framework/Operand.cs b/Source/Mosa.Compiler.Framework/Operand.cs index bd4e62183c..9263714641 100644 --- a/Source/Mosa.Compiler.Framework/Operand.cs +++ b/Source/Mosa.Compiler.Framework/Operand.cs @@ -57,7 +57,7 @@ public enum ConstantType public uint ConstantUnsigned32 { get => (uint)ConstantUnsigned64; private set => ConstantUnsigned64 = value; } - public List Definitions { get; } + public List Definitions { get; } public MosaField Field { get; private set; } @@ -181,7 +181,7 @@ public long Offset public MosaType Type { get; private set; } - public List Uses { get; } + public List Uses { get; } public bool IsDefined => Definitions.Count != 0; @@ -304,8 +304,8 @@ public bool IsVirtualRegisterUsed private Operand() { - Definitions = new List(); - Uses = new List(); + Definitions = new List(); + Uses = new List(); Constant = ConstantType.Default; IsResolved = true; diff --git a/Source/Mosa.Compiler.Framework/PhiHelper.cs b/Source/Mosa.Compiler.Framework/PhiHelper.cs index 560d285d4c..ef42850197 100644 --- a/Source/Mosa.Compiler.Framework/PhiHelper.cs +++ b/Source/Mosa.Compiler.Framework/PhiHelper.cs @@ -35,7 +35,7 @@ public static void RemoveBlockFromPhi(BasicBlock removedBlock, BasicBlock phiBlo } } - public static void UpdatePhi(InstructionNode node) + public static void UpdatePhi(Node node) { Debug.Assert(node.OperandCount != node.Block.PreviousBlocks.Count); diff --git a/Source/Mosa.Compiler.Framework/RegisterAllocator/BaseRegisterAllocator.cs b/Source/Mosa.Compiler.Framework/RegisterAllocator/BaseRegisterAllocator.cs index bcf62ad788..fcec15ada9 100644 --- a/Source/Mosa.Compiler.Framework/RegisterAllocator/BaseRegisterAllocator.cs +++ b/Source/Mosa.Compiler.Framework/RegisterAllocator/BaseRegisterAllocator.cs @@ -15,6 +15,8 @@ namespace Mosa.Compiler.Framework.RegisterAllocator; /// public abstract class BaseRegisterAllocator { + protected readonly Transform Transform; + protected readonly BasicBlocks BasicBlocks; protected readonly BaseArchitecture Architecture; protected readonly LocalStack LocalStack; @@ -40,7 +42,7 @@ public abstract class BaseRegisterAllocator private readonly List SpilledIntervals = new(); - private readonly List SlotsToNodes = new(512); + private readonly List SlotsToNodes = new(512); protected readonly List KillSite = new(); @@ -52,32 +54,34 @@ public abstract class BaseRegisterAllocator public int DataFlowMoves = 0; public int ResolvingMoves = 0; - protected BaseRegisterAllocator(BasicBlocks basicBlocks, VirtualRegisters virtualRegisters, BaseArchitecture architecture, LocalStack localStack, Operand stackFrame, BaseMethodCompilerStage.CreateTraceHandler createTrace) + protected BaseRegisterAllocator(Transform transform, Operand stackFrame, BaseMethodCompilerStage.CreateTraceHandler createTrace) { + Transform = transform; + BasicBlocks = transform.BasicBlocks; + Architecture = transform.Architecture; + LocalStack = transform.MethodCompiler.LocalStack; + CreateTrace = createTrace; - BasicBlocks = basicBlocks; - Architecture = architecture; - LocalStack = localStack; StackFrame = stackFrame; - VirtualRegisterCount = virtualRegisters.Count; - PhysicalRegisterCount = architecture.RegisterSet.Length; + VirtualRegisterCount = transform.MethodCompiler.VirtualRegisters.Count; + PhysicalRegisterCount = Architecture.RegisterSet.Length; RegisterCount = VirtualRegisterCount + PhysicalRegisterCount; Tracks = new List(PhysicalRegisterCount); Registers = new List(RegisterCount); - ExtendedBlocks = new List(basicBlocks.Count); + ExtendedBlocks = new List(BasicBlocks.Count); Trace = CreateTrace("Main", 7); - StackFrameRegister = architecture.StackFrameRegister; - StackPointerRegister = architecture.StackPointerRegister; - ProgramCounter = architecture.ProgramCounter; - LinkRegister = architecture.LinkRegister; + StackFrameRegister = Architecture.StackFrameRegister; + StackPointerRegister = Architecture.StackPointerRegister; + ProgramCounter = Architecture.ProgramCounter; + LinkRegister = Architecture.LinkRegister; // Setup extended physical registers - foreach (var physicalRegister in architecture.RegisterSet) + foreach (var physicalRegister in Architecture.RegisterSet) { var reserved = physicalRegister == StackFrameRegister || physicalRegister == StackPointerRegister @@ -89,7 +93,7 @@ protected BaseRegisterAllocator(BasicBlocks basicBlocks, VirtualRegisters virtua } // Setup extended virtual registers - foreach (var virtualRegister in virtualRegisters) + foreach (var virtualRegister in transform.VirtualRegisters) { Debug.Assert(virtualRegister.Index == Registers.Count - PhysicalRegisterCount + 1); @@ -185,7 +189,7 @@ private void UpdateRegisterPositions() protected abstract void AdditionalSetup(); - protected InstructionNode GetNode(SlotIndex slot) => SlotsToNodes[slot.Index >> 1]; + protected Node GetNode(SlotIndex slot) => SlotsToNodes[slot.Index >> 1]; private void TraceBlocks() { @@ -686,11 +690,11 @@ private void BuildLiveIntervals() if (endSlots[r].IsNotNull) { - register.AddLiveInterval(endSlots[r], slotNext); + register.AddLiveInterval(slotNext, endSlots[r]); endSlots[r] = SlotIndex.Null; - intervalTrace?.Log($"Range: {node.Label:X5}/{node.Offset} : {register} = {endSlots[r]} to {slotNext} [Add]"); + intervalTrace?.Log($"Range: {node.Label:X5}/{node.Offset} : {register} = {slotNext} to {endSlots[r]} [Add]"); intervalTrace?.Log($"EndSlot: {node.Label:X5}/{node.Offset} : {register} = {endSlots[r]} [KillSite]"); } else diff --git a/Source/Mosa.Compiler.Framework/RegisterAllocator/GreedyRegisterAllocator.cs b/Source/Mosa.Compiler.Framework/RegisterAllocator/GreedyRegisterAllocator.cs index 7dbea7814c..cff84628a1 100644 --- a/Source/Mosa.Compiler.Framework/RegisterAllocator/GreedyRegisterAllocator.cs +++ b/Source/Mosa.Compiler.Framework/RegisterAllocator/GreedyRegisterAllocator.cs @@ -10,8 +10,8 @@ namespace Mosa.Compiler.Framework.RegisterAllocator; /// public sealed class GreedyRegisterAllocator : BaseRegisterAllocator { - public GreedyRegisterAllocator(BasicBlocks basicBlocks, VirtualRegisters virtualRegisters, BaseArchitecture architecture, LocalStack localStack, Operand stackFrame, BaseMethodCompilerStage.CreateTraceHandler createTrace) - : base(basicBlocks, virtualRegisters, architecture, localStack, stackFrame, createTrace) + public GreedyRegisterAllocator(Transform transform, Operand stackFrame, BaseMethodCompilerStage.CreateTraceHandler createTrace) + : base(transform, stackFrame, createTrace) { } diff --git a/Source/Mosa.Compiler.Framework/RegisterAllocator/MoveResolver.cs b/Source/Mosa.Compiler.Framework/RegisterAllocator/MoveResolver.cs index 1b865f6223..00690b2623 100644 --- a/Source/Mosa.Compiler.Framework/RegisterAllocator/MoveResolver.cs +++ b/Source/Mosa.Compiler.Framework/RegisterAllocator/MoveResolver.cs @@ -6,7 +6,7 @@ namespace Mosa.Compiler.Framework.RegisterAllocator; public sealed class MoveResolver { - public readonly InstructionNode Node; + public readonly Node Node; public readonly bool Before; @@ -14,7 +14,7 @@ public sealed class MoveResolver private readonly List ResolvedMoves = new(); - public MoveResolver(InstructionNode node, bool before) + public MoveResolver(Node node, bool before) { Node = node; Before = before; diff --git a/Source/Mosa.Compiler.Framework/RegisterAllocator/Register.cs b/Source/Mosa.Compiler.Framework/RegisterAllocator/Register.cs index 40d32759e8..acaf38d40e 100644 --- a/Source/Mosa.Compiler.Framework/RegisterAllocator/Register.cs +++ b/Source/Mosa.Compiler.Framework/RegisterAllocator/Register.cs @@ -40,7 +40,7 @@ public sealed class Register public Operand ParamOperand; - public InstructionNode ParamLoadNode; + public Node ParamLoadNode; public bool IsParamLoadOnly => IsParamLoad && !IsParamStore; diff --git a/Source/Mosa.Compiler.Framework/RegisterAllocator/SlotIndex.cs b/Source/Mosa.Compiler.Framework/RegisterAllocator/SlotIndex.cs index 3a9c172d1f..5bcf8f262c 100644 --- a/Source/Mosa.Compiler.Framework/RegisterAllocator/SlotIndex.cs +++ b/Source/Mosa.Compiler.Framework/RegisterAllocator/SlotIndex.cs @@ -22,11 +22,11 @@ public struct SlotIndex : IComparable private SlotIndex(int index) => Index = index; - public static SlotIndex Use(InstructionNode node) => new(node.Offset); + public static SlotIndex Use(Node node) => new(node.Offset); - public static SlotIndex Def(InstructionNode node) => new(node.Offset + 1); + public static SlotIndex Def(Node node) => new(node.Offset + 1); - public SlotIndex(InstructionNode node) + public SlotIndex(Node node) : this(node.Offset) { } diff --git a/Source/Mosa.Compiler.Framework/Stages/BaseTransformStage.cs b/Source/Mosa.Compiler.Framework/Stages/BaseTransformStage.cs index ddf1e8b5ab..89362411d4 100644 --- a/Source/Mosa.Compiler.Framework/Stages/BaseTransformStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/BaseTransformStage.cs @@ -50,7 +50,7 @@ protected override void Initialize() protected override void Finish() { - UpdateCounter("Transform.Total", TransformContext.TotalTransformCount); + UpdateCounter("Transform.Total", Transform.TotalTransformCount); UpdateCounter("Transform.Transforms", TransformCount); UpdateCounter("Transform.Optimizations", OptimizationCount); @@ -78,9 +78,9 @@ protected override void Run() specialTrace = new TraceLog(TraceType.GlobalDebug, null, null, "Special Optimizations"); - TransformContext.SetLogs(trace, specialTrace); + Transform.SetLogs(trace, specialTrace); - CustomizeTransform(TransformContext); + CustomizeTransform(Transform); ExecutePasses(); } @@ -132,7 +132,7 @@ private void SortByPriority() SortedByPriority = true; } - protected virtual void CustomizeTransform(TransformContext transformContext) + protected virtual void CustomizeTransform(Transform transform) { } private void ExecutePasses() @@ -218,7 +218,7 @@ private bool ApplyTransformations(Context context, int id) { var transform = instructionTransforms[i]; - var updated = TransformContext.ApplyTransform(context, transform); + var updated = Transform.ApplyTransform(context, transform); if (updated) { @@ -248,7 +248,7 @@ private bool ApplyBlockTransforms() foreach (var transform in blockTransforms) { - var count = transform.Process(TransformContext); + var count = transform.Process(Transform); var updated = count != 0; changed |= updated; diff --git a/Source/Mosa.Compiler.Framework/Stages/BitTrackerStage.cs b/Source/Mosa.Compiler.Framework/Stages/BitTrackerStage.cs index dea7608d88..b9f7d7e3ff 100644 --- a/Source/Mosa.Compiler.Framework/Stages/BitTrackerStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/BitTrackerStage.cs @@ -29,9 +29,9 @@ public sealed class BitTrackerStage : BaseMethodCompilerStage private readonly NodeVisitationDelegate[] visitation = new NodeVisitationDelegate[MaxInstructions]; - private delegate BitValue NodeVisitationDelegate(InstructionNode node, TransformContext transform); + private delegate BitValue NodeVisitationDelegate(Node node, Transform transform); - private delegate (BitValue, BitValue) NodeVisitationDelegate2(InstructionNode node, TransformContext transform); + private delegate (BitValue, BitValue) NodeVisitationDelegate2(Node node, Transform transform); private BitValueManager BitValueManager; @@ -183,8 +183,8 @@ protected override void Run() BitValueManager = new BitValueManager(Is32BitPlatform); - TransformContext.AddManager(BitValueManager); - TransformContext.SetLog(trace); + Transform.AddManager(BitValueManager); + Transform.SetLog(trace); EvaluateVirtualRegisters(); @@ -241,12 +241,12 @@ private void EvaluateVirtualRegisters() foreach (var register in MethodCompiler.VirtualRegisters) { - change |= Evaluate(register, TransformContext); + change |= Evaluate(register, Transform); } } } - private bool Evaluate(Operand virtualRegister, TransformContext transform) + private bool Evaluate(Operand virtualRegister, Transform transform) { var value = BitValueManager.GetBitValue(virtualRegister); @@ -290,7 +290,7 @@ private BitValue EvaluateBitValue(Operand virtualRegister) if (method == null) return Any(virtualRegister); - value = method.Invoke(node, TransformContext); + value = method.Invoke(node, Transform); return value; } @@ -330,7 +330,7 @@ private BitValue Any(Operand virtualRegister) throw new InvalidProgramException(); } - private static BitValue Any(Operand virtualRegister, TransformContext transform) + private static BitValue Any(Operand virtualRegister, Transform transform) { if (virtualRegister.IsInteger) return virtualRegister.IsInt32 ? BitValue.Any32 : BitValue.Any64; @@ -439,13 +439,13 @@ private void UpdateBranchInstructions() Debug.Assert(node.Instruction.IsBranch); - var value1 = TransformContext.GetBitValue(node.Operand1); - var value2 = TransformContext.GetBitValue(node.Operand2); + var value1 = Transform.GetBitValue(node.Operand1); + var value2 = Transform.GetBitValue(node.Operand2); if (value1 == null || value2 == null) continue; - var result = EvaluateCompare(value1, value2, node.ConditionCode, TransformContext); + var result = EvaluateCompare(value1, value2, node.ConditionCode, Transform); if (!result.HasValue) continue; @@ -471,7 +471,7 @@ private void UpdateBranchInstructions() } } - private static bool? EvaluateCompare(BitValue value1, BitValue value2, ConditionCode condition, TransformContext transform) + private static bool? EvaluateCompare(BitValue value1, BitValue value2, ConditionCode condition, Transform transform) { if (value1 == null || value2 == null) return null; @@ -754,7 +754,7 @@ private void UpdateBranchInstructions() #region IR Instructions - private static BitValue Add32(InstructionNode node, TransformContext transform) + private static BitValue Add32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -797,7 +797,7 @@ private static BitValue Add32(InstructionNode node, TransformContext transform) ); } - private static BitValue Add64(InstructionNode node, TransformContext transform) + private static BitValue Add64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -845,7 +845,7 @@ private static BitValue Add64(InstructionNode node, TransformContext transform) return BitValue.Any64; } - private static BitValue AddCarryIn32(InstructionNode node, TransformContext transform) + private static BitValue AddCarryIn32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -874,7 +874,7 @@ private static BitValue AddCarryIn32(InstructionNode node, TransformContext tran return BitValue.Any32; } - private static BitValue ArithShiftRight32(InstructionNode node, TransformContext transform) + private static BitValue ArithShiftRight32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -917,7 +917,7 @@ private static BitValue ArithShiftRight32(InstructionNode node, TransformContext return BitValue.Any32; } - private static BitValue ArithShiftRight64(InstructionNode node, TransformContext transform) + private static BitValue ArithShiftRight64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -960,7 +960,7 @@ private static BitValue ArithShiftRight64(InstructionNode node, TransformContext return BitValue.Any64; } - private static BitValue Compare32x32(InstructionNode node, TransformContext transform) + private static BitValue Compare32x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -976,7 +976,7 @@ private static BitValue Compare32x32(InstructionNode node, TransformContext tran return BitValue.CreateValue(result.Value, true); } - private static BitValue Compare64x32(InstructionNode node, TransformContext transform) + private static BitValue Compare64x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -992,7 +992,7 @@ private static BitValue Compare64x32(InstructionNode node, TransformContext tran return BitValue.CreateValue(result.Value, true); } - private static BitValue Compare64x64(InstructionNode node, TransformContext transform) + private static BitValue Compare64x64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1008,7 +1008,7 @@ private static BitValue Compare64x64(InstructionNode node, TransformContext tran return BitValue.CreateValue(result.Value, false); } - private static BitValue GetHigh32(InstructionNode node, TransformContext transform) + private static BitValue GetHigh32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -1035,7 +1035,7 @@ private static BitValue GetHigh32(InstructionNode node, TransformContext transfo ); } - private static BitValue GetLow32(InstructionNode node, TransformContext transform) + private static BitValue GetLow32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -1057,7 +1057,7 @@ private static BitValue GetLow32(InstructionNode node, TransformContext transfor ); ; } - private static BitValue LoadParamZeroExtend16x32(InstructionNode node, TransformContext transform) + private static BitValue LoadParamZeroExtend16x32(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1069,7 +1069,7 @@ private static BitValue LoadParamZeroExtend16x32(InstructionNode node, Transform ); } - private static BitValue LoadParamZeroExtend16x64(InstructionNode node, TransformContext transform) + private static BitValue LoadParamZeroExtend16x64(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1081,7 +1081,7 @@ private static BitValue LoadParamZeroExtend16x64(InstructionNode node, Transform ); } - private static BitValue LoadParamZeroExtend8x32(InstructionNode node, TransformContext transform) + private static BitValue LoadParamZeroExtend8x32(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1093,7 +1093,7 @@ private static BitValue LoadParamZeroExtend8x32(InstructionNode node, TransformC ); } - private static BitValue LoadParamZeroExtend8x64(InstructionNode node, TransformContext transform) + private static BitValue LoadParamZeroExtend8x64(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1105,7 +1105,7 @@ private static BitValue LoadParamZeroExtend8x64(InstructionNode node, TransformC ); } - private static BitValue LoadParamZeroExtend32x64(InstructionNode node, TransformContext transform) + private static BitValue LoadParamZeroExtend32x64(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1117,7 +1117,7 @@ private static BitValue LoadParamZeroExtend32x64(InstructionNode node, Transform ); } - private static BitValue LoadZeroExtend16x32(InstructionNode node, TransformContext transform) + private static BitValue LoadZeroExtend16x32(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1129,7 +1129,7 @@ private static BitValue LoadZeroExtend16x32(InstructionNode node, TransformConte ); } - private static BitValue LoadZeroExtend16x64(InstructionNode node, TransformContext transform) + private static BitValue LoadZeroExtend16x64(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1141,7 +1141,7 @@ private static BitValue LoadZeroExtend16x64(InstructionNode node, TransformConte ); } - private static BitValue LoadZeroExtend8x32(InstructionNode node, TransformContext transform) + private static BitValue LoadZeroExtend8x32(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1153,7 +1153,7 @@ private static BitValue LoadZeroExtend8x32(InstructionNode node, TransformContex ); } - private static BitValue LoadZeroExtend8x64(InstructionNode node, TransformContext transform) + private static BitValue LoadZeroExtend8x64(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1165,7 +1165,7 @@ private static BitValue LoadZeroExtend8x64(InstructionNode node, TransformContex ); } - private static BitValue LoadZeroExtend32x64(InstructionNode node, TransformContext transform) + private static BitValue LoadZeroExtend32x64(Node node, Transform transform) { return BitValue.CreateValue( bitsSet: 0, @@ -1177,7 +1177,7 @@ private static BitValue LoadZeroExtend32x64(InstructionNode node, TransformConte ); } - private static BitValue And32(InstructionNode node, TransformContext transform) + private static BitValue And32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1205,7 +1205,7 @@ private static BitValue And32(InstructionNode node, TransformContext transform) ); } - private static BitValue And64(InstructionNode node, TransformContext transform) + private static BitValue And64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1233,7 +1233,7 @@ private static BitValue And64(InstructionNode node, TransformContext transform) ); } - private static BitValue Not32(InstructionNode node, TransformContext transform) + private static BitValue Not32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -1256,7 +1256,7 @@ private static BitValue Not32(InstructionNode node, TransformContext transform) ); } - private static BitValue Not64(InstructionNode node, TransformContext transform) + private static BitValue Not64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -1279,7 +1279,7 @@ private static BitValue Not64(InstructionNode node, TransformContext transform) ); } - private static BitValue Or32(InstructionNode node, TransformContext transform) + private static BitValue Or32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1317,7 +1317,7 @@ private static BitValue Or32(InstructionNode node, TransformContext transform) ); } - private static BitValue Or64(InstructionNode node, TransformContext transform) + private static BitValue Or64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1355,7 +1355,7 @@ private static BitValue Or64(InstructionNode node, TransformContext transform) ); } - private static BitValue Xor32(InstructionNode node, TransformContext transform) + private static BitValue Xor32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1380,7 +1380,7 @@ private static BitValue Xor32(InstructionNode node, TransformContext transform) ); } - private static BitValue Xor64(InstructionNode node, TransformContext transform) + private static BitValue Xor64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1405,7 +1405,7 @@ private static BitValue Xor64(InstructionNode node, TransformContext transform) ); } - private static BitValue Move32(InstructionNode node, TransformContext transform) + private static BitValue Move32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -1425,7 +1425,7 @@ private static BitValue Move32(InstructionNode node, TransformContext transform) ); } - private static BitValue Move64(InstructionNode node, TransformContext transform) + private static BitValue Move64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -1435,7 +1435,7 @@ private static BitValue Move64(InstructionNode node, TransformContext transform) return value1; } - private static BitValue MulSigned32(InstructionNode node, TransformContext transform) + private static BitValue MulSigned32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1503,7 +1503,7 @@ private static BitValue MulSigned32(InstructionNode node, TransformContext trans return BitValue.Any32; } - private static BitValue MulSigned64(InstructionNode node, TransformContext transform) + private static BitValue MulSigned64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1572,7 +1572,7 @@ private static BitValue MulSigned64(InstructionNode node, TransformContext trans return BitValue.Any64; } - private static BitValue MulUnsigned32(InstructionNode node, TransformContext transform) + private static BitValue MulUnsigned32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1627,7 +1627,7 @@ private static BitValue MulUnsigned32(InstructionNode node, TransformContext tra ); } - private static BitValue MulUnsigned64(InstructionNode node, TransformContext transform) + private static BitValue MulUnsigned64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1688,7 +1688,7 @@ private static BitValue MulUnsigned64(InstructionNode node, TransformContext tra return BitValue.Any64; } - private static BitValue Phi32(InstructionNode node, TransformContext transform) + private static BitValue Phi32(Node node, Transform transform) { Debug.Assert(node.OperandCount != 0); @@ -1726,7 +1726,7 @@ private static BitValue Phi32(InstructionNode node, TransformContext transform) ); } - private static BitValue Phi64(InstructionNode node, TransformContext transform) + private static BitValue Phi64(Node node, Transform transform) { Debug.Assert(node.OperandCount != 0); @@ -1764,7 +1764,7 @@ private static BitValue Phi64(InstructionNode node, TransformContext transform) ); } - private static BitValue RemUnsigned32(InstructionNode node, TransformContext transform) + private static BitValue RemUnsigned32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1814,7 +1814,7 @@ private static BitValue RemUnsigned32(InstructionNode node, TransformContext tra return BitValue.Any32; } - private static BitValue RemUnsigned64(InstructionNode node, TransformContext transform) + private static BitValue RemUnsigned64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1864,7 +1864,7 @@ private static BitValue RemUnsigned64(InstructionNode node, TransformContext tra return BitValue.Any64; } - private static BitValue ShiftLeft32(InstructionNode node, TransformContext transform) + private static BitValue ShiftLeft32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1925,7 +1925,7 @@ private static BitValue ShiftLeft32(InstructionNode node, TransformContext trans return BitValue.Any32; } - private static BitValue ShiftLeft64(InstructionNode node, TransformContext transform) + private static BitValue ShiftLeft64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -1979,7 +1979,7 @@ private static BitValue ShiftLeft64(InstructionNode node, TransformContext trans return BitValue.Any64; } - private static BitValue ShiftRight32(InstructionNode node, TransformContext transform) + private static BitValue ShiftRight32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -2040,7 +2040,7 @@ private static BitValue ShiftRight32(InstructionNode node, TransformContext tran return BitValue.Any32; } - private static BitValue ShiftRight64(InstructionNode node, TransformContext transform) + private static BitValue ShiftRight64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -2113,7 +2113,7 @@ private static BitValue ShiftRight64(InstructionNode node, TransformContext tran return BitValue.Any64; } - private static BitValue SignExtend16x32(InstructionNode node, TransformContext transform) + private static BitValue SignExtend16x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2151,7 +2151,7 @@ private static BitValue SignExtend16x32(InstructionNode node, TransformContext t ); } - private static BitValue SignExtend16x64(InstructionNode node, TransformContext transform) + private static BitValue SignExtend16x64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2189,7 +2189,7 @@ private static BitValue SignExtend16x64(InstructionNode node, TransformContext t ); } - private static BitValue SignExtend32x64(InstructionNode node, TransformContext transform) + private static BitValue SignExtend32x64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2227,7 +2227,7 @@ private static BitValue SignExtend32x64(InstructionNode node, TransformContext t ); } - private static BitValue SignExtend8x32(InstructionNode node, TransformContext transform) + private static BitValue SignExtend8x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2265,7 +2265,7 @@ private static BitValue SignExtend8x32(InstructionNode node, TransformContext tr ); } - private static BitValue SignExtend8x64(InstructionNode node, TransformContext transform) + private static BitValue SignExtend8x64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2303,7 +2303,7 @@ private static BitValue SignExtend8x64(InstructionNode node, TransformContext tr ); } - private static BitValue To64(InstructionNode node, TransformContext transform) + private static BitValue To64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -2326,7 +2326,7 @@ private static BitValue To64(InstructionNode node, TransformContext transform) ); } - private static BitValue Truncate64x32(InstructionNode node, TransformContext transform) + private static BitValue Truncate64x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2343,7 +2343,7 @@ private static BitValue Truncate64x32(InstructionNode node, TransformContext tra ); } - private static BitValue ZeroExtend16x32(InstructionNode node, TransformContext transform) + private static BitValue ZeroExtend16x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2365,12 +2365,12 @@ private static BitValue ZeroExtend16x32(InstructionNode node, TransformContext t ); } - private static BitValue ZeroExtend16x64(InstructionNode node, TransformContext transform) + private static BitValue ZeroExtend16x64(Node node, Transform transform) { return ZeroExtend16x32(node, transform); } - private static BitValue ZeroExtend32x64(InstructionNode node, TransformContext transform) + private static BitValue ZeroExtend32x64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2392,7 +2392,7 @@ private static BitValue ZeroExtend32x64(InstructionNode node, TransformContext t ); } - private static BitValue ZeroExtend8x32(InstructionNode node, TransformContext transform) + private static BitValue ZeroExtend8x32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2414,7 +2414,7 @@ private static BitValue ZeroExtend8x32(InstructionNode node, TransformContext tr ); } - private static BitValue ZeroExtend8x64(InstructionNode node, TransformContext transform) + private static BitValue ZeroExtend8x64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); @@ -2436,7 +2436,7 @@ private static BitValue ZeroExtend8x64(InstructionNode node, TransformContext tr ); } - private static BitValue IfThenElse32(InstructionNode node, TransformContext transform) + private static BitValue IfThenElse32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand2); var value2 = transform.GetBitValue(node.Operand3); @@ -2459,7 +2459,7 @@ private static BitValue IfThenElse32(InstructionNode node, TransformContext tran return BitValue.Any32; } - private static BitValue IfThenElse64(InstructionNode node, TransformContext transform) + private static BitValue IfThenElse64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand2); var value2 = transform.GetBitValue(node.Operand3); @@ -2482,22 +2482,22 @@ private static BitValue IfThenElse64(InstructionNode node, TransformContext tran return BitValue.Any64; } - private static BitValue NewString(InstructionNode node, TransformContext transform) + private static BitValue NewString(Node node, Transform transform) { return transform.Is32BitPlatform ? BitValue.AnyExceptZero32 : BitValue.AnyExceptZero64; } - private static BitValue NewObject(InstructionNode node, TransformContext transform) + private static BitValue NewObject(Node node, Transform transform) { return transform.Is32BitPlatform ? BitValue.AnyExceptZero32 : BitValue.AnyExceptZero64; } - private static BitValue NewArray(InstructionNode node, TransformContext transform) + private static BitValue NewArray(Node node, Transform transform) { return transform.Is32BitPlatform ? BitValue.AnyExceptZero32 : BitValue.AnyExceptZero64; } - private static BitValue DivUnsigned32(InstructionNode node, TransformContext transform) + private static BitValue DivUnsigned32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -2536,7 +2536,7 @@ private static BitValue DivUnsigned32(InstructionNode node, TransformContext tra ); } - private static BitValue DivUnsigned64(InstructionNode node, TransformContext transform) + private static BitValue DivUnsigned64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -2581,12 +2581,12 @@ private static BitValue DivUnsigned64(InstructionNode node, TransformContext tra ); } - private static BitValue Any32(InstructionNode node, TransformContext transform) + private static BitValue Any32(Node node, Transform transform) { return BitValue.Any32; } - private static BitValue Any64(InstructionNode node, TransformContext transform) + private static BitValue Any64(Node node, Transform transform) { return BitValue.Any64; } diff --git a/Source/Mosa.Compiler.Framework/Stages/CILDecoderStage.cs b/Source/Mosa.Compiler.Framework/Stages/CILDecoderStage.cs index f653f1ec7b..952062e37c 100644 --- a/Source/Mosa.Compiler.Framework/Stages/CILDecoderStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/CILDecoderStage.cs @@ -103,8 +103,6 @@ public void ResetAll() private TraceLog trace; - //private readonly TransformContext TransformContext = new TransformContext(); - #endregion Data Members #region Overrides Methods @@ -411,7 +409,7 @@ private void InsertBlockProtectInstructions() } } - private bool IsSourceAndTargetWithinSameTryOrException(InstructionNode node) + private bool IsSourceAndTargetWithinSameTryOrException(Node node) { var leaveLabel = TraverseBackToNativeBlock(node.Block).Label; var targetLabel = TraverseBackToNativeBlock(node.BranchTargets[0]).Label; @@ -477,7 +475,7 @@ private void InsertFlowOrJumpInstructions() if (!entry.IsLabelWithinTry(label)) break; - var flowNode = new InstructionNode(IRInstruction.Flow, target); + var flowNode = new Node(IRInstruction.Flow, target); node.Insert(flowNode); @@ -999,7 +997,7 @@ private void InitializeLocalVariables() } } - private static void UpdateLabel(InstructionNode node, int label, InstructionNode endNode) + private static void UpdateLabel(Node node, int label, Node endNode) { while (node != endNode) { @@ -3540,7 +3538,7 @@ private bool Ldelema(Context context, Stack stack, MosaInstruction i var elementOffset = CalculateArrayElementOffset(context, size, index); var totalElementOffset = CalculateTotalArrayOffset(context, elementOffset); - context.AppendInstruction(MethodCompiler.TransformContext.AddInstruction, result, array, totalElementOffset); + context.AppendInstruction(MethodCompiler.Transform.AddInstruction, result, array, totalElementOffset); PushStack(stack, new StackEntry(result)); @@ -5506,7 +5504,7 @@ private bool ProcessExternalCall(Context context) { context.RemoveOperand(0); - intrinsic(context, MethodCompiler.TransformContext); + intrinsic(context, MethodCompiler.Transform); return true; } @@ -5581,7 +5579,7 @@ private Operand CalculateTotalArrayOffset(Context context, Operand elementOffset var fixedOffset = Operand.CreateConstant32(Architecture.NativePointerSize); var arrayElement = MethodCompiler.VirtualRegisters.AllocateNativeInteger(); - context.AppendInstruction(MethodCompiler.TransformContext.AddInstruction, arrayElement, elementOffset, fixedOffset); + context.AppendInstruction(MethodCompiler.Transform.AddInstruction, arrayElement, elementOffset, fixedOffset); return arrayElement; } diff --git a/Source/Mosa.Compiler.Framework/Stages/DemandBitStage.cs b/Source/Mosa.Compiler.Framework/Stages/DemandBitStage.cs index 5cd42c2410..763bfac0bc 100644 --- a/Source/Mosa.Compiler.Framework/Stages/DemandBitStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/DemandBitStage.cs @@ -18,7 +18,7 @@ public sealed class DemandBitStage : BaseMethodCompilerStage private readonly NodeVisitationDelegate[] affected = new NodeVisitationDelegate[MaxInstructions]; private readonly NodeVisitationDelegate[] demanded = new NodeVisitationDelegate[MaxInstructions]; - private delegate ulong NodeVisitationDelegate(InstructionNode node, TransformContext transform); + private delegate ulong NodeVisitationDelegate(Node node, Transform transform); protected override void Finish() { @@ -69,15 +69,15 @@ protected override void Run() var bitValueManager = new BitValueManager(Is32BitPlatform); - TransformContext.AddManager(bitValueManager); - TransformContext.SetLog(trace); + Transform.AddManager(bitValueManager); + Transform.SetLog(trace); // TODO } #region IR Instructions - private static ulong AffectedBits_Or32(InstructionNode node, TransformContext transform) + private static ulong AffectedBits_Or32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -87,7 +87,7 @@ private static ulong AffectedBits_Or32(InstructionNode node, TransformContext tr return affected; } - private static ulong AffectedBits_Or64(InstructionNode node, TransformContext transform) + private static ulong AffectedBits_Or64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -97,7 +97,7 @@ private static ulong AffectedBits_Or64(InstructionNode node, TransformContext tr return affected; } - private static ulong AffectedBits_And32(InstructionNode node, TransformContext transform) + private static ulong AffectedBits_And32(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -107,7 +107,7 @@ private static ulong AffectedBits_And32(InstructionNode node, TransformContext t return affected; } - private static ulong AffectedBits_And64(InstructionNode node, TransformContext transform) + private static ulong AffectedBits_And64(Node node, Transform transform) { var value1 = transform.GetBitValue(node.Operand1); var value2 = transform.GetBitValue(node.Operand2); @@ -117,7 +117,7 @@ private static ulong AffectedBits_And64(InstructionNode node, TransformContext t return affected; } - private static ulong DemandedBits_And32(InstructionNode node, TransformContext transform) + private static ulong DemandedBits_And32(Node node, Transform transform) { if (node.Operand1.IsVirtualRegister && node.Operand2.IsResolvedConstant) return node.Operand2.ConstantUnsigned32; @@ -128,7 +128,7 @@ private static ulong DemandedBits_And32(InstructionNode node, TransformContext t return uint.MaxValue; } - private static ulong DemandedBits_And64(InstructionNode node, TransformContext transform) + private static ulong DemandedBits_And64(Node node, Transform transform) { if (node.Operand1.IsVirtualRegister && node.Operand2.IsResolvedConstant) return node.Operand2.ConstantUnsigned64; @@ -139,7 +139,7 @@ private static ulong DemandedBits_And64(InstructionNode node, TransformContext t return ulong.MaxValue; } - private static ulong DemandedBits_Or32(InstructionNode node, TransformContext transform) + private static ulong DemandedBits_Or32(Node node, Transform transform) { if (node.Operand1.IsVirtualRegister && node.Operand2.IsResolvedConstant) return ~node.Operand2.ConstantUnsigned32; @@ -150,7 +150,7 @@ private static ulong DemandedBits_Or32(InstructionNode node, TransformContext tr return uint.MaxValue; } - private static ulong DemandedBits_Or64(InstructionNode node, TransformContext transform) + private static ulong DemandedBits_Or64(Node node, Transform transform) { if (node.Operand1.IsVirtualRegister && node.Operand2.IsResolvedConstant) return ~node.Operand2.ConstantUnsigned64; @@ -161,7 +161,7 @@ private static ulong DemandedBits_Or64(InstructionNode node, TransformContext tr return ulong.MaxValue; } - private static ulong DemandedBits_ShiftRight32(InstructionNode node, TransformContext transform) + private static ulong DemandedBits_ShiftRight32(Node node, Transform transform) { if (node.Operand1.IsVirtualRegister && node.Operand2.IsResolvedConstant) return (uint.MaxValue << (node.Operand2.ConstantSigned32 & 0x3F)) & uint.MaxValue; @@ -172,7 +172,7 @@ private static ulong DemandedBits_ShiftRight32(InstructionNode node, TransformCo return uint.MaxValue; } - private static ulong DemandedBits_ShiftRight64(InstructionNode node, TransformContext transform) + private static ulong DemandedBits_ShiftRight64(Node node, Transform transform) { if (node.Operand1.IsVirtualRegister && node.Operand2.IsResolvedConstant) return ulong.MaxValue << (node.Operand2.ConstantSigned32 & 0x3F); diff --git a/Source/Mosa.Compiler.Framework/Stages/ExceptionStage.cs b/Source/Mosa.Compiler.Framework/Stages/ExceptionStage.cs index 94681e7691..a6ad32ce54 100644 --- a/Source/Mosa.Compiler.Framework/Stages/ExceptionStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/ExceptionStage.cs @@ -25,10 +25,10 @@ protected override void Initialize() base.Initialize(); } - protected override void CustomizeTransform(TransformContext transformContext) + protected override void CustomizeTransform(Transform transform) { - ExceptionManager.Setup(transformContext.MethodCompiler); + ExceptionManager.Setup(transform.MethodCompiler); - transformContext.AddManager(ExceptionManager); + transform.AddManager(ExceptionManager); } } diff --git a/Source/Mosa.Compiler.Framework/Stages/ExitSSAStage.cs b/Source/Mosa.Compiler.Framework/Stages/ExitSSAStage.cs index 9088bb4fa3..88f7ad5eb2 100644 --- a/Source/Mosa.Compiler.Framework/Stages/ExitSSAStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/ExitSSAStage.cs @@ -54,7 +54,7 @@ protected override void Run() /// Processes the phi instruction. /// /// The context. - private void ProcessPhiInstruction(InstructionNode node) + private void ProcessPhiInstruction(Node node) { var sourceBlocks = node.PhiBlocks; diff --git a/Source/Mosa.Compiler.Framework/Stages/GreedyRegisterAllocatorStage.cs b/Source/Mosa.Compiler.Framework/Stages/GreedyRegisterAllocatorStage.cs index f692758004..cb58f287fa 100644 --- a/Source/Mosa.Compiler.Framework/Stages/GreedyRegisterAllocatorStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/GreedyRegisterAllocatorStage.cs @@ -12,7 +12,7 @@ public sealed class GreedyRegisterAllocatorStage : BaseMethodCompilerStage { protected override void Run() { - var allocator = new GreedyRegisterAllocator(BasicBlocks, MethodCompiler.VirtualRegisters, Architecture, MethodCompiler.LocalStack, StackFrame, CreateTraceLog); + var allocator = new GreedyRegisterAllocator(Transform, StackFrame, CreateTraceLog); allocator.Start(); diff --git a/Source/Mosa.Compiler.Framework/Stages/InlineStage.cs b/Source/Mosa.Compiler.Framework/Stages/InlineStage.cs index b5a9e42c0d..3fa2ea5e59 100644 --- a/Source/Mosa.Compiler.Framework/Stages/InlineStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/InlineStage.cs @@ -44,7 +44,7 @@ protected override void Run() var callSiteCount = 0; // find all call sites - var callSites = new List(); + var callSites = new List(); foreach (var block in BasicBlocks) { @@ -106,7 +106,7 @@ protected override void Run() } } - protected void Inline(InstructionNode callSiteNode, BasicBlocks blocks) + protected void Inline(Node callSiteNode, BasicBlocks blocks) { var mapBlocks = new Dictionary(blocks.Count); var map = new Dictionary(); @@ -135,7 +135,7 @@ protected void Inline(InstructionNode callSiteNode, BasicBlocks blocks) if (node.Instruction == IRInstruction.Epilogue) { - newBlock.BeforeLast.Insert(new InstructionNode(IRInstruction.Jmp, nextBlock)); + newBlock.BeforeLast.Insert(new Node(IRInstruction.Jmp, nextBlock)); continue; } @@ -152,7 +152,7 @@ protected void Inline(InstructionNode callSiteNode, BasicBlocks blocks) var newOperand = Map(node.Operand1, map, callSiteNode); var moveInstruction = GetMoveInstruction(node); - var moveNode = new InstructionNode(moveInstruction, callSiteNode.Result, newOperand); + var moveNode = new Node(moveInstruction, callSiteNode.Result, newOperand); newBlock.BeforeLast.Insert(moveNode); } @@ -160,7 +160,7 @@ protected void Inline(InstructionNode callSiteNode, BasicBlocks blocks) continue; } - var newNode = new InstructionNode(node.Instruction, node.OperandCount, node.ResultCount) + var newNode = new Node(node.Instruction, node.OperandCount, node.ResultCount) { ConditionCode = node.ConditionCode, Label = callSiteNode.Label, @@ -220,7 +220,7 @@ protected void Inline(InstructionNode callSiteNode, BasicBlocks blocks) callSiteNode.SetInstruction(IRInstruction.Jmp, prologue); } - private static BaseInstruction GetMoveInstruction(InstructionNode node) + private static BaseInstruction GetMoveInstruction(Node node) { var instruction = node.Instruction; @@ -242,7 +242,7 @@ private static BaseInstruction GetMoveInstruction(InstructionNode node) throw new CompilerException(); } - private static void UpdateParameterInstruction(InstructionNode newNode) + private static void UpdateParameterInstruction(Node newNode) { var instruction = newNode.Instruction; @@ -356,7 +356,7 @@ private static void UpdateParameterInstruction(InstructionNode newNode) } } - private Operand Map(Operand operand, Dictionary map, InstructionNode callSiteNode) + private Operand Map(Operand operand, Dictionary map, Node callSiteNode) { if (operand == null) return null; diff --git a/Source/Mosa.Compiler.Framework/Stages/LoopInvariantCodeMotionStage.cs b/Source/Mosa.Compiler.Framework/Stages/LoopInvariantCodeMotionStage.cs index f297bc8baf..52cd248b5c 100644 --- a/Source/Mosa.Compiler.Framework/Stages/LoopInvariantCodeMotionStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/LoopInvariantCodeMotionStage.cs @@ -197,10 +197,10 @@ private void FindLoopInvariantInstructions(List loops) } } - private List FindLoopInvariantInstructions(Loop loop) + private List FindLoopInvariantInstructions(Loop loop) { - var invariantsSet = new HashSet(); - var invariantsList = new List(); + var invariantsSet = new HashSet(); + var invariantsList = new List(); var changed = true; @@ -254,7 +254,7 @@ private List FindLoopInvariantInstructions(Loop loop) return invariantsList; } - private static bool IsInvariant(Operand operand, Loop loop, HashSet invariants) + private static bool IsInvariant(Operand operand, Loop loop, HashSet invariants) { // constant if (operand.IsResolvedConstant) @@ -348,7 +348,7 @@ private BasicBlock CreatePreHeader(Loop loop) return landingpadBlock; } - private void MoveToPreHeader(List nodes, Loop loop) + private void MoveToPreHeader(List nodes, Loop loop) { if (nodes.Count == 0) return; diff --git a/Source/Mosa.Compiler.Framework/Stages/OptimizationStage.cs b/Source/Mosa.Compiler.Framework/Stages/OptimizationStage.cs index 6ba6bb8f26..67ec257bac 100644 --- a/Source/Mosa.Compiler.Framework/Stages/OptimizationStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/OptimizationStage.cs @@ -33,9 +33,9 @@ public OptimizationStage(bool lowerTo32) EnableBlockOptimizations = true; } - protected override void CustomizeTransform(TransformContext transformContext) + protected override void CustomizeTransform(Transform transform) { - transformContext.SetStageOptions(LowerTo32 && MosaSettings.LongExpansion && Is32BitPlatform); - transformContext.AddManager(CodeMotion); + transform.SetStageOptions(LowerTo32 && MosaSettings.LongExpansion && Is32BitPlatform); + transform.AddManager(CodeMotion); } } diff --git a/Source/Mosa.Compiler.Framework/Stages/ValueNumberingStage.cs b/Source/Mosa.Compiler.Framework/Stages/ValueNumberingStage.cs index 445939a996..5a18e977da 100644 --- a/Source/Mosa.Compiler.Framework/Stages/ValueNumberingStage.cs +++ b/Source/Mosa.Compiler.Framework/Stages/ValueNumberingStage.cs @@ -443,7 +443,7 @@ private void ValueNumber(BasicBlock block, out List nextblocks, out } } - private bool CanAssignValueNumberToExpression(InstructionNode node) + private bool CanAssignValueNumberToExpression(Node node) { if (node.Instruction.IsParameterLoad && node.Instruction != IRInstruction.LoadParamCompound @@ -479,7 +479,7 @@ private static int UpdateHash(int hash, int addition) return (hash << 8) + addition; } - private static int ComputeExpressionHash(InstructionNode node) + private static int ComputeExpressionHash(Node node) { var hash = node.Instruction.ID; @@ -541,7 +541,7 @@ private static bool IsEqual(Operand operand1, Operand operand2, BaseInstruction return false; } - private static Expression FindMatch(List expressions, InstructionNode node) + private static Expression FindMatch(List expressions, Node node) { if (expressions == null) return null; @@ -575,7 +575,7 @@ private void SetValueNumber(Operand operand, Operand valueVumber) MapToValueNumber[operand] = valueVumber; } - private bool IsPhiUseless(InstructionNode node) + private bool IsPhiUseless(Node node) { Debug.Assert(node.Instruction.IsPhi); @@ -591,7 +591,7 @@ private bool IsPhiUseless(InstructionNode node) return true; } - private bool ArePhisRedundant(InstructionNode a, InstructionNode b) + private bool ArePhisRedundant(Node a, Node b) { Debug.Assert(a.Instruction.IsPhi); Debug.Assert(b.Instruction.IsPhi); @@ -633,7 +633,7 @@ private void RemoveExpressionFromHashTable(Expression expression) trace?.Log($"Removed Expression: {expression.ValueNumber} <= {expression.Instruction} {expression.Operand1} {expression.Operand2}" ?? string.Empty); } - private void UpdateNodeWithValueNumbers(InstructionNode node) + private void UpdateNodeWithValueNumbers(Node node) { // update operands with their value number for (var i = 0; i < node.OperandCount; i++) @@ -691,7 +691,7 @@ private void UpdatePhiSuccesors(BasicBlock block) } } - private Operand CheckRedundant(InstructionNode node) + private Operand CheckRedundant(Node node) { Operand redundant = null; diff --git a/Source/Mosa.Compiler.Framework/StubMethodAttribute.cs b/Source/Mosa.Compiler.Framework/StubMethodAttribute.cs index 004c69687d..ef7dd52465 100644 --- a/Source/Mosa.Compiler.Framework/StubMethodAttribute.cs +++ b/Source/Mosa.Compiler.Framework/StubMethodAttribute.cs @@ -4,7 +4,7 @@ namespace Mosa.Compiler.Framework; -public delegate void StubMethodDelegate(Context context, TransformContext transformContext); +public delegate void StubMethodDelegate(Context context, Transform transform); /// /// Used for defining targets when using intrinsic replacements diff --git a/Source/Mosa.Compiler.Framework/Stubs/ByReference.cs b/Source/Mosa.Compiler.Framework/Stubs/ByReference.cs index 8762afb126..8adfad565c 100644 --- a/Source/Mosa.Compiler.Framework/Stubs/ByReference.cs +++ b/Source/Mosa.Compiler.Framework/Stubs/ByReference.cs @@ -10,51 +10,51 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class StubMethods { [StubMethod("System.ByReference`1::.ctor")] - public static void ByReference__ctor(Context context, TransformContext transformContext) + public static void ByReference__ctor(Context context, Transform transform) { - CILDecoderStage.CreateParameters(transformContext.MethodCompiler); + CILDecoderStage.CreateParameters(transform.MethodCompiler); - var instance = transformContext.MethodCompiler.Parameters[0]; - var value = transformContext.MethodCompiler.Parameters[1]; - var opInstance = transformContext.VirtualRegisters.AllocateManagedPointer(); - var opValue = transformContext.VirtualRegisters.AllocateManagedPointer(); + var instance = transform.MethodCompiler.Parameters[0]; + var value = transform.MethodCompiler.Parameters[1]; + var opInstance = transform.VirtualRegisters.AllocateManagedPointer(); + var opValue = transform.VirtualRegisters.AllocateManagedPointer(); // Load instance parameter - var loadInstance = transformContext.MethodCompiler.GetLoadParamInstruction(instance.Element); + var loadInstance = transform.MethodCompiler.GetLoadParamInstruction(instance.Element); context.AppendInstruction(loadInstance, opInstance, instance); // Load value parameter - var loadValue = transformContext.MethodCompiler.GetLoadParamInstruction(value.Element); + var loadValue = transform.MethodCompiler.GetLoadParamInstruction(value.Element); context.AppendInstruction(loadValue, opValue, value); // Store value inside instance - var store = transformContext.Is32BitPlatform ? IRInstruction.Store32 : IRInstruction.Store64; - context.AppendInstruction(store, null, opInstance, transformContext.ConstantZero, opValue); + var store = transform.Is32BitPlatform ? IRInstruction.Store32 : IRInstruction.Store64; + context.AppendInstruction(store, null, opInstance, transform.ConstantZero, opValue); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } [StubMethod("System.ByReference`1::get_Value")] - public static void ByReference_get_Value(Context context, TransformContext transformContext) + public static void ByReference_get_Value(Context context, Transform transform) { - CILDecoderStage.CreateParameters(transformContext.MethodCompiler); + CILDecoderStage.CreateParameters(transform.MethodCompiler); - var instance = transformContext.MethodCompiler.Parameters[0]; - var opInstance = transformContext.VirtualRegisters.AllocateManagedPointer(); - var opReturn = transformContext.VirtualRegisters.AllocateManagedPointer(); + var instance = transform.MethodCompiler.Parameters[0]; + var opInstance = transform.VirtualRegisters.AllocateManagedPointer(); + var opReturn = transform.VirtualRegisters.AllocateManagedPointer(); // Load instance parameter - var loadInstance = transformContext.MethodCompiler.GetLoadParamInstruction(instance.Element); + var loadInstance = transform.MethodCompiler.GetLoadParamInstruction(instance.Element); context.AppendInstruction(loadInstance, opInstance, instance); // Load value from instance into return operand - var loadValue = transformContext.Is32BitPlatform ? IRInstruction.Load32 : IRInstruction.Load64; - context.AppendInstruction(loadValue, opReturn, opInstance, transformContext.ConstantZero); + var loadValue = transform.Is32BitPlatform ? IRInstruction.Load32 : IRInstruction.Load64; + context.AppendInstruction(loadValue, opReturn, opInstance, transform.ConstantZero); // Set return - var setReturn = transformContext.MethodCompiler.GetReturnInstruction(opReturn.Primitive); + var setReturn = transform.MethodCompiler.GetReturnInstruction(opReturn.Primitive); context.AppendInstruction(setReturn, null, opReturn); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } } diff --git a/Source/Mosa.Compiler.Framework/Stubs/RuntimeHelpers.cs b/Source/Mosa.Compiler.Framework/Stubs/RuntimeHelpers.cs index 4d3b667aa4..7d1556667b 100644 --- a/Source/Mosa.Compiler.Framework/Stubs/RuntimeHelpers.cs +++ b/Source/Mosa.Compiler.Framework/Stubs/RuntimeHelpers.cs @@ -8,22 +8,22 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class StubMethods { [StubMethod("System.Runtime.CompilerServices.RuntimeHelpers::IsReferenceOrContainsReferences")] - public static void RuntimeHelpers_IsReferenceOrContainsReferences(Context context, TransformContext transformContext) + public static void RuntimeHelpers_IsReferenceOrContainsReferences(Context context, Transform transform) { // FIXME: we're only checking if the current type is a reference type, we aren't checking if it contains references - var type = transformContext.Method.GenericArguments[0]; + var type = transform.Method.GenericArguments[0]; var isReferenceOrContainsReferences = type.IsReferenceType; - var result = transformContext.VirtualRegisters.AllocateNativeInteger(); + var result = transform.VirtualRegisters.AllocateNativeInteger(); // Move constant into return operand - var move = transformContext.Is32BitPlatform ? IRInstruction.Move32 : IRInstruction.Move64; + var move = transform.Is32BitPlatform ? IRInstruction.Move32 : IRInstruction.Move64; context.AppendInstruction(move, result, isReferenceOrContainsReferences ? Operand.Constant32_1 : Operand.Constant32_0); // Set return - var setReturn = transformContext.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; + var setReturn = transform.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; context.AppendInstruction(setReturn, null, result); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } } diff --git a/Source/Mosa.Compiler.Framework/Stubs/Unsafe.cs b/Source/Mosa.Compiler.Framework/Stubs/Unsafe.cs index eae59ddb94..3cb59f6ae4 100644 --- a/Source/Mosa.Compiler.Framework/Stubs/Unsafe.cs +++ b/Source/Mosa.Compiler.Framework/Stubs/Unsafe.cs @@ -10,37 +10,37 @@ namespace Mosa.Compiler.Framework.Intrinsics; internal static partial class StubMethods { [StubMethod("System.Runtime.CompilerServices.Unsafe::SizeOf")] - public static void Unsafe_SizeOf(Context context, TransformContext transformContext) + public static void Unsafe_SizeOf(Context context, Transform transform) { - var type = transformContext.Method.GenericArguments[0]; - var opReturn = transformContext.VirtualRegisters.Allocate32(); + var type = transform.Method.GenericArguments[0]; + var opReturn = transform.VirtualRegisters.Allocate32(); - var size = transformContext.MethodCompiler.GetElementSize(type); + var size = transform.MethodCompiler.GetElementSize(type); context.AppendInstruction(IRInstruction.Move32, opReturn, Operand.CreateConstant32(size)); context.AppendInstruction(IRInstruction.SetReturn32, null, opReturn); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } [StubMethod("System.Runtime.CompilerServices.Unsafe::AsPointer")] [StubMethod("System.Runtime.CompilerServices.Unsafe::As")] - public static void Unsafe_As(Context context, TransformContext transformContext) + public static void Unsafe_As(Context context, Transform transform) { - CILDecoderStage.CreateParameters(transformContext.MethodCompiler); + CILDecoderStage.CreateParameters(transform.MethodCompiler); - var source = transformContext.MethodCompiler.Parameters[0]; + var source = transform.MethodCompiler.Parameters[0]; var opReturn = source.IsObject - ? transformContext.VirtualRegisters.AllocateNativeInteger() - : transformContext.VirtualRegisters.AllocateManagedPointer(); + ? transform.VirtualRegisters.AllocateNativeInteger() + : transform.VirtualRegisters.AllocateManagedPointer(); var loadSource = source.IsObject ? IRInstruction.LoadParamObject - : transformContext.Is32BitPlatform ? IRInstruction.LoadParam32 : IRInstruction.LoadParam64; + : transform.Is32BitPlatform ? IRInstruction.LoadParam32 : IRInstruction.LoadParam64; var setReturn = source.IsObject ? IRInstruction.SetReturnObject - : transformContext.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; + : transform.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; // Load source into return operand context.AppendInstruction(loadSource, opReturn, source); @@ -48,19 +48,19 @@ public static void Unsafe_As(Context context, TransformContext transformContext) // Set return context.AppendInstruction(setReturn, null, opReturn); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } [StubMethod("System.Runtime.CompilerServices.Unsafe::AreSame")] - public static void Unsafe_AreSame(Context context, TransformContext transformContext) + public static void Unsafe_AreSame(Context context, Transform transform) { - CILDecoderStage.CreateParameters(transformContext.MethodCompiler); + CILDecoderStage.CreateParameters(transform.MethodCompiler); - var left = transformContext.MethodCompiler.Parameters[0]; - var right = transformContext.MethodCompiler.Parameters[1]; - var opLeft = transformContext.VirtualRegisters.AllocateObject(); - var opRight = transformContext.VirtualRegisters.AllocateObject(); - var opReturn = transformContext.VirtualRegisters.AllocateNativeInteger(); + var left = transform.MethodCompiler.Parameters[0]; + var right = transform.MethodCompiler.Parameters[1]; + var opLeft = transform.VirtualRegisters.AllocateObject(); + var opRight = transform.VirtualRegisters.AllocateObject(); + var opReturn = transform.VirtualRegisters.AllocateNativeInteger(); // Load left parameter context.AppendInstruction(IRInstruction.LoadParamObject, opLeft, left); @@ -72,39 +72,39 @@ public static void Unsafe_AreSame(Context context, TransformContext transformCon context.AppendInstruction(IRInstruction.CompareObject, ConditionCode.Equal, opReturn, opLeft, opRight); // Set return - var setReturn = transformContext.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; + var setReturn = transform.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; context.AppendInstruction(setReturn, null, opReturn); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } [StubMethod("System.Runtime.CompilerServices.Unsafe::AddByteOffset")] - public static void Unsafe_AddByteOffset(Context context, TransformContext transformContext) + public static void Unsafe_AddByteOffset(Context context, Transform transform) { - CILDecoderStage.CreateParameters(transformContext.MethodCompiler); + CILDecoderStage.CreateParameters(transform.MethodCompiler); - var source = transformContext.MethodCompiler.Parameters[0]; - var byteOffset = transformContext.MethodCompiler.Parameters[1]; - var opSource = transformContext.VirtualRegisters.AllocateManagedPointer(); - var opByteOffset = transformContext.VirtualRegisters.AllocateNativeInteger(); - var opReturn = transformContext.VirtualRegisters.AllocateNativeInteger(); + var source = transform.MethodCompiler.Parameters[0]; + var byteOffset = transform.MethodCompiler.Parameters[1]; + var opSource = transform.VirtualRegisters.AllocateManagedPointer(); + var opByteOffset = transform.VirtualRegisters.AllocateNativeInteger(); + var opReturn = transform.VirtualRegisters.AllocateNativeInteger(); // Load left parameter - var loadSource = transformContext.Is32BitPlatform ? IRInstruction.LoadParam32 : IRInstruction.LoadParam64; + var loadSource = transform.Is32BitPlatform ? IRInstruction.LoadParam32 : IRInstruction.LoadParam64; context.AppendInstruction(loadSource, opSource, source); // Load right parameter - var loadByteOffset = transformContext.Is32BitPlatform ? IRInstruction.LoadParam32 : IRInstruction.LoadParam64; + var loadByteOffset = transform.Is32BitPlatform ? IRInstruction.LoadParam32 : IRInstruction.LoadParam64; context.AppendInstruction(loadByteOffset, opByteOffset, byteOffset); // Compare and store into result operand - var add = transformContext.Is32BitPlatform ? IRInstruction.Add32 : IRInstruction.Add64; + var add = transform.Is32BitPlatform ? IRInstruction.Add32 : IRInstruction.Add64; context.AppendInstruction(add, opReturn, opSource, opByteOffset); // Return comparison result - var setReturn = transformContext.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; + var setReturn = transform.Is32BitPlatform ? IRInstruction.SetReturn32 : IRInstruction.SetReturn64; context.AppendInstruction(setReturn, null, opReturn); - context.AppendInstruction(IRInstruction.Jmp, transformContext.BasicBlocks.EpilogueBlock); + context.AppendInstruction(IRInstruction.Jmp, transform.BasicBlocks.EpilogueBlock); } } diff --git a/Source/Mosa.Compiler.Framework/TransformContext.cs b/Source/Mosa.Compiler.Framework/Transform.cs similarity index 99% rename from Source/Mosa.Compiler.Framework/TransformContext.cs rename to Source/Mosa.Compiler.Framework/Transform.cs index 05e7d7251e..edf46de4a0 100644 --- a/Source/Mosa.Compiler.Framework/TransformContext.cs +++ b/Source/Mosa.Compiler.Framework/Transform.cs @@ -8,7 +8,7 @@ namespace Mosa.Compiler.Framework; -public sealed class TransformContext +public sealed class Transform { #region Properties @@ -276,7 +276,7 @@ public Context Split(Context context) /// /// The node. /// - public BasicBlock Split(InstructionNode node) + public BasicBlock Split(Node node) { var newblock = CreateNewBlock(-1, node.Label); @@ -349,7 +349,7 @@ public static void UpdatePhiBlock(BasicBlock phiBlock) PhiHelper.UpdatePhiBlock(phiBlock); } - public static void UpdatePhi(InstructionNode node) + public static void UpdatePhi(Node node) { PhiHelper.UpdatePhi(node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/MergeBlocks.cs b/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/MergeBlocks.cs index b538fa838e..8f7649fe96 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/MergeBlocks.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/MergeBlocks.cs @@ -6,12 +6,12 @@ namespace Mosa.Compiler.Framework.Transforms.BasicBlocks; public class MergeBlocks : BaseBlockTransform { - public override int Process(TransformContext transformContext) + public override int Process(Transform transform) { - var basicBlocks = transformContext.BasicBlocks; - var hasProtectedRegions = transformContext.MethodCompiler.HasProtectedRegions; - var isInSSAForm = transformContext.MethodCompiler.IsInSSAForm; - var trace = transformContext.TraceLog; + var basicBlocks = transform.BasicBlocks; + var hasProtectedRegions = transform.MethodCompiler.HasProtectedRegions; + var isInSSAForm = transform.MethodCompiler.IsInSSAForm; + var trace = transform.TraceLog; var emptied = 0; var changed = true; diff --git a/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/RemoveUnreachableBlocks.cs b/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/RemoveUnreachableBlocks.cs index 62cc7fb072..2a78588fd1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/RemoveUnreachableBlocks.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/RemoveUnreachableBlocks.cs @@ -7,11 +7,11 @@ namespace Mosa.Compiler.Framework.Transforms.BasicBlocks; public class RemoveUnreachableBlocks : BaseBlockTransform { - public override int Process(TransformContext transformContext) + public override int Process(Transform transform) { - var basicBlocks = transformContext.BasicBlocks; - var hasProtectedRegions = transformContext.MethodCompiler.HasProtectedRegions; - var trace = transformContext.TraceLog; + var basicBlocks = transform.BasicBlocks; + var hasProtectedRegions = transform.MethodCompiler.HasProtectedRegions; + var trace = transform.TraceLog; var emptied = 0; diff --git a/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/SkipEmptyBlocks.cs b/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/SkipEmptyBlocks.cs index 66e4bce8ea..0295825fcd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/SkipEmptyBlocks.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/BasicBlocks/SkipEmptyBlocks.cs @@ -4,12 +4,12 @@ namespace Mosa.Compiler.Framework.Transforms.BasicBlocks; public class SkipEmptyBlocks : BaseBlockTransform { - public override int Process(TransformContext transformContext) + public override int Process(Transform transform) { - var basicBlocks = transformContext.BasicBlocks; - var hasProtectedRegions = transformContext.MethodCompiler.HasProtectedRegions; - var isInSSAForm = transformContext.IsInSSAForm; - var trace = transformContext.TraceLog; + var basicBlocks = transform.BasicBlocks; + var hasProtectedRegions = transform.MethodCompiler.HasProtectedRegions; + var isInSSAForm = transform.IsInSSAForm; + var trace = transform.TraceLog; var emptied = 0; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/BaseCallTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/BaseCallTransform.cs index 2745ee3857..00b1adf484 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/BaseCallTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/BaseCallTransform.cs @@ -14,7 +14,7 @@ public BasePlugTransform(BaseInstruction instruction, TransformType type, bool l #region Helpers - public static uint CalculateInterfaceMethodTableOffset(TransformContext transform, MosaMethod invokeTarget) + public static uint CalculateInterfaceMethodTableOffset(Transform transform, MosaMethod invokeTarget) { var slot = transform.TypeLayout.GetMethodSlot(invokeTarget); @@ -24,7 +24,7 @@ public static uint CalculateInterfaceMethodTableOffset(TransformContext transfor return transform.NativePointerSize * slot; } - public static uint CalculateInterfaceSlotOffset(TransformContext transform, MosaMethod invokeTarget) + public static uint CalculateInterfaceSlotOffset(Transform transform, MosaMethod invokeTarget) { var slot = CalculateInterfaceSlot(transform, invokeTarget.DeclaringType); @@ -34,14 +34,14 @@ public static uint CalculateInterfaceSlotOffset(TransformContext transform, Mosa return slot * transform.NativePointerSize; } - public static uint CalculateMethodTableOffset(TransformContext transform, MosaMethod invokeTarget) + public static uint CalculateMethodTableOffset(Transform transform, MosaMethod invokeTarget) { var slot = transform.TypeLayout.GetMethodSlot(invokeTarget); return transform.NativePointerSize * (slot + 14); // 14 is the offset into the TypeDef to the start of the MethodTable } - public static uint CalculateParameterStackSize(TransformContext transform, List operands) + public static uint CalculateParameterStackSize(Transform transform, List operands) { uint stackSize = 0; @@ -56,7 +56,7 @@ public static uint CalculateParameterStackSize(TransformContext transform, List< return stackSize; } - public static void MakeCall(TransformContext transform, Context context, Operand target, Operand result, List operands) + public static void MakeCall(Transform transform, Context context, Operand target, Operand result, List operands) { //var data = TypeLayout.__GetMethodInfo(method); @@ -75,12 +75,12 @@ public static void MakeCall(TransformContext transform, Context context, Operand FreeStackAfterCall(transform, context, totalStack); } - private static uint CalculateInterfaceSlot(TransformContext transform, MosaType interaceType) + private static uint CalculateInterfaceSlot(Transform transform, MosaType interaceType) { return transform.TypeLayout.GetInterfaceSlot(interaceType); } - private static uint CalculateReturnSize(TransformContext transform, Operand result) + private static uint CalculateReturnSize(Transform transform, Operand result) { if (result == null) return 0; @@ -91,7 +91,7 @@ private static uint CalculateReturnSize(TransformContext transform, Operand resu return transform.MethodCompiler.GetSize(result, true); } - private static void FreeStackAfterCall(TransformContext transform, Context context, uint stackSize) + private static void FreeStackAfterCall(Transform transform, Context context, uint stackSize) { if (stackSize == 0) return; @@ -99,7 +99,7 @@ private static void FreeStackAfterCall(TransformContext transform, Context conte context.AppendInstruction(transform.AddInstruction, transform.StackPointer, transform.StackPointer, Operand.CreateConstant32(stackSize)); } - private static void GetReturnValue(TransformContext transform, Context context, Operand result) + private static void GetReturnValue(Transform transform, Context context, Operand result) { if (result == null) return; @@ -149,7 +149,7 @@ private static void GetReturnValue(TransformContext transform, Context context, } } - private static void Push(TransformContext transform, Context context, Operand operand, uint offset) + private static void Push(Transform transform, Context context, Operand operand, uint offset) { var offsetOperand = Operand.CreateConstant32(offset); @@ -183,7 +183,7 @@ private static void Push(TransformContext transform, Context context, Operand op } } - private static void PushOperands(TransformContext transform, Context context, List operands, uint offset) + private static void PushOperands(Transform transform, Context context, List operands, uint offset) { for (var index = operands.Count - 1; index >= 0; index--) { @@ -196,7 +196,7 @@ private static void PushOperands(TransformContext transform, Context context, Li } } - private static void ReserveStackSizeForCall(TransformContext transform, Context context, uint stackSize) + private static void ReserveStackSizeForCall(Transform transform, Context context, uint stackSize) { if (stackSize == 0) return; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/CallDynamic.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/CallDynamic.cs index 84ef529f1a..2d7ead0f78 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/CallDynamic.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/CallDynamic.cs @@ -11,12 +11,12 @@ public CallDynamic() : base(IRInstruction.CallDynamic, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var call = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/CallInterface.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/CallInterface.cs index 0d0ad609f1..dee5c1b488 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/CallInterface.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/CallInterface.cs @@ -13,12 +13,12 @@ public CallInterface() : base(IRInstruction.CallInterface, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var call = context.Operand1; var method = call.Method; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/CallStatic.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/CallStatic.cs index aa4f63fb34..4923687164 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/CallStatic.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/CallStatic.cs @@ -13,12 +13,12 @@ public CallStatic() : base(IRInstruction.CallStatic, TransformType.Manual | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var call = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/CallVirtual.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/CallVirtual.cs index 249cdf100a..8e62317532 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/CallVirtual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/CallVirtual.cs @@ -13,12 +13,12 @@ public CallVirtual() : base(IRInstruction.CallVirtual, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var call = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn32.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn32.cs index 6ba39c919d..2202931518 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn32.cs @@ -11,12 +11,12 @@ public SetReturn32() : base(IRInstruction.SetReturn32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move32, Operand.CreateCPURegister32(transform.Architecture.ReturnRegister), context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn64.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn64.cs index c70e33da2e..a9027d5b6f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturn64.cs @@ -11,12 +11,12 @@ public SetReturn64() : base(IRInstruction.SetReturn64, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnCompound.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnCompound.cs index 5713ab037d..32d074bbf0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnCompound.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnCompound.cs @@ -11,12 +11,12 @@ public SetReturnCompound() : base(IRInstruction.SetReturnCompound, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var offset = Operand.CreateConstant32(transform.Architecture.OffsetOfFirstParameter); context.SetInstruction(IRInstruction.StoreCompound, null, transform.StackFrame, offset, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnManagedPointer.cs index 181c8ad415..f43c86b5d5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnManagedPointer.cs @@ -11,12 +11,12 @@ public SetReturnManagedPointer() : base(IRInstruction.SetReturnManagedPointer, T { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.MoveManagedPointer, Operand.CreateCPURegisterObject(transform.Architecture.ReturnRegister), context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnObject.cs index dd4656b4d7..885e56cc3f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnObject.cs @@ -11,12 +11,12 @@ public SetReturnObject() : base(IRInstruction.SetReturnObject, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.MoveObject, Operand.CreateCPURegisterObject(transform.Architecture.ReturnRegister), context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR4.cs index 34689a2198..95fb272e19 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR4.cs @@ -11,12 +11,12 @@ public SetReturnR4() : base(IRInstruction.SetReturnR4, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.MoveR4, Operand.CreateCPURegisterR4(transform.Architecture.ReturnFloatingPointRegister), context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR8.cs index 8f1a9e14f0..849540e517 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Call/SetReturnR8.cs @@ -11,12 +11,12 @@ public SetReturnR8() : base(IRInstruction.SetReturnR8, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.MoveR8, Operand.CreateCPURegisterR8(transform.Architecture.ReturnFloatingPointRegister), context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/BaseCheckedConversionTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/BaseCheckedConversionTransform.cs index 8e23116ee6..b74d9ee0bf 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/BaseCheckedConversionTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/BaseCheckedConversionTransform.cs @@ -10,7 +10,7 @@ public BaseCheckedConversionTransform(BaseInstruction instruction, TransformType : base(instruction, type, log) { } - public void CallCheckOverflow(TransformContext transform, Context context, string vmcall) + public void CallCheckOverflow(Transform transform, Context context, string vmcall) { var result = context.Result; var source = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToI16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToI16.cs index fc726884b5..73538a243d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToI16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToI16.cs @@ -13,12 +13,12 @@ public CheckedConversionI32ToI16() : base(IRInstruction.CheckedConversionI32ToI1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I4ToI2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU16.cs index 1fd394bb6a..ab69ccb95e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU16.cs @@ -13,12 +13,12 @@ public CheckedConversionI32ToU16() : base(IRInstruction.CheckedConversionI32ToU1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I4ToU2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU32.cs index 23f2f07272..b36a72dced 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU32.cs @@ -13,12 +13,12 @@ public CheckedConversionI32ToU32() : base(IRInstruction.CheckedConversionI32ToU3 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I4ToU4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU64.cs index 16caefda0a..6c171b8703 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI32ToU64.cs @@ -13,12 +13,12 @@ public CheckedConversionI32ToU64() : base(IRInstruction.CheckedConversionI32ToU6 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I4ToU8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI16.cs index ad0620e02a..17d88995c2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI16.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToI16() : base(IRInstruction.CheckedConversionI64ToI1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToI2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI32.cs index 1eb45ca73d..4519ce9931 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI32.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToI32() : base(IRInstruction.CheckedConversionI64ToI3 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToI4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI8.cs index b8986363f6..adf9999b3f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToI8.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToI8() : base(IRInstruction.CheckedConversionI64ToI8, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToI1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU16.cs index a4ec617976..945700d7a9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU16.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToU16() : base(IRInstruction.CheckedConversionI64ToU1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToU2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU32.cs index 0476cf1941..0bc930e198 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU32.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToU32() : base(IRInstruction.CheckedConversionI64ToU3 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToU4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU64.cs index afcea07598..42097162a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU64.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToU64() : base(IRInstruction.CheckedConversionI64ToU6 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToU8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU8.cs index de342a51ea..0bffc0f4da 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionI64ToU8.cs @@ -13,12 +13,12 @@ public CheckedConversionI64ToU8() : base(IRInstruction.CheckedConversionI64ToU8, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "I8ToU1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI16.cs index 4b22c65b62..7233bb6b9a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI16.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToI16() : base(IRInstruction.CheckedConversionR4ToI16, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToI2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI32.cs index 31fb77ea15..b7284ac6f2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI32.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToI32() : base(IRInstruction.CheckedConversionR4ToI32, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToI4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI64.cs index 13ecdd3b52..6572859e72 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI64.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToI64() : base(IRInstruction.CheckedConversionR4ToI64, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToI8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI8.cs index 5d82ee538b..4a364da87d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToI8.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToI8() : base(IRInstruction.CheckedConversionR4ToI8, T public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToI1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU16.cs index 56299b9c45..f63df2de8d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU16.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToU16() : base(IRInstruction.CheckedConversionR4ToU16, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToU2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU32.cs index 8b11b6f7f4..1cb72f37df 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU32.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToU32() : base(IRInstruction.CheckedConversionR4ToU32, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToU4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU64.cs index e53937ba83..4ac9d236a8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR4ToU64.cs @@ -13,12 +13,12 @@ public CheckedConversionR4ToU64() : base(IRInstruction.CheckedConversionR4ToU64, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R4ToU8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI16.cs index ac1da80961..3ecd036268 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI16.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToI16() : base(IRInstruction.CheckedConversionR8ToI16, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToI2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI32.cs index 3edfc3b812..0a79ab4816 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI32.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToI32() : base(IRInstruction.CheckedConversionR8ToI32, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToI4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI64.cs index 1ca5cccbf6..79daa5fdc2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI64.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToI64() : base(IRInstruction.CheckedConversionR8ToI64, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToI8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI8.cs index dc9552ee25..50a09fa684 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToI8.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToI8() : base(IRInstruction.CheckedConversionR8ToI8, T public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToI1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU16.cs index d921cf8387..38c0aa4572 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU16.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToU16() : base(IRInstruction.CheckedConversionR8ToU16, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToU2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU32.cs index 2c5ea575a9..50550a40b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU32.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToU32() : base(IRInstruction.CheckedConversionR8ToU32, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToU4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU64.cs index ce0a24c2c7..7596b43ee8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionR8ToU64.cs @@ -13,12 +13,12 @@ public CheckedConversionR8ToU64() : base(IRInstruction.CheckedConversionR8ToU64, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "R8ToU8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI16.cs index adf839cc61..1d52844f02 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI16.cs @@ -13,12 +13,12 @@ public CheckedConversionU32ToI16() : base(IRInstruction.CheckedConversionU32ToI1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U4ToI2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI8.cs index 86f073319f..6cd6b217a6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToI8.cs @@ -13,12 +13,12 @@ public CheckedConversionU32ToI8() : base(IRInstruction.CheckedConversionU32ToI8, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U4ToI1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToU16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToU16.cs index 288a59b05b..3a62d004f0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToU16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU32ToU16.cs @@ -13,12 +13,12 @@ public CheckedConversionU32ToU16() : base(IRInstruction.CheckedConversionU32ToU1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U4ToU2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI16.cs index c93d6f0827..e4f0ee223e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI16.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToI16() : base(IRInstruction.CheckedConversionU64ToI1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToI2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI32.cs index b604a293ab..eadf4f91bb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI32.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToI32() : base(IRInstruction.CheckedConversionU64ToI3 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToI4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI64.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI64.cs index cf385dacff..b7fee13f89 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI64.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToI64() : base(IRInstruction.CheckedConversionU64ToI6 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToI8"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI8.cs index 610cfe1e4b..d60ad1e81a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToI8.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToI8() : base(IRInstruction.CheckedConversionU64ToI8, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToI1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU16.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU16.cs index 946e7310a0..6af3b441ab 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU16.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToU16() : base(IRInstruction.CheckedConversionU64ToU1 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToU2"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU32.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU32.cs index 1f4ac709dc..d1bce909a4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU32.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToU32() : base(IRInstruction.CheckedConversionU64ToU3 public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToU4"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU8.cs b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU8.cs index 690258687b..ed50d76b44 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/CheckedConversion/CheckedConversionU64ToU8.cs @@ -13,12 +13,12 @@ public CheckedConversionU64ToU8() : base(IRInstruction.CheckedConversionU64ToU8, public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CallCheckOverflow(transform, context, "U8ToI1"); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Compound/BaseCompoundTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Compound/BaseCompoundTransform.cs index df5c4c5ec6..6176c98673 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Compound/BaseCompoundTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Compound/BaseCompoundTransform.cs @@ -12,7 +12,7 @@ public BaseCompoundTransform(BaseInstruction instruction, TransformType type, bo #region Helpers - protected static void CopyCompound(TransformContext transform, Context context, Operand destinationBase, Operand destination, Operand sourceBase, Operand source, Operand operandType) + protected static void CopyCompound(Transform transform, Context context, Operand destinationBase, Operand destination, Operand sourceBase, Operand source, Operand operandType) { var size = transform.MethodCompiler.GetSize(operandType); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadCompound.cs b/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadCompound.cs index 5409bdb344..6e4b1baac3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadCompound.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadCompound.cs @@ -13,12 +13,12 @@ public LoadCompound() : base(IRInstruction.LoadCompound, TransformType.Manual | public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CopyCompound(transform, context, transform.StackFrame, context.Result, context.Operand1, context.Operand2, context.Result); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadParamCompound.cs b/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadParamCompound.cs index e673c9bdbc..aeb16f01c5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadParamCompound.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Compound/LoadParamCompound.cs @@ -13,12 +13,12 @@ public LoadParamCompound() : base(IRInstruction.LoadParamCompound, TransformType public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CopyCompound(transform, context, transform.StackFrame, context.Result, transform.StackFrame, context.Operand1, context.Result); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Compound/MoveCompound.cs b/Source/Mosa.Compiler.Framework/Transforms/Compound/MoveCompound.cs index aa108f8181..83f02aab10 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Compound/MoveCompound.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Compound/MoveCompound.cs @@ -13,12 +13,12 @@ public MoveCompound() : base(IRInstruction.MoveCompound, TransformType.Manual | public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CopyCompound(transform, context, transform.StackFrame, context.Result, transform.StackFrame, context.Operand1, context.Result); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreCompound.cs b/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreCompound.cs index 28629a84fb..12d3f3432c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreCompound.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreCompound.cs @@ -13,12 +13,12 @@ public StoreCompound() : base(IRInstruction.StoreCompound, TransformType.Manual public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CopyCompound(transform, context, context.Operand1, context.Operand2, transform.StackFrame, context.Operand3, context.Operand3); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreParamCompound.cs b/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreParamCompound.cs index 40fbb028be..b2ad735fab 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreParamCompound.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Compound/StoreParamCompound.cs @@ -13,12 +13,12 @@ public StoreParamCompound() : base(IRInstruction.StoreParamCompound, TransformTy public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { CopyCompound(transform, context, transform.StackFrame, context.Operand1, transform.StackFrame, context.Operand2, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Devirtualize/CallVirtual.cs b/Source/Mosa.Compiler.Framework/Transforms/Devirtualize/CallVirtual.cs index eab7f0b791..069531d731 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Devirtualize/CallVirtual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Devirtualize/CallVirtual.cs @@ -10,7 +10,7 @@ public CallVirtual() : base(IRInstruction.CallVirtual, TransformType.Manual | Tr public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.Devirtualization) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = context.Operand1.Method; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/BaseExceptionTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/BaseExceptionTransform.cs index 97f35a85ab..00404b690d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/BaseExceptionTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/BaseExceptionTransform.cs @@ -12,7 +12,7 @@ public BaseExceptionTransform(BaseInstruction instruction, TransformType type, b #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) #region Helpers - public MosaExceptionHandler FindImmediateExceptionHandler(TransformContext transform, int label) + public MosaExceptionHandler FindImmediateExceptionHandler(Transform transform, int label) { foreach (var handler in transform.Method.ExceptionHandlers) { @@ -34,7 +34,7 @@ public MosaExceptionHandler FindImmediateExceptionHandler(TransformContext trans return null; } - public MosaExceptionHandler FindNextEnclosingFinallyHandler(TransformContext transform, MosaExceptionHandler exceptionHandler) + public MosaExceptionHandler FindNextEnclosingFinallyHandler(Transform transform, MosaExceptionHandler exceptionHandler) { var index = transform.Method.ExceptionHandlers.IndexOf(exceptionHandler); var at = exceptionHandler.TryStart; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionEnd.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionEnd.cs index 3c95288098..11c8ce09c3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionEnd.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionEnd.cs @@ -14,7 +14,7 @@ public ExceptionEnd() : base(IRInstruction.ExceptionEnd, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //var exceptionManager = transform.GetManager(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionStart.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionStart.cs index d79555fe3a..a2c641fb92 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionStart.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/ExceptionStart.cs @@ -11,7 +11,7 @@ public ExceptionStart() : base(IRInstruction.ExceptionStart, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var exceptionVirtualRegister = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyEnd.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyEnd.cs index 215d5e0c2f..fd4f6ee783 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyEnd.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyEnd.cs @@ -14,7 +14,7 @@ public FinallyEnd() : base(IRInstruction.FinallyEnd, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var exceptionManager = transform.GetManager(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyStart.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyStart.cs index 053769c92b..e38a122854 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyStart.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/FinallyStart.cs @@ -13,7 +13,7 @@ public FinallyStart() : base(IRInstruction.FinallyStart, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var exceptionManager = transform.GetManager(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/Flow.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/Flow.cs index 81997e6820..96b6e6c1cb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/Flow.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/Flow.cs @@ -11,7 +11,7 @@ public Flow() : base(IRInstruction.Flow, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/Throw.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/Throw.cs index 2e9e1355b3..d7a587b835 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/Throw.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/Throw.cs @@ -11,7 +11,7 @@ public Throw() : base(IRInstruction.Throw, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.Compiler.PlatformInternalRuntimeType.FindMethodByName("ExceptionHandler"); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/TryEnd.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/TryEnd.cs index d236db2284..6c997639a3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/TryEnd.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/TryEnd.cs @@ -14,7 +14,7 @@ public TryEnd() : base(IRInstruction.TryEnd, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var label = TraverseBackToNativeBlock(context.Block).Label; var immediate = FindImmediateExceptionHandler(transform, label); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Exception/TryStart.cs b/Source/Mosa.Compiler.Framework/Transforms/Exception/TryStart.cs index 0dad90e177..48d5b74877 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Exception/TryStart.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Exception/TryStart.cs @@ -11,7 +11,7 @@ public TryStart() : base(IRInstruction.TryStart, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckArrayBounds.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckArrayBounds.cs index 34fc66bc81..88263ca52a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckArrayBounds.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckArrayBounds.cs @@ -8,12 +8,12 @@ public CheckArrayBounds() : base(IRInstruction.CheckArrayBounds, TransformType.M { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var array = context.Operand1; var index = context.Operand2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowDivideByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowDivideByZero.cs index b7c45a5854..730c4059c7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowDivideByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowDivideByZero.cs @@ -8,12 +8,12 @@ public CheckThrowDivideByZero() : base(IRInstruction.CheckThrowDivideByZero, Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowIndexOutOfRange.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowIndexOutOfRange.cs index 9d0337478b..8f294676ff 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowIndexOutOfRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowIndexOutOfRange.cs @@ -8,12 +8,12 @@ public CheckThrowIndexOutOfRange() : base(IRInstruction.CheckThrowIndexOutOfRang { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowOverflow.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowOverflow.cs index ced1f26232..629dabb67f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowOverflow.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/CheckThrowOverflow.cs @@ -8,12 +8,12 @@ public CheckThrowOverflow() : base(IRInstruction.CheckThrowOverflow, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/Switch.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/Switch.cs index 9eb7932020..febf989a5e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/Switch.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/Switch.cs @@ -8,12 +8,12 @@ public Switch() : base(IRInstruction.Switch, TransformType.Manual | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var targets = context.BranchTargets; var blocks = transform.CreateNewBlockContexts(targets.Count, context.Label); diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowDivideByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowDivideByZero.cs index ab596ccbef..fb1924e35e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowDivideByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowDivideByZero.cs @@ -8,12 +8,12 @@ public ThrowDivideByZero() : base(IRInstruction.ThrowDivideByZero, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.Compiler.InternalRuntimeType.FindMethodByName("ThrowDivideByZeroException"); var symbolOperand = Operand.CreateLabel(method, transform.Is32BitPlatform); diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowIndexOutOfRange.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowIndexOutOfRange.cs index 28a2b2b181..5a92849402 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowIndexOutOfRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowIndexOutOfRange.cs @@ -8,12 +8,12 @@ public ThrowIndexOutOfRange() : base(IRInstruction.ThrowIndexOutOfRange, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.Compiler.InternalRuntimeType.FindMethodByName("ThrowIndexOutOfRangeException"); var symbolOperand = Operand.CreateLabel(method, transform.Is32BitPlatform); diff --git a/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowOverflow.cs b/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowOverflow.cs index 066c8ddc83..18f1799369 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowOverflow.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/IR/ThrowOverflow.cs @@ -8,12 +8,12 @@ public ThrowOverflow() : base(IRInstruction.ThrowOverflow, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.Compiler.InternalRuntimeType.FindMethodByName("ThrowOverflowException"); var symbolOperand = Operand.CreateLabel(method, transform.Is32BitPlatform); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Add64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Add64.cs index 61038e49b2..f5767af9aa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Add64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Add64.cs @@ -8,7 +8,7 @@ public Add64() : base(IRInstruction.Add64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/And64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/And64.cs index 47328199ad..1e77ff1411 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/And64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/And64.cs @@ -8,7 +8,7 @@ public And64() : base(IRInstruction.And64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ArithShiftRight64By32.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ArithShiftRight64By32.cs index df27fc2848..82b09e51d7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ArithShiftRight64By32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ArithShiftRight64By32.cs @@ -8,12 +8,12 @@ public ArithShiftRight64By32() : base(IRInstruction.ArithShiftRight64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32 && context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 == 32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/BaseLower32Transform.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/BaseLower32Transform.cs index 9622def0d5..71e8bc9da1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/BaseLower32Transform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/BaseLower32Transform.cs @@ -10,7 +10,7 @@ public BaseLower32Transform(BaseInstruction instruction, TransformType type, boo //public override int Priority => 0; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32; } diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64.cs index 94236773fc..6f04176180 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64.cs @@ -10,7 +10,7 @@ public Branch64() : base(IRInstruction.Branch64, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.NextBlocks.Count == 1) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //Debug.Assert(context.ConditionCode != ConditionCode.Equal); @@ -36,10 +36,10 @@ public override void Transform(Context context, TransformContext transform) var newBlocks = transform.CreateNewBlockContexts(4, context.Label); // no branch - TransformContext.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); + Framework.Transform.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); // Branch - TransformContext.UpdatePhiTarget(target, context.Block, newBlocks[3].Block); + Framework.Transform.UpdatePhiTarget(target, context.Block, newBlocks[3].Block); var op0Low = transform.VirtualRegisters.Allocate32(); var op0High = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64Extends.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64Extends.cs index 0bc51c9ce7..f8a47cc9ac 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64Extends.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Branch64Extends.cs @@ -8,7 +8,7 @@ public Branch64Extends() : base(IRInstruction.Branch64, TransformType.Manual | T { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.IsLowerTo32) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var t1 = context.Operand1.Definitions[0].Operand1; var t2 = context.Operand2.Definitions[0].Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare32x64.cs index c0470485b0..911bc8f0ca 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare32x64.cs @@ -8,7 +8,7 @@ public Compare32x64() : base(IRInstruction.Compare32x64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32EqualOrNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32EqualOrNotEqual.cs index 9b57e4c27a..5120d6d3f9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32EqualOrNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32EqualOrNotEqual.cs @@ -8,7 +8,7 @@ public Compare64x32EqualOrNotEqual() : base(IRInstruction.Compare64x32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -16,7 +16,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32Rest.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32Rest.cs index d97e3e2d15..bb9c3f1f48 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32Rest.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32Rest.cs @@ -10,7 +10,7 @@ public Compare64x32Rest() : base(IRInstruction.Compare64x32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode is ConditionCode.Equal or ConditionCode.NotEqual) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.ConditionCode != ConditionCode.Equal); @@ -35,7 +35,7 @@ public override void Transform(Context context, TransformContext transform) var nextBlock = transform.Split(context); var newBlocks = transform.CreateNewBlockContexts(5, context.Label); - TransformContext.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); + Framework.Transform.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); var op0Low = transform.VirtualRegisters.Allocate32(); var op0High = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32RestInSSA.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32RestInSSA.cs index 84d7a451d8..68fc242e0e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32RestInSSA.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32RestInSSA.cs @@ -8,7 +8,7 @@ public Compare64x32RestInSSA() : base(IRInstruction.Compare64x32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode is ConditionCode.Equal or ConditionCode.NotEqual) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; @@ -31,7 +31,7 @@ public override void Transform(Context context, TransformContext transform) var nextBlock = transform.Split(context); var newBlocks = transform.CreateNewBlockContexts(5, context.Label); - TransformContext.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); + Framework.Transform.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); var op0Low = transform.VirtualRegisters.Allocate32(); var op0High = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32UnsignedGreater.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32UnsignedGreater.cs index d0b53a4bbf..7539d4bc5c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32UnsignedGreater.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x32UnsignedGreater.cs @@ -9,7 +9,7 @@ public Compare64x32UnsignedGreater() : base(IRInstruction.Compare64x32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -17,7 +17,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64EqualOrNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64EqualOrNotEqual.cs index d7d1788dc6..745f81388b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64EqualOrNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64EqualOrNotEqual.cs @@ -8,7 +8,7 @@ public Compare64x64EqualOrNotEqual() : base(IRInstruction.Compare64x64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -16,7 +16,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64Rest.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64Rest.cs index 6b5c984335..7a1748cc31 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64Rest.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64Rest.cs @@ -10,7 +10,7 @@ public Compare64x64Rest() : base(IRInstruction.Compare64x64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode is ConditionCode.Equal or ConditionCode.NotEqual) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.ConditionCode != ConditionCode.Equal); @@ -37,7 +37,7 @@ public override void Transform(Context context, TransformContext transform) var nextBlock = transform.Split(context); var newBlocks = transform.CreateNewBlockContexts(5, context.Label); - TransformContext.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); + Framework.Transform.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); var op0Low = transform.VirtualRegisters.Allocate32(); var op0High = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64RestInSSA.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64RestInSSA.cs index f0ece79624..c902242604 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64RestInSSA.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Compare64x64RestInSSA.cs @@ -8,7 +8,7 @@ public Compare64x64RestInSSA() : base(IRInstruction.Compare64x64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode is ConditionCode.Equal or ConditionCode.NotEqual) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; @@ -33,7 +33,7 @@ public override void Transform(Context context, TransformContext transform) var nextBlock = transform.Split(context); var newBlocks = transform.CreateNewBlockContexts(5, context.Label); - TransformContext.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); + Framework.Transform.UpdatePhiTargets(nextBlock.Block.NextBlocks, context.Block, nextBlock.Block); var op0Low = transform.VirtualRegisters.Allocate32(); var op0High = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Load64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Load64.cs index d58bb5e129..0ee0fc4087 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Load64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Load64.cs @@ -8,7 +8,7 @@ public Load64() : base(IRInstruction.Load64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParam64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParam64.cs index e50ad098fc..0e05df8a1e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParam64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParam64.cs @@ -8,7 +8,7 @@ public LoadParam64() : base(IRInstruction.LoadParam64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend16x64.cs index 239d0e3b04..2c9b0b30f3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend16x64.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend16x64() : base(IRInstruction.LoadParamSignExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend32x64.cs index 67d9cf6757..4ba9479336 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend32x64.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend32x64() : base(IRInstruction.LoadParamSignExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend8x64.cs index 656b6b25b3..83d31475c2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamSignExtend8x64.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend8x64() : base(IRInstruction.LoadParamSignExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend16x64.cs index 4477fc89f7..1fe3d38d4b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend16x64.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend16x64() : base(IRInstruction.LoadParamZeroExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend32x64.cs index d75ca606bf..59ff6ead0a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend32x64.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend32x64() : base(IRInstruction.LoadParamZeroExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend8x64.cs index aecaa6549c..e87c968c3c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadParamZeroExtend8x64.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend8x64() : base(IRInstruction.LoadParamZeroExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend16x64.cs index 9870d28474..a3be36852b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend16x64.cs @@ -8,7 +8,7 @@ public LoadSignExtend16x64() : base(IRInstruction.LoadSignExtend16x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend32x64.cs index c232d8b7d7..4d821ab586 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend32x64.cs @@ -8,7 +8,7 @@ public LoadSignExtend32x64() : base(IRInstruction.LoadSignExtend32x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend8x64.cs index dfd3965692..9f9d373105 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadSignExtend8x64.cs @@ -8,7 +8,7 @@ public LoadSignExtend8x64() : base(IRInstruction.LoadSignExtend8x64, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend16x64.cs index a940c2ac0c..10a807d017 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend16x64.cs @@ -8,7 +8,7 @@ public LoadZeroExtend16x64() : base(IRInstruction.LoadZeroExtend16x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend32x64.cs index d868125e89..a6b1974cf9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend32x64.cs @@ -8,7 +8,7 @@ public LoadZeroExtend32x64() : base(IRInstruction.LoadZeroExtend32x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend8x64.cs index eda03774a2..913ab2257a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/LoadZeroExtend8x64.cs @@ -8,7 +8,7 @@ public LoadZeroExtend8x64() : base(IRInstruction.LoadZeroExtend8x64, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var address = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Move64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Move64.cs index 69ca131d63..d15c0699dc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Move64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Move64.cs @@ -8,7 +8,7 @@ public Move64() : base(IRInstruction.Move64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulSigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulSigned64.cs index ee9e95fbae..8d802a4da2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulSigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulSigned64.cs @@ -8,7 +8,7 @@ public MulSigned64() : base(IRInstruction.MulSigned64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { // same code as with MulUnsigned64! diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulUnsigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulUnsigned64.cs index b42842e968..80450725c6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulUnsigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/MulUnsigned64.cs @@ -8,7 +8,7 @@ public MulUnsigned64() : base(IRInstruction.MulUnsigned64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { // same code as with MulUnsigned64! diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Not64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Not64.cs index f5b275f4dc..30c3167337 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Not64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Not64.cs @@ -8,7 +8,7 @@ public Not64() : base(IRInstruction.Not64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Or64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Or64.cs index 7b4ece7c74..2bd0bce2e2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Or64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Or64.cs @@ -8,7 +8,7 @@ public Or64() : base(IRInstruction.Or64, TransformType.Manual | TransformType.Op { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Phi64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Phi64.cs index c9206f4453..fcc18d8689 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Phi64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Phi64.cs @@ -8,7 +8,7 @@ public Phi64() : base(IRInstruction.Phi64, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.IsLowerTo32) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var ctx = new Context(context.Node); diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32.cs index 9b36f5cd71..7f3b47bd35 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32.cs @@ -8,12 +8,12 @@ public ShiftLeft64ByConstant32() : base(IRInstruction.ShiftLeft64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32 && context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 <= 32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32Plus.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32Plus.cs index 6adea41f7d..3805dde4ce 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32Plus.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftLeft64ByConstant32Plus.cs @@ -8,12 +8,12 @@ public ShiftLeft64ByConstant32Plus() : base(IRInstruction.ShiftLeft64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32 && context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 > 32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32.cs index f6f9f42735..fd4257fabc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32.cs @@ -8,12 +8,12 @@ public ShiftRight64ByConstant32() : base(IRInstruction.ShiftRight64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32 && context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 <= 32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32Plus.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32Plus.cs index bec1fd1e9d..70e6ce8a71 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32Plus.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ShiftRight64ByConstant32Plus.cs @@ -8,12 +8,12 @@ public ShiftRight64ByConstant32Plus() : base(IRInstruction.ShiftRight64, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32 && context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 > 32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend16x64.cs index 89978e1678..8b0364d949 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend16x64.cs @@ -8,12 +8,12 @@ public SignExtend16x64() : base(IRInstruction.SignExtend16x64, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.IsLowerTo32; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend32x64.cs index 8ac12aa2a9..ac76c28f1f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend32x64.cs @@ -8,7 +8,7 @@ public SignExtend32x64() : base(IRInstruction.SignExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend8x64.cs index 46431a99b4..f9d6b4019c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/SignExtend8x64.cs @@ -8,7 +8,7 @@ public SignExtend8x64() : base(IRInstruction.SignExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Store64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Store64.cs index f3073b96da..f05b219b80 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Store64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Store64.cs @@ -8,7 +8,7 @@ public Store64() : base(IRInstruction.Store64, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var address = context.Operand1; var offset = context.Operand2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/StoreParam64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/StoreParam64.cs index 89a67d06a4..16aa822b1d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/StoreParam64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/StoreParam64.cs @@ -8,7 +8,7 @@ public StoreParam64() : base(IRInstruction.StoreParam64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var offset = context.Operand1; var value = context.Operand2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Sub64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Sub64.cs index 3918c01cc8..431cf99974 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Sub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Sub64.cs @@ -8,7 +8,7 @@ public Sub64() : base(IRInstruction.Sub64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Truncate64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Truncate64x32.cs index 9a4c0bedde..1bf3819e96 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Truncate64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Truncate64x32.cs @@ -8,7 +8,7 @@ public Truncate64x32() : base(IRInstruction.Truncate64x32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.GetLow32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Xor64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Xor64.cs index 5fe3d816fa..e9183efcd9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Xor64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/Xor64.cs @@ -8,7 +8,7 @@ public Xor64() : base(IRInstruction.Xor64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend16x64.cs index 5139ca3580..de580a4f4d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend16x64.cs @@ -8,7 +8,7 @@ public ZeroExtend16x64() : base(IRInstruction.ZeroExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend32x64.cs index ab3643dcd5..45a2923194 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend32x64.cs @@ -8,7 +8,7 @@ public ZeroExtend32x64() : base(IRInstruction.ZeroExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend8x64.cs index 98d7b98354..caf3d73111 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/LowerTo32/ZeroExtend8x64.cs @@ -8,7 +8,7 @@ public ZeroExtend8x64() : base(IRInstruction.ZeroExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAMinusBB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAMinusBB.cs index c1dd55141c..9549534a00 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAMinusBB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAMinusBB.cs @@ -14,7 +14,7 @@ public Signed32AAMinusBB() : base(IRInstruction.Sub32, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBMinus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBMinus2AB.cs index 7affe8274d..72515eff46 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBMinus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBMinus2AB.cs @@ -14,7 +14,7 @@ public Signed32AAPlusBBMinus2AB() : base(IRInstruction.Sub32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Signed32AAPlusBBMinus2AB_v1() : base(IRInstruction.Sub32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Signed32AAPlusBBMinus2AB_v2() : base(IRInstruction.Sub32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Signed32AAPlusBBMinus2AB_v3() : base(IRInstruction.Sub32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBPlus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBPlus2AB.cs index 30564b55e7..51ea108b14 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBPlus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32AAPlusBBPlus2AB.cs @@ -14,7 +14,7 @@ public Signed32AAPlusBBPlus2AB() : base(IRInstruction.Add32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Signed32AAPlusBBPlus2AB_v1() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Signed32AAPlusBBPlus2AB_v2() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Signed32AAPlusBBPlus2AB_v3() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -390,7 +390,7 @@ public Signed32AAPlusBBPlus2AB_v4() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -458,7 +458,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -484,7 +484,7 @@ public Signed32AAPlusBBPlus2AB_v5() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -552,7 +552,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -578,7 +578,7 @@ public Signed32AAPlusBBPlus2AB_v6() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -646,7 +646,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -672,7 +672,7 @@ public Signed32AAPlusBBPlus2AB_v7() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -740,7 +740,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32PerfectSquareFormula.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32PerfectSquareFormula.cs index 9da243587b..ddd3f03e4e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32PerfectSquareFormula.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed32PerfectSquareFormula.cs @@ -14,7 +14,7 @@ public Signed32PerfectSquareFormula() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -64,7 +64,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -92,7 +92,7 @@ public Signed32PerfectSquareFormula_v1() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -170,7 +170,7 @@ public Signed32PerfectSquareFormula_v2() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -220,7 +220,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -248,7 +248,7 @@ public Signed32PerfectSquareFormula_v3() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -298,7 +298,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -326,7 +326,7 @@ public Signed32PerfectSquareFormula_v4() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -376,7 +376,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -404,7 +404,7 @@ public Signed32PerfectSquareFormula_v5() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -454,7 +454,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -482,7 +482,7 @@ public Signed32PerfectSquareFormula_v6() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -532,7 +532,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -560,7 +560,7 @@ public Signed32PerfectSquareFormula_v7() : base(IRInstruction.Add32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -610,7 +610,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAMinusBB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAMinusBB.cs index 3ef4a14949..f6b768ee6e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAMinusBB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAMinusBB.cs @@ -14,7 +14,7 @@ public Signed64AAMinusBB() : base(IRInstruction.Sub64, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBMinus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBMinus2AB.cs index 6d9cd451b4..07c071f86a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBMinus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBMinus2AB.cs @@ -14,7 +14,7 @@ public Signed64AAPlusBBMinus2AB() : base(IRInstruction.Sub64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Signed64AAPlusBBMinus2AB_v1() : base(IRInstruction.Sub64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Signed64AAPlusBBMinus2AB_v2() : base(IRInstruction.Sub64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Signed64AAPlusBBMinus2AB_v3() : base(IRInstruction.Sub64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBPlus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBPlus2AB.cs index a884a7da8e..a49dee02c4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBPlus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64AAPlusBBPlus2AB.cs @@ -14,7 +14,7 @@ public Signed64AAPlusBBPlus2AB() : base(IRInstruction.Add64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Signed64AAPlusBBPlus2AB_v1() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Signed64AAPlusBBPlus2AB_v2() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Signed64AAPlusBBPlus2AB_v3() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -390,7 +390,7 @@ public Signed64AAPlusBBPlus2AB_v4() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -458,7 +458,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -484,7 +484,7 @@ public Signed64AAPlusBBPlus2AB_v5() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -552,7 +552,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -578,7 +578,7 @@ public Signed64AAPlusBBPlus2AB_v6() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -646,7 +646,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -672,7 +672,7 @@ public Signed64AAPlusBBPlus2AB_v7() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -740,7 +740,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64PerfectSquareFormula.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64PerfectSquareFormula.cs index 57c6a04e6b..5cd8d306f4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64PerfectSquareFormula.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Signed64PerfectSquareFormula.cs @@ -14,7 +14,7 @@ public Signed64PerfectSquareFormula() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -64,7 +64,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -92,7 +92,7 @@ public Signed64PerfectSquareFormula_v1() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -170,7 +170,7 @@ public Signed64PerfectSquareFormula_v2() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -220,7 +220,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -248,7 +248,7 @@ public Signed64PerfectSquareFormula_v3() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -298,7 +298,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -326,7 +326,7 @@ public Signed64PerfectSquareFormula_v4() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -376,7 +376,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -404,7 +404,7 @@ public Signed64PerfectSquareFormula_v5() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -454,7 +454,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -482,7 +482,7 @@ public Signed64PerfectSquareFormula_v6() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -532,7 +532,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -560,7 +560,7 @@ public Signed64PerfectSquareFormula_v7() : base(IRInstruction.Add64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -610,7 +610,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAMinusBB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAMinusBB.cs index b078fccc1a..2c0f565f8a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAMinusBB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAMinusBB.cs @@ -14,7 +14,7 @@ public Unsigned32AAMinusBB() : base(IRInstruction.Sub32, TransformType.Auto | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBMinus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBMinus2AB.cs index fe6c0d1bf7..0a6237ae86 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBMinus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBMinus2AB.cs @@ -14,7 +14,7 @@ public Unsigned32AAPlusBBMinus2AB() : base(IRInstruction.Sub32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Unsigned32AAPlusBBMinus2AB_v1() : base(IRInstruction.Sub32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Unsigned32AAPlusBBMinus2AB_v2() : base(IRInstruction.Sub32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Unsigned32AAPlusBBMinus2AB_v3() : base(IRInstruction.Sub32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBPlus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBPlus2AB.cs index bf4398c369..d0c2b3d13f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBPlus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32AAPlusBBPlus2AB.cs @@ -14,7 +14,7 @@ public Unsigned32AAPlusBBPlus2AB() : base(IRInstruction.Add32, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Unsigned32AAPlusBBPlus2AB_v1() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Unsigned32AAPlusBBPlus2AB_v2() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Unsigned32AAPlusBBPlus2AB_v3() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -390,7 +390,7 @@ public Unsigned32AAPlusBBPlus2AB_v4() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -458,7 +458,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -484,7 +484,7 @@ public Unsigned32AAPlusBBPlus2AB_v5() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -552,7 +552,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -578,7 +578,7 @@ public Unsigned32AAPlusBBPlus2AB_v6() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -646,7 +646,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -672,7 +672,7 @@ public Unsigned32AAPlusBBPlus2AB_v7() : base(IRInstruction.Add32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -740,7 +740,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32PerfectSquareFormula.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32PerfectSquareFormula.cs index fb1a31529e..67df1cc64b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32PerfectSquareFormula.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned32PerfectSquareFormula.cs @@ -14,7 +14,7 @@ public Unsigned32PerfectSquareFormula() : base(IRInstruction.Add32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -64,7 +64,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -92,7 +92,7 @@ public Unsigned32PerfectSquareFormula_v1() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -170,7 +170,7 @@ public Unsigned32PerfectSquareFormula_v2() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -220,7 +220,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -248,7 +248,7 @@ public Unsigned32PerfectSquareFormula_v3() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -298,7 +298,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -326,7 +326,7 @@ public Unsigned32PerfectSquareFormula_v4() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -376,7 +376,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -404,7 +404,7 @@ public Unsigned32PerfectSquareFormula_v5() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -454,7 +454,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -482,7 +482,7 @@ public Unsigned32PerfectSquareFormula_v6() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -532,7 +532,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -560,7 +560,7 @@ public Unsigned32PerfectSquareFormula_v7() : base(IRInstruction.Add32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -610,7 +610,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAMinusBB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAMinusBB.cs index a9a7e386ab..db808a7ad9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAMinusBB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAMinusBB.cs @@ -14,7 +14,7 @@ public Unsigned64AAMinusBB() : base(IRInstruction.Sub64, TransformType.Auto | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBMinus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBMinus2AB.cs index e17c1416c3..43656a4176 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBMinus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBMinus2AB.cs @@ -14,7 +14,7 @@ public Unsigned64AAPlusBBMinus2AB() : base(IRInstruction.Sub64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Unsigned64AAPlusBBMinus2AB_v1() : base(IRInstruction.Sub64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Unsigned64AAPlusBBMinus2AB_v2() : base(IRInstruction.Sub64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Unsigned64AAPlusBBMinus2AB_v3() : base(IRInstruction.Sub64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBPlus2AB.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBPlus2AB.cs index d3e63cfa51..ccceb7920d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBPlus2AB.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64AAPlusBBPlus2AB.cs @@ -14,7 +14,7 @@ public Unsigned64AAPlusBBPlus2AB() : base(IRInstruction.Add64, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Unsigned64AAPlusBBPlus2AB_v1() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -176,7 +176,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -202,7 +202,7 @@ public Unsigned64AAPlusBBPlus2AB_v2() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -270,7 +270,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -296,7 +296,7 @@ public Unsigned64AAPlusBBPlus2AB_v3() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -364,7 +364,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -390,7 +390,7 @@ public Unsigned64AAPlusBBPlus2AB_v4() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -458,7 +458,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -484,7 +484,7 @@ public Unsigned64AAPlusBBPlus2AB_v5() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -552,7 +552,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -578,7 +578,7 @@ public Unsigned64AAPlusBBPlus2AB_v6() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -646,7 +646,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -672,7 +672,7 @@ public Unsigned64AAPlusBBPlus2AB_v7() : base(IRInstruction.Add64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -740,7 +740,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64PerfectSquareFormula.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64PerfectSquareFormula.cs index 5fe938298c..6700bfb233 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64PerfectSquareFormula.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Algebraic/Unsigned64PerfectSquareFormula.cs @@ -14,7 +14,7 @@ public Unsigned64PerfectSquareFormula() : base(IRInstruction.Add64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -64,7 +64,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -92,7 +92,7 @@ public Unsigned64PerfectSquareFormula_v1() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -170,7 +170,7 @@ public Unsigned64PerfectSquareFormula_v2() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -220,7 +220,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -248,7 +248,7 @@ public Unsigned64PerfectSquareFormula_v3() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -298,7 +298,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -326,7 +326,7 @@ public Unsigned64PerfectSquareFormula_v4() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -376,7 +376,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -404,7 +404,7 @@ public Unsigned64PerfectSquareFormula_v5() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -454,7 +454,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -482,7 +482,7 @@ public Unsigned64PerfectSquareFormula_v6() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -532,7 +532,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -560,7 +560,7 @@ public Unsigned64PerfectSquareFormula_v7() : base(IRInstruction.Add64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -610,7 +610,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32.cs index 4fc05ad635..e4c1a1f6d5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32.cs @@ -16,7 +16,7 @@ public Add32() : base(IRInstruction.Add32, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32x2.cs index f118c7cb8f..a7cdb314a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add32x2.cs @@ -16,7 +16,7 @@ public Add32x2() : base(IRInstruction.Add32, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add32x2_v1() : base(IRInstruction.Add32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Add32x2_v2() : base(IRInstruction.Add32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Add32x2_v3() : base(IRInstruction.Add32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64.cs index d475ac73d0..8efe79ebff 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64.cs @@ -16,7 +16,7 @@ public Add64() : base(IRInstruction.Add64, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64x2.cs index 8741cd591d..dc634070e6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Add64x2.cs @@ -16,7 +16,7 @@ public Add64x2() : base(IRInstruction.Add64, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add64x2_v1() : base(IRInstruction.Add64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Add64x2_v2() : base(IRInstruction.Add64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Add64x2_v3() : base(IRInstruction.Add64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32.cs index 02e3632ade..395633e3ba 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32.cs @@ -16,7 +16,7 @@ public AddCarryIn32() : base(IRInstruction.AddCarryIn32, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Inside.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Inside.cs index c5e7a8b6ba..8a61b32ed6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Inside.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Inside.cs @@ -14,7 +14,7 @@ public AddCarryIn32Inside() : base(IRInstruction.AddCarryIn32, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32NoCarry.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32NoCarry.cs index 92f8808433..037cca3297 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32NoCarry.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32NoCarry.cs @@ -14,7 +14,7 @@ public AddCarryIn32NoCarry() : base(IRInstruction.AddCarryIn32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand3.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside1.cs index 42286d65e6..a0b51d831c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside1.cs @@ -14,7 +14,7 @@ public AddCarryIn32Outside1() : base(IRInstruction.AddCarryIn32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside2.cs index 9007d8ec8d..4e0bb96c8b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Outside2.cs @@ -14,7 +14,7 @@ public AddCarryIn32Outside2() : base(IRInstruction.AddCarryIn32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero1.cs index a35fb3c9e0..fbc2abc748 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero1.cs @@ -14,7 +14,7 @@ public AddCarryIn32Zero1() : base(IRInstruction.AddCarryIn32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero2.cs index 4795de8d03..eacebaa500 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn32Zero2.cs @@ -14,7 +14,7 @@ public AddCarryIn32Zero2() : base(IRInstruction.AddCarryIn32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64.cs index c8186f7b6d..fe5650959a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64.cs @@ -16,7 +16,7 @@ public AddCarryIn64() : base(IRInstruction.AddCarryIn64, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Inside.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Inside.cs index 92cff3f3f1..ec0bc7fb11 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Inside.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Inside.cs @@ -14,7 +14,7 @@ public AddCarryIn64Inside() : base(IRInstruction.AddCarryIn64, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64NoCarry.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64NoCarry.cs index 80f6ce35e3..9b1e841a48 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64NoCarry.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64NoCarry.cs @@ -14,7 +14,7 @@ public AddCarryIn64NoCarry() : base(IRInstruction.AddCarryIn64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand3.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside1.cs index 5a6946db50..6878852f20 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside1.cs @@ -14,7 +14,7 @@ public AddCarryIn64Outside1() : base(IRInstruction.AddCarryIn64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside2.cs index 2cbcfa29aa..7786af2a8c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Outside2.cs @@ -14,7 +14,7 @@ public AddCarryIn64Outside2() : base(IRInstruction.AddCarryIn64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero1.cs index b560fb3d9d..0e148839f5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero1.cs @@ -14,7 +14,7 @@ public AddCarryIn64Zero1() : base(IRInstruction.AddCarryIn64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero2.cs index f9d57c0347..cf9219cb91 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddCarryIn64Zero2.cs @@ -14,7 +14,7 @@ public AddCarryIn64Zero2() : base(IRInstruction.AddCarryIn64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4.cs index 584bfec87d..ee531e8123 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4.cs @@ -16,7 +16,7 @@ public AddR4() : base(IRInstruction.AddR4, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4x2.cs index 9920ce8fbf..0a20b01082 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR4x2.cs @@ -16,7 +16,7 @@ public AddR4x2() : base(IRInstruction.AddR4, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddR4x2_v1() : base(IRInstruction.AddR4, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public AddR4x2_v2() : base(IRInstruction.AddR4, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public AddR4x2_v3() : base(IRInstruction.AddR4, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8.cs index 787fd2fa84..8edb97088b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8.cs @@ -16,7 +16,7 @@ public AddR8() : base(IRInstruction.AddR8, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8x2.cs index 0b4d253d25..b00621d4eb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddR8x2.cs @@ -16,7 +16,7 @@ public AddR8x2() : base(IRInstruction.AddR8, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddR8x2_v1() : base(IRInstruction.AddR8, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public AddR8x2_v2() : base(IRInstruction.AddR8, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public AddR8x2_v3() : base(IRInstruction.AddR8, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub32.cs index 784a8e5318..6214184415 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub32.cs @@ -16,7 +16,7 @@ public AddSub32() : base(IRInstruction.Add32, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddSub32_v1() : base(IRInstruction.Add32, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub64.cs index 9ff5501153..8ac7b5f441 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSub64.cs @@ -16,7 +16,7 @@ public AddSub64() : base(IRInstruction.Add64, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddSub64_v1() : base(IRInstruction.Add64, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR4.cs index 735518060c..551afbf5ad 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR4.cs @@ -16,7 +16,7 @@ public AddSubR4() : base(IRInstruction.AddR4, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddSubR4_v1() : base(IRInstruction.AddR4, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR8.cs index 2adbc19bbf..17bd14853a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/AddSubR8.cs @@ -16,7 +16,7 @@ public AddSubR8() : base(IRInstruction.AddR8, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddSubR8_v1() : base(IRInstruction.AddR8, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32.cs index 6260c80415..0efee2cfc6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32.cs @@ -16,7 +16,7 @@ public And32() : base(IRInstruction.And32, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32x2.cs index b0839675cf..5e13bb5310 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And32x2.cs @@ -16,7 +16,7 @@ public And32x2() : base(IRInstruction.And32, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public And32x2_v1() : base(IRInstruction.And32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public And32x2_v2() : base(IRInstruction.And32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public And32x2_v3() : base(IRInstruction.And32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64.cs index bb7997913a..b3a53594c1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64.cs @@ -16,7 +16,7 @@ public And64() : base(IRInstruction.And64, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64x2.cs index 5738b562d0..941c99ec9e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/And64x2.cs @@ -16,7 +16,7 @@ public And64x2() : base(IRInstruction.And64, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public And64x2_v1() : base(IRInstruction.And64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public And64x2_v2() : base(IRInstruction.And64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public And64x2_v3() : base(IRInstruction.And64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight32.cs index 10e6a6ac62..32f8fd54ad 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight32.cs @@ -16,7 +16,7 @@ public ArithShiftRight32() : base(IRInstruction.ArithShiftRight32, TransformType public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight64.cs index 378ca44a00..b27a41eebe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ArithShiftRight64.cs @@ -16,7 +16,7 @@ public ArithShiftRight64() : base(IRInstruction.ArithShiftRight64, TransformType public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanMax.cs index 8108ec927b..46fa6afe4b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanMax.cs @@ -16,7 +16,7 @@ public Compare32x32GreaterOrEqualThanMax() : base(IRInstruction.Compare32x32, Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanZero.cs index 3338622faf..a897233830 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32GreaterOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare32x32GreaterOrEqualThanZero() : base(IRInstruction.Compare32x32, T public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessOrEqualThanZero.cs index e384d83379..aad59f6377 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare32x32LessOrEqualThanZero() : base(IRInstruction.Compare32x32, Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanMax.cs index 22825b4897..6619745afe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanMax.cs @@ -16,7 +16,7 @@ public Compare32x32LessThanMax() : base(IRInstruction.Compare32x32, TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanZero.cs index 4057a5416e..e418fb8972 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x32LessThanZero.cs @@ -16,7 +16,7 @@ public Compare32x32LessThanZero() : base(IRInstruction.Compare32x32, TransformTy public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanMax.cs index cfba91cd3e..5e78e9b27d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanMax.cs @@ -16,7 +16,7 @@ public Compare32x64GreaterOrEqualThanMax() : base(IRInstruction.Compare32x64, Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanZero.cs index aabdde5645..41c205dfa6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64GreaterOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare32x64GreaterOrEqualThanZero() : base(IRInstruction.Compare32x64, T public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessOrEqualThanZero.cs index 292b2fa71e..4742082a76 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare32x64LessOrEqualThanZero() : base(IRInstruction.Compare32x64, Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanMax.cs index 622b546ead..157a0cd9ed 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanMax.cs @@ -16,7 +16,7 @@ public Compare32x64LessThanMax() : base(IRInstruction.Compare32x64, TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanZero.cs index 3b1b336962..ee5596def6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare32x64LessThanZero.cs @@ -16,7 +16,7 @@ public Compare32x64LessThanZero() : base(IRInstruction.Compare32x64, TransformTy public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanMax.cs index 44ee4b21f5..e80fa63f81 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanMax.cs @@ -16,7 +16,7 @@ public Compare64x32GreaterOrEqualThanMax() : base(IRInstruction.Compare64x32, Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanZero.cs index b400d159b2..e4b60a0bbb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32GreaterOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare64x32GreaterOrEqualThanZero() : base(IRInstruction.Compare64x32, T public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessOrEqualThanZero.cs index 1216188845..d4da32180c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare64x32LessOrEqualThanZero() : base(IRInstruction.Compare64x32, Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanMax.cs index e930fd766e..14c19a8496 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanMax.cs @@ -16,7 +16,7 @@ public Compare64x32LessThanMax() : base(IRInstruction.Compare64x32, TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanZero.cs index 51b13f425b..d11c5e452f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x32LessThanZero.cs @@ -16,7 +16,7 @@ public Compare64x32LessThanZero() : base(IRInstruction.Compare64x32, TransformTy public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanMax.cs index b8ad20b7b4..15f89e4abe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanMax.cs @@ -16,7 +16,7 @@ public Compare64x64GreaterOrEqualThanMax() : base(IRInstruction.Compare64x64, Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanZero.cs index dd3e1ef0e2..eb614f4b24 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64GreaterOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare64x64GreaterOrEqualThanZero() : base(IRInstruction.Compare64x64, T public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessOrEqualThanZero.cs index 098a528456..83d3f1da09 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessOrEqualThanZero.cs @@ -16,7 +16,7 @@ public Compare64x64LessOrEqualThanZero() : base(IRInstruction.Compare64x64, Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanMax.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanMax.cs index 2efa309600..9c03df8c38 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanMax.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanMax.cs @@ -16,7 +16,7 @@ public Compare64x64LessThanMax() : base(IRInstruction.Compare64x64, TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanZero.cs index dad5b82bcb..afef76b254 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Compare64x64LessThanZero.cs @@ -16,7 +16,7 @@ public Compare64x64LessThanZero() : base(IRInstruction.Compare64x64, TransformTy public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR4.cs index 90cb11eafa..a809ebb1c1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR4.cs @@ -16,7 +16,7 @@ public ConvertI32ToR4() : base(IRInstruction.ConvertI32ToR4, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR8.cs index 67e6e04814..2045a64566 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI32ToR8.cs @@ -16,7 +16,7 @@ public ConvertI32ToR8() : base(IRInstruction.ConvertI32ToR8, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR4.cs index f81bbf9bcb..f953f05721 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR4.cs @@ -16,7 +16,7 @@ public ConvertI64ToR4() : base(IRInstruction.ConvertI64ToR4, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR8.cs index 94b1fc27a2..a96557484d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertI64ToR8.cs @@ -16,7 +16,7 @@ public ConvertI64ToR8() : base(IRInstruction.ConvertI64ToR8, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR4.cs index c423e151af..95d8f5a54f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR4.cs @@ -16,7 +16,7 @@ public ConvertU32ToR4() : base(IRInstruction.ConvertI32ToR4, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR8.cs index c2ca56cf5a..cbf4e7d08f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU32ToR8.cs @@ -16,7 +16,7 @@ public ConvertU32ToR8() : base(IRInstruction.ConvertI32ToR8, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR4.cs index 3f8d24a098..0f23345d7e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR4.cs @@ -16,7 +16,7 @@ public ConvertU64ToR4() : base(IRInstruction.ConvertU64ToR4, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR8.cs index a6c82d4f28..ccd105162b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ConvertU64ToR8.cs @@ -16,7 +16,7 @@ public ConvertU64ToR8() : base(IRInstruction.ConvertU64ToR8, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR4.cs index dda3a654fc..ebc7e30626 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR4.cs @@ -16,7 +16,7 @@ public DivR4() : base(IRInstruction.DivR4, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR8.cs index 8606dc34d6..49f512fa1d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivR8.cs @@ -16,7 +16,7 @@ public DivR8() : base(IRInstruction.DivR8, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned32.cs index e2748b8ce5..ff506033c9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned32.cs @@ -16,7 +16,7 @@ public DivSigned32() : base(IRInstruction.DivSigned32, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned64.cs index eca0ed8cd7..8de91e47e3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivSigned64.cs @@ -16,7 +16,7 @@ public DivSigned64() : base(IRInstruction.DivSigned64, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned32.cs index 8e6f910e7d..8f50c67c75 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned32.cs @@ -16,7 +16,7 @@ public DivUnsigned32() : base(IRInstruction.DivUnsigned32, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned64.cs index 00cac04f46..d6aeb9aec7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/DivUnsigned64.cs @@ -16,7 +16,7 @@ public DivUnsigned64() : base(IRInstruction.DivUnsigned64, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32.cs index c79080cf83..bfb5d42444 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32.cs @@ -16,7 +16,7 @@ public GetHigh32() : base(IRInstruction.GetHigh32, TransformType.Auto | Transfor public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32FromTo64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32FromTo64.cs index 485fba4d45..e4401cb4cc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32FromTo64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetHigh32FromTo64.cs @@ -16,7 +16,7 @@ public GetHigh32FromTo64() : base(IRInstruction.GetHigh32, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32.cs index 3b3a37c537..cf019fd035 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32.cs @@ -16,7 +16,7 @@ public GetLow32() : base(IRInstruction.GetLow32, TransformType.Auto | TransformT public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32FromTo64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32FromTo64.cs index 3da5d65ab1..22081a827b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32FromTo64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/GetLow32FromTo64.cs @@ -16,7 +16,7 @@ public GetLow32FromTo64() : base(IRInstruction.GetLow32, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysFalse.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysFalse.cs index cb2d9680a3..4b0e670712 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysFalse.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysFalse.cs @@ -16,7 +16,7 @@ public IfThenElse32AlwaysFalse() : base(IRInstruction.IfThenElse32, TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysTrue.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysTrue.cs index 8d65ff9370..30e6d1da6d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysTrue.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse32AlwaysTrue.cs @@ -16,7 +16,7 @@ public IfThenElse32AlwaysTrue() : base(IRInstruction.IfThenElse32, TransformType public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysFalse.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysFalse.cs index f921b1eb98..86e0170343 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysFalse.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysFalse.cs @@ -16,7 +16,7 @@ public IfThenElse64AlwaysFalse() : base(IRInstruction.IfThenElse64, TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysTrue.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysTrue.cs index 6da9e5fddb..1a6c2efc13 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysTrue.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/IfThenElse64AlwaysTrue.cs @@ -16,7 +16,7 @@ public IfThenElse64AlwaysTrue() : base(IRInstruction.IfThenElse64, TransformType public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32AddressFold.cs index d7940f0441..92ceda463c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32AddressFold.cs @@ -14,7 +14,7 @@ public Load32AddressFold() : base(IRInstruction.Load32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd32.cs index c4e0e6f163..3f00edabe1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd32.cs @@ -14,7 +14,7 @@ public Load32FoldAdd32() : base(IRInstruction.Load32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd64.cs index 31083bba9e..0d94098636 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldAdd64.cs @@ -14,7 +14,7 @@ public Load32FoldAdd64() : base(IRInstruction.Load32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub32.cs index 63d3b635fa..6adaff8478 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub32.cs @@ -14,7 +14,7 @@ public Load32FoldSub32() : base(IRInstruction.Load32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub64.cs index 9dc48cc687..5aacb19111 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load32FoldSub64.cs @@ -14,7 +14,7 @@ public Load32FoldSub64() : base(IRInstruction.Load32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64AddressFold.cs index 802d7221c4..5ffe8f030e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64AddressFold.cs @@ -14,7 +14,7 @@ public Load64AddressFold() : base(IRInstruction.Load64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd32.cs index db0af1b125..0fa0d7e8f1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd32.cs @@ -14,7 +14,7 @@ public Load64FoldAdd32() : base(IRInstruction.Load64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd64.cs index a8c0ab944a..8058a3d079 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldAdd64.cs @@ -14,7 +14,7 @@ public Load64FoldAdd64() : base(IRInstruction.Load64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub32.cs index 63e1e13398..a380e1fa9a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub32.cs @@ -14,7 +14,7 @@ public Load64FoldSub32() : base(IRInstruction.Load64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub64.cs index fba0762b4c..c8e42deec6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Load64FoldSub64.cs @@ -14,7 +14,7 @@ public Load64FoldSub64() : base(IRInstruction.Load64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd32.cs index 1988e589ba..f48a7044a1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd32.cs @@ -14,7 +14,7 @@ public LoadManagedPointerFoldAdd32() : base(IRInstruction.LoadManagedPointer, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd64.cs index 45f57a1011..c9130eae47 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldAdd64.cs @@ -14,7 +14,7 @@ public LoadManagedPointerFoldAdd64() : base(IRInstruction.LoadManagedPointer, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub32.cs index fc44169a3b..0215f68209 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub32.cs @@ -14,7 +14,7 @@ public LoadManagedPointerFoldSub32() : base(IRInstruction.LoadManagedPointer, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub64.cs index 09b1cd1a52..83e209e469 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadManagedPointerFoldSub64.cs @@ -14,7 +14,7 @@ public LoadManagedPointerFoldSub64() : base(IRInstruction.LoadManagedPointer, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadParamManagedPointerAddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadParamManagedPointerAddressFold.cs index 781c9ab3cd..3ec1556e7d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadParamManagedPointerAddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadParamManagedPointerAddressFold.cs @@ -14,7 +14,7 @@ public LoadParamManagedPointerAddressFold() : base(IRInstruction.LoadParamManage { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4AddressFold.cs index 89cea16612..bac264f78e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4AddressFold.cs @@ -14,7 +14,7 @@ public LoadR4AddressFold() : base(IRInstruction.LoadR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd32.cs index 6dd76b0493..a60f0513e3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadR4FoldAdd32() : base(IRInstruction.LoadR4, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd64.cs index a2ceb64198..fc70346eb0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadR4FoldAdd64() : base(IRInstruction.LoadR4, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub32.cs index 2937da8601..1fa8196d63 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub32.cs @@ -14,7 +14,7 @@ public LoadR4FoldSub32() : base(IRInstruction.LoadR4, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub64.cs index 933a3326e6..fa3bb00d33 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR4FoldSub64.cs @@ -14,7 +14,7 @@ public LoadR4FoldSub64() : base(IRInstruction.LoadR4, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8AddressFold.cs index 5883e05a70..9f2b16fa6a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8AddressFold.cs @@ -14,7 +14,7 @@ public LoadR8AddressFold() : base(IRInstruction.LoadR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd32.cs index 53d1d65f28..17b6e2a9a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadR8FoldAdd32() : base(IRInstruction.LoadR8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd64.cs index 0b63b854af..ccaa07f640 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadR8FoldAdd64() : base(IRInstruction.LoadR8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub32.cs index 5ce91ce030..32381324b5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub32.cs @@ -14,7 +14,7 @@ public LoadR8FoldSub32() : base(IRInstruction.LoadR8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub64.cs index 6b0ce98b44..36305c3127 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadR8FoldSub64.cs @@ -14,7 +14,7 @@ public LoadR8FoldSub64() : base(IRInstruction.LoadR8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32AddressFold.cs index 366be6f7d3..f9c7dbf2df 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32AddressFold.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32AddressFold() : base(IRInstruction.LoadSignExtend16x32 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd32.cs index 40b5d30a40..a76bd4a8b0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32FoldAdd32() : base(IRInstruction.LoadSignExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd64.cs index a9086cc109..69d0a46f04 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32FoldAdd64() : base(IRInstruction.LoadSignExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub32.cs index 7fe72384ba..51de08841b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub32.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32FoldSub32() : base(IRInstruction.LoadSignExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub64.cs index 15209597f2..9c77864522 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x32FoldSub64.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32FoldSub64() : base(IRInstruction.LoadSignExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64AddressFold.cs index ad6769c197..a064d98d8e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64AddressFold.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x64AddressFold() : base(IRInstruction.LoadSignExtend16x64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd32.cs index 16f9900803..3040137935 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x64FoldAdd32() : base(IRInstruction.LoadSignExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd64.cs index 37c06bf629..927bb1c098 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x64FoldAdd64() : base(IRInstruction.LoadSignExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub32.cs index 1639481080..5d22b68abe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub32.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x64FoldSub32() : base(IRInstruction.LoadSignExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub64.cs index ea8920ac4c..96c2f90db7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend16x64FoldSub64.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x64FoldSub64() : base(IRInstruction.LoadSignExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64AddressFold.cs index 16221bc3e6..790f1b049b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64AddressFold.cs @@ -14,7 +14,7 @@ public LoadSignExtend32x64AddressFold() : base(IRInstruction.LoadSignExtend32x64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd32.cs index bde6ae2ad9..8fcd15dd8e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadSignExtend32x64FoldAdd32() : base(IRInstruction.LoadSignExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd64.cs index 6299bc6b7c..ac3c7d8e39 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadSignExtend32x64FoldAdd64() : base(IRInstruction.LoadSignExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub32.cs index 13326e6eba..8b954a2886 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub32.cs @@ -14,7 +14,7 @@ public LoadSignExtend32x64FoldSub32() : base(IRInstruction.LoadSignExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub64.cs index c99135b7d1..e904981d39 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend32x64FoldSub64.cs @@ -14,7 +14,7 @@ public LoadSignExtend32x64FoldSub64() : base(IRInstruction.LoadSignExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32AddressFold.cs index 2fda9070f9..4a8b22b7aa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32AddressFold.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32AddressFold() : base(IRInstruction.LoadSignExtend8x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd32.cs index d137f2d584..9fb23804cf 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32FoldAdd32() : base(IRInstruction.LoadSignExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd64.cs index 7a348f15aa..53b93403b4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32FoldAdd64() : base(IRInstruction.LoadSignExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub32.cs index 4ed171d73f..ca8a1fb9f1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub32.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32FoldSub32() : base(IRInstruction.LoadSignExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub64.cs index 637221b49c..4eee0070a7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x32FoldSub64.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32FoldSub64() : base(IRInstruction.LoadSignExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64AddressFold.cs index a418c11133..7df73fb262 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64AddressFold.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x64AddressFold() : base(IRInstruction.LoadSignExtend8x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd32.cs index a837aa075c..24b5d69f54 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x64FoldAdd32() : base(IRInstruction.LoadSignExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd64.cs index 29e1e83d42..971fd84575 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x64FoldAdd64() : base(IRInstruction.LoadSignExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub32.cs index 5f202c725d..f819f52d18 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub32.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x64FoldSub32() : base(IRInstruction.LoadSignExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub64.cs index f513f2fa07..fa04a84a5b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadSignExtend8x64FoldSub64.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x64FoldSub64() : base(IRInstruction.LoadSignExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32AddressFold.cs index e0e4bc3884..d5433c2645 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32AddressFold.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32AddressFold() : base(IRInstruction.LoadZeroExtend16x32 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd32.cs index 17ca676346..1140ac662c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32FoldAdd32() : base(IRInstruction.LoadZeroExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd64.cs index d5d194f5c2..153dbe9cd6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32FoldAdd64() : base(IRInstruction.LoadZeroExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub32.cs index 100eb4602d..fc59825a3d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32FoldSub32() : base(IRInstruction.LoadZeroExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub64.cs index 4c5ac8e8a6..de5cf6db1c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x32FoldSub64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32FoldSub64() : base(IRInstruction.LoadZeroExtend16x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64AddressFold.cs index 4cc8b5f5e5..a393a8355a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64AddressFold.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x64AddressFold() : base(IRInstruction.LoadZeroExtend16x64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd32.cs index 3c2967f101..18030722f5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x64FoldAdd32() : base(IRInstruction.LoadZeroExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd64.cs index e3fc10188c..a2d53dd507 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x64FoldAdd64() : base(IRInstruction.LoadZeroExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub32.cs index 35e64e9b07..882e694089 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x64FoldSub32() : base(IRInstruction.LoadZeroExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub64.cs index 84aa8866fc..aa8f731371 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend16x64FoldSub64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x64FoldSub64() : base(IRInstruction.LoadZeroExtend16x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64AddressFold.cs index 2be4ad7618..b7609a549c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64AddressFold.cs @@ -14,7 +14,7 @@ public LoadZeroExtend32x64AddressFold() : base(IRInstruction.LoadZeroExtend32x64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd32.cs index 41833921fc..473abac50a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend32x64FoldAdd32() : base(IRInstruction.LoadZeroExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd64.cs index 3c6a3d109f..c5acc3f835 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend32x64FoldAdd64() : base(IRInstruction.LoadZeroExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub32.cs index a429ecc4e8..eed253e68c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend32x64FoldSub32() : base(IRInstruction.LoadZeroExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub64.cs index 819bf4caa7..32b629b2bf 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend32x64FoldSub64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend32x64FoldSub64() : base(IRInstruction.LoadZeroExtend32x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32AddressFold.cs index fb69ef2701..054b6ab470 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32AddressFold.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32AddressFold() : base(IRInstruction.LoadZeroExtend8x32, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd32.cs index 01e338aad0..dee440f733 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32FoldAdd32() : base(IRInstruction.LoadZeroExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd64.cs index ce503448fe..9eac12b0c6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32FoldAdd64() : base(IRInstruction.LoadZeroExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub32.cs index 52bda44fe6..f9edfba189 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32FoldSub32() : base(IRInstruction.LoadZeroExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub64.cs index f502a0b018..6279d4c1f1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x32FoldSub64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32FoldSub64() : base(IRInstruction.LoadZeroExtend8x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64AddressFold.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64AddressFold.cs index df311c3ade..b306ca20d0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64AddressFold.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64AddressFold.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x64AddressFold() : base(IRInstruction.LoadZeroExtend8x64, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd32.cs index a5275dde41..c399ebff02 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x64FoldAdd32() : base(IRInstruction.LoadZeroExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd64.cs index b8850b4611..761de41ca5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldAdd64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x64FoldAdd64() : base(IRInstruction.LoadZeroExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub32.cs index f420ead82b..ca17447131 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x64FoldSub32() : base(IRInstruction.LoadZeroExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub64.cs index 313c71ed24..33847a329a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/LoadZeroExtend8x64FoldSub64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x64FoldSub64() : base(IRInstruction.LoadZeroExtend8x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4.cs index 08dc1d9fc0..f814b75c82 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4.cs @@ -16,7 +16,7 @@ public MulR4() : base(IRInstruction.MulR4, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4x2.cs index 2c18988cfd..9c8a2e8c15 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR4x2.cs @@ -16,7 +16,7 @@ public MulR4x2() : base(IRInstruction.MulR4, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulR4x2_v1() : base(IRInstruction.MulR4, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public MulR4x2_v2() : base(IRInstruction.MulR4, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public MulR4x2_v3() : base(IRInstruction.MulR4, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8.cs index 102fbe1ca8..9035ccfec7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8.cs @@ -16,7 +16,7 @@ public MulR8() : base(IRInstruction.MulR8, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8x2.cs index 3f17546005..e46d2ebfda 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulR8x2.cs @@ -16,7 +16,7 @@ public MulR8x2() : base(IRInstruction.MulR8, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulR8x2_v1() : base(IRInstruction.MulR8, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public MulR8x2_v2() : base(IRInstruction.MulR8, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public MulR8x2_v3() : base(IRInstruction.MulR8, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32.cs index 2fe54cddfd..5311f12445 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32.cs @@ -16,7 +16,7 @@ public MulSigned32() : base(IRInstruction.MulSigned32, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32x2.cs index e3496b72fd..72cdad9329 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned32x2.cs @@ -16,7 +16,7 @@ public MulSigned32x2() : base(IRInstruction.MulSigned32, TransformType.Auto | Tr public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulSigned32x2_v1() : base(IRInstruction.MulSigned32, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public MulSigned32x2_v2() : base(IRInstruction.MulSigned32, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public MulSigned32x2_v3() : base(IRInstruction.MulSigned32, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64.cs index 21e545627d..f232589b72 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64.cs @@ -16,7 +16,7 @@ public MulSigned64() : base(IRInstruction.MulSigned64, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64x2.cs index 5316ba911f..19d2e2a087 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSigned64x2.cs @@ -16,7 +16,7 @@ public MulSigned64x2() : base(IRInstruction.MulSigned64, TransformType.Auto | Tr public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulSigned64x2_v1() : base(IRInstruction.MulSigned64, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public MulSigned64x2_v2() : base(IRInstruction.MulSigned64, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public MulSigned64x2_v3() : base(IRInstruction.MulSigned64, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft32.cs index a60401246e..22db1afed8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft32.cs @@ -14,7 +14,7 @@ public MulSignedShiftLeft32() : base(IRInstruction.MulSigned32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulSignedShiftLeft32_v1() : base(IRInstruction.MulSigned32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft64.cs index 936b627c66..dd498d741c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulSignedShiftLeft64.cs @@ -14,7 +14,7 @@ public MulSignedShiftLeft64() : base(IRInstruction.MulSigned64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulSignedShiftLeft64_v1() : base(IRInstruction.MulSigned64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32.cs index 7f4d323a4a..43513944b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32.cs @@ -16,7 +16,7 @@ public MulUnsigned32() : base(IRInstruction.MulUnsigned32, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32x2.cs index 3db837031f..52ff9ab268 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned32x2.cs @@ -16,7 +16,7 @@ public MulUnsigned32x2() : base(IRInstruction.MulUnsigned32, TransformType.Auto public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulUnsigned32x2_v1() : base(IRInstruction.MulUnsigned32, TransformType.Au public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public MulUnsigned32x2_v2() : base(IRInstruction.MulUnsigned32, TransformType.Au public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public MulUnsigned32x2_v3() : base(IRInstruction.MulUnsigned32, TransformType.Au public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64.cs index 3d036a55e4..179a467585 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64.cs @@ -16,7 +16,7 @@ public MulUnsigned64() : base(IRInstruction.MulUnsigned64, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64x2.cs index fdf2eae295..6937b5c262 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsigned64x2.cs @@ -16,7 +16,7 @@ public MulUnsigned64x2() : base(IRInstruction.MulUnsigned64, TransformType.Auto public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulUnsigned64x2_v1() : base(IRInstruction.MulUnsigned64, TransformType.Au public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public MulUnsigned64x2_v2() : base(IRInstruction.MulUnsigned64, TransformType.Au public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public MulUnsigned64x2_v3() : base(IRInstruction.MulUnsigned64, TransformType.Au public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft32.cs index 279c1be83a..f347d76b35 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft32.cs @@ -14,7 +14,7 @@ public MulUnsignedShiftLeft32() : base(IRInstruction.MulUnsigned32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulUnsignedShiftLeft32_v1() : base(IRInstruction.MulUnsigned32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft64.cs index 9c50fdbaec..3db88f55dc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/MulUnsignedShiftLeft64.cs @@ -14,7 +14,7 @@ public MulUnsignedShiftLeft64() : base(IRInstruction.MulUnsigned64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulUnsignedShiftLeft64_v1() : base(IRInstruction.MulUnsigned64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not32.cs index 3aa6be6bd9..82a2590ca2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not32.cs @@ -16,7 +16,7 @@ public Not32() : base(IRInstruction.Not32, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not64.cs index 2f432cadb8..ca45dfef47 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Not64.cs @@ -16,7 +16,7 @@ public Not64() : base(IRInstruction.Not64, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32.cs index 763b7e0beb..6fab39ad10 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32.cs @@ -16,7 +16,7 @@ public Or32() : base(IRInstruction.Or32, TransformType.Auto | TransformType.Opti public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32x2.cs index 0bfa48a2c8..261aa17071 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or32x2.cs @@ -16,7 +16,7 @@ public Or32x2() : base(IRInstruction.Or32, TransformType.Auto | TransformType.Op public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Or32x2_v1() : base(IRInstruction.Or32, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Or32x2_v2() : base(IRInstruction.Or32, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Or32x2_v3() : base(IRInstruction.Or32, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64.cs index 1c5062211f..8b25056770 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64.cs @@ -16,7 +16,7 @@ public Or64() : base(IRInstruction.Or64, TransformType.Auto | TransformType.Opti public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64x2.cs index 42efd8096d..aa13e41de7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Or64x2.cs @@ -16,7 +16,7 @@ public Or64x2() : base(IRInstruction.Or64, TransformType.Auto | TransformType.Op public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Or64x2_v1() : base(IRInstruction.Or64, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Or64x2_v2() : base(IRInstruction.Or64, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Or64x2_v3() : base(IRInstruction.Or64, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR4.cs index 12704f7667..bda2ae9b94 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR4.cs @@ -16,7 +16,7 @@ public RemR4() : base(IRInstruction.RemR4, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR8.cs index e3d0b4d331..ed5b4ff6a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemR8.cs @@ -16,7 +16,7 @@ public RemR8() : base(IRInstruction.RemR8, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned32.cs index e41b3c9c27..3719d07a31 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned32.cs @@ -16,7 +16,7 @@ public RemSigned32() : base(IRInstruction.RemSigned32, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned64.cs index 92ed108bbe..89639502e3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemSigned64.cs @@ -16,7 +16,7 @@ public RemSigned64() : base(IRInstruction.RemSigned64, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned32.cs index 5a736e26b0..5ac24aeb76 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned32.cs @@ -16,7 +16,7 @@ public RemUnsigned32() : base(IRInstruction.RemUnsigned32, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned64.cs index 3f2f35f5a1..aa108d191c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/RemUnsigned64.cs @@ -16,7 +16,7 @@ public RemUnsigned64() : base(IRInstruction.RemUnsigned64, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32.cs index 81fcb68b5a..d1b2b64567 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32.cs @@ -16,7 +16,7 @@ public ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32x2.cs index 987347e255..f753da7dba 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft32x2.cs @@ -16,7 +16,7 @@ public ShiftLeft32x2() : base(IRInstruction.ShiftLeft32, TransformType.Auto | Tr public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64.cs index 3a58c8a1f1..94ed1888d0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64.cs @@ -16,7 +16,7 @@ public ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType.Auto | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64x2.cs index 393976e950..8acea38128 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftLeft64x2.cs @@ -16,7 +16,7 @@ public ShiftLeft64x2() : base(IRInstruction.ShiftLeft64, TransformType.Auto | Tr public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32.cs index 7b57a2e161..86d6026a06 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32.cs @@ -16,7 +16,7 @@ public ShiftRight32() : base(IRInstruction.ShiftRight32, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32x2.cs index e66f7a757e..834ed36b94 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight32x2.cs @@ -16,7 +16,7 @@ public ShiftRight32x2() : base(IRInstruction.ShiftRight32, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64.cs index 676624de60..ec3485ed1e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64.cs @@ -16,7 +16,7 @@ public ShiftRight64() : base(IRInstruction.ShiftRight64, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64x2.cs index 6620836dac..1adba4b2ee 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ShiftRight64x2.cs @@ -16,7 +16,7 @@ public ShiftRight64x2() : base(IRInstruction.ShiftRight64, TransformType.Auto | public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x32.cs index 5a001e3d61..968e3200ac 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x32.cs @@ -16,7 +16,7 @@ public SignExtend16x32() : base(IRInstruction.SignExtend16x32, TransformType.Aut public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x64.cs index 707962580d..ecac0bd1af 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend16x64.cs @@ -16,7 +16,7 @@ public SignExtend16x64() : base(IRInstruction.SignExtend16x64, TransformType.Aut public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend32x64.cs index 6d2e2f6254..5400fadd14 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend32x64.cs @@ -16,7 +16,7 @@ public SignExtend32x64() : base(IRInstruction.SignExtend32x64, TransformType.Aut public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x32.cs index ecb9657fd5..64b6a8bdae 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x32.cs @@ -16,7 +16,7 @@ public SignExtend8x32() : base(IRInstruction.SignExtend8x32, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x64.cs index 6cb3d34257..7b131c8ac4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SignExtend8x64.cs @@ -16,7 +16,7 @@ public SignExtend8x64() : base(IRInstruction.SignExtend8x64, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd32.cs index 505237d809..95dee46f8e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd32.cs @@ -14,7 +14,7 @@ public Store16FoldAdd32() : base(IRInstruction.Store16, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd64.cs index 56805893a3..35f3a7bdce 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldAdd64.cs @@ -14,7 +14,7 @@ public Store16FoldAdd64() : base(IRInstruction.Store16, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub32.cs index de742d79fc..cf4d52045c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub32.cs @@ -14,7 +14,7 @@ public Store16FoldSub32() : base(IRInstruction.Store16, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub64.cs index b97fd2f809..759d051e3d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store16FoldSub64.cs @@ -14,7 +14,7 @@ public Store16FoldSub64() : base(IRInstruction.Store16, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd32.cs index acb1b6ad21..97b66f0190 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd32.cs @@ -14,7 +14,7 @@ public Store32FoldAdd32() : base(IRInstruction.Store32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd64.cs index ca56a44e58..9f3a2e509a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldAdd64.cs @@ -14,7 +14,7 @@ public Store32FoldAdd64() : base(IRInstruction.Store32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub32.cs index 6814727e25..34adeaecb8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub32.cs @@ -14,7 +14,7 @@ public Store32FoldSub32() : base(IRInstruction.Store32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub64.cs index 08ba0458f5..d06a0adc9b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store32FoldSub64.cs @@ -14,7 +14,7 @@ public Store32FoldSub64() : base(IRInstruction.Store32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd32.cs index f3ede6ee06..9230d08f45 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd32.cs @@ -14,7 +14,7 @@ public Store64FoldAdd32() : base(IRInstruction.Store64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd64.cs index 328bb172ff..4f9485d4fd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldAdd64.cs @@ -14,7 +14,7 @@ public Store64FoldAdd64() : base(IRInstruction.Store64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub32.cs index a98c2623d1..15a11cdc71 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub32.cs @@ -14,7 +14,7 @@ public Store64FoldSub32() : base(IRInstruction.Store64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub64.cs index d3907059e4..faa2283ebb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store64FoldSub64.cs @@ -14,7 +14,7 @@ public Store64FoldSub64() : base(IRInstruction.Store64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd32.cs index e4aa664f8a..f60053c5e1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd32.cs @@ -14,7 +14,7 @@ public Store8FoldAdd32() : base(IRInstruction.Store8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd64.cs index c0fabd7a0d..f1e950b56a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldAdd64.cs @@ -14,7 +14,7 @@ public Store8FoldAdd64() : base(IRInstruction.Store8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub32.cs index 148ceecd6c..894f59a5ee 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub32.cs @@ -14,7 +14,7 @@ public Store8FoldSub32() : base(IRInstruction.Store8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub64.cs index 3f8d27eed5..0f23a1fd70 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Store8FoldSub64.cs @@ -14,7 +14,7 @@ public Store8FoldSub64() : base(IRInstruction.Store8, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd32.cs index 0f63439bb6..3cc5679852 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd32.cs @@ -14,7 +14,7 @@ public StoreManagedPointerFoldAdd32() : base(IRInstruction.StoreManagedPointer, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd64.cs index 7414f2fa43..4fcbebc6bc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldAdd64.cs @@ -14,7 +14,7 @@ public StoreManagedPointerFoldAdd64() : base(IRInstruction.StoreManagedPointer, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub32.cs index 3ce1a33490..d9fffea428 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub32.cs @@ -14,7 +14,7 @@ public StoreManagedPointerFoldSub32() : base(IRInstruction.StoreManagedPointer, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub64.cs index d995714634..eca355566a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreManagedPointerFoldSub64.cs @@ -14,7 +14,7 @@ public StoreManagedPointerFoldSub64() : base(IRInstruction.StoreManagedPointer, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd32.cs index 80996559f7..9c71257bd2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd32.cs @@ -14,7 +14,7 @@ public StoreR4FoldAdd32() : base(IRInstruction.StoreR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd64.cs index 2bfa359764..45d0245524 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldAdd64.cs @@ -14,7 +14,7 @@ public StoreR4FoldAdd64() : base(IRInstruction.StoreR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub32.cs index 3060ead542..67d0aee69a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub32.cs @@ -14,7 +14,7 @@ public StoreR4FoldSub32() : base(IRInstruction.StoreR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub64.cs index 0f78d19bea..5e5e17a72b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR4FoldSub64.cs @@ -14,7 +14,7 @@ public StoreR4FoldSub64() : base(IRInstruction.StoreR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd32.cs index 9de90d5fce..a9d70043b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd32.cs @@ -14,7 +14,7 @@ public StoreR8FoldAdd32() : base(IRInstruction.StoreR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd64.cs index a484958f1c..4a9c4850ab 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldAdd64.cs @@ -14,7 +14,7 @@ public StoreR8FoldAdd64() : base(IRInstruction.StoreR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub32.cs index 53a26735a7..3462b0de3f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub32.cs @@ -14,7 +14,7 @@ public StoreR8FoldSub32() : base(IRInstruction.StoreR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub64.cs index 1ec51d10c3..9fcfc10402 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/StoreR8FoldSub64.cs @@ -14,7 +14,7 @@ public StoreR8FoldSub64() : base(IRInstruction.StoreR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32.cs index cc822cbe13..63d4ee7169 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32.cs @@ -16,7 +16,7 @@ public Sub32() : base(IRInstruction.Sub32, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32x2.cs index 40f49944aa..3d4be33740 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub32x2.cs @@ -16,7 +16,7 @@ public Sub32x2() : base(IRInstruction.Sub32, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64.cs index 7c5be5a78d..c1acf0155a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64.cs @@ -16,7 +16,7 @@ public Sub64() : base(IRInstruction.Sub64, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64x2.cs index 3cc0f41fb1..4f42be5d23 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Sub64x2.cs @@ -16,7 +16,7 @@ public Sub64x2() : base(IRInstruction.Sub64, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd32.cs index 037333f441..667871bf2e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd32.cs @@ -16,7 +16,7 @@ public SubAdd32() : base(IRInstruction.Sub32, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public SubAdd32_v1() : base(IRInstruction.Sub32, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd64.cs index 179815d152..120f5103db 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAdd64.cs @@ -16,7 +16,7 @@ public SubAdd64() : base(IRInstruction.Sub64, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public SubAdd64_v1() : base(IRInstruction.Sub64, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR4.cs index ff5840622e..5ce1c83407 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR4.cs @@ -16,7 +16,7 @@ public SubAddR4() : base(IRInstruction.SubR4, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public SubAddR4_v1() : base(IRInstruction.SubR4, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR8.cs index 24f1c2e314..ae4d8002e0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubAddR8.cs @@ -16,7 +16,7 @@ public SubAddR8() : base(IRInstruction.SubR8, TransformType.Auto | TransformType public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public SubAddR8_v1() : base(IRInstruction.SubR8, TransformType.Auto | TransformT public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32.cs index 208eb87552..03d502b367 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32.cs @@ -16,7 +16,7 @@ public SubCarryIn32() : base(IRInstruction.SubCarryIn32, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Inside.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Inside.cs index 51973fdf02..2255cbd495 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Inside.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Inside.cs @@ -14,7 +14,7 @@ public SubCarryIn32Inside() : base(IRInstruction.SubCarryIn32, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32NoCarry.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32NoCarry.cs index ca04dddce1..19cb7cdacf 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32NoCarry.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32NoCarry.cs @@ -14,7 +14,7 @@ public SubCarryIn32NoCarry() : base(IRInstruction.SubCarryIn32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand3.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside1.cs index 0432ed2e0c..28dea077d4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside1.cs @@ -14,7 +14,7 @@ public SubCarryIn32Outside1() : base(IRInstruction.SubCarryIn32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside2.cs index af9b1740a5..d44709227a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn32Outside2.cs @@ -14,7 +14,7 @@ public SubCarryIn32Outside2() : base(IRInstruction.SubCarryIn32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64.cs index 7da95e79b7..82a52a8be6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64.cs @@ -16,7 +16,7 @@ public SubCarryIn64() : base(IRInstruction.SubCarryIn64, TransformType.Auto | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Inside.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Inside.cs index 14bebdb55d..1d26cdf461 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Inside.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Inside.cs @@ -14,7 +14,7 @@ public SubCarryIn64Inside() : base(IRInstruction.SubCarryIn64, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64NoCarry.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64NoCarry.cs index d98549459a..d8a8739989 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64NoCarry.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64NoCarry.cs @@ -14,7 +14,7 @@ public SubCarryIn64NoCarry() : base(IRInstruction.SubCarryIn64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand3.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside1.cs index 0924b0ffb8..b98bcc9dbd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside1.cs @@ -14,7 +14,7 @@ public SubCarryIn64Outside1() : base(IRInstruction.SubCarryIn64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside2.cs index 2324041037..457089e27d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubCarryIn64Outside2.cs @@ -14,7 +14,7 @@ public SubCarryIn64Outside2() : base(IRInstruction.SubCarryIn64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4.cs index a9c7d0f1ea..6443a8db19 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4.cs @@ -16,7 +16,7 @@ public SubR4() : base(IRInstruction.SubR4, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4x2.cs index 9de355b017..d22126ce17 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR4x2.cs @@ -16,7 +16,7 @@ public SubR4x2() : base(IRInstruction.SubR4, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8.cs index b6082b9edd..90eb7dab9a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8.cs @@ -16,7 +16,7 @@ public SubR8() : base(IRInstruction.SubR8, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8x2.cs index a26f74d787..9a625317b3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/SubR8x2.cs @@ -16,7 +16,7 @@ public SubR8x2() : base(IRInstruction.SubR8, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Truncate64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Truncate64x32.cs index bb58a0cec4..90e566a3be 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Truncate64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Truncate64x32.cs @@ -16,7 +16,7 @@ public Truncate64x32() : base(IRInstruction.Truncate64x32, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32.cs index 2300070711..02d3ec8fd2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32.cs @@ -16,7 +16,7 @@ public Xor32() : base(IRInstruction.Xor32, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32x2.cs index cb08fc7da4..2283a87db7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor32x2.cs @@ -16,7 +16,7 @@ public Xor32x2() : base(IRInstruction.Xor32, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Xor32x2_v1() : base(IRInstruction.Xor32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Xor32x2_v2() : base(IRInstruction.Xor32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Xor32x2_v3() : base(IRInstruction.Xor32, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64.cs index 5674e8e518..b36da00d57 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64.cs @@ -16,7 +16,7 @@ public Xor64() : base(IRInstruction.Xor64, TransformType.Auto | TransformType.Op public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64x2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64x2.cs index 1d3249fe8c..000ed6758f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64x2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/Xor64x2.cs @@ -16,7 +16,7 @@ public Xor64x2() : base(IRInstruction.Xor64, TransformType.Auto | TransformType. public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Xor64x2_v1() : base(IRInstruction.Xor64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Xor64x2_v2() : base(IRInstruction.Xor64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -128,7 +128,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Xor64x2_v3() : base(IRInstruction.Xor64, TransformType.Auto | TransformTy public override int Priority => 90; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -174,7 +174,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x32.cs index 144d6c3b27..2cfbda0fe2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x32.cs @@ -16,7 +16,7 @@ public ZeroExtend16x32() : base(IRInstruction.ZeroExtend16x32, TransformType.Aut public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x64.cs index e57a950809..0a744b45f7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend16x64.cs @@ -16,7 +16,7 @@ public ZeroExtend16x64() : base(IRInstruction.ZeroExtend16x64, TransformType.Aut public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend32x64.cs index 7720ed34e2..ee70fbdef8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend32x64.cs @@ -16,7 +16,7 @@ public ZeroExtend32x64() : base(IRInstruction.ZeroExtend32x64, TransformType.Aut public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x32.cs index 50a74b76ab..cb5038590d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x32.cs @@ -16,7 +16,7 @@ public ZeroExtend8x32() : base(IRInstruction.ZeroExtend8x32, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x64.cs index c59224c219..adb653f48a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantFolding/ZeroExtend8x64.cs @@ -16,7 +16,7 @@ public ZeroExtend8x64() : base(IRInstruction.ZeroExtend8x64, TransformType.Auto public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32.cs index ca9b36c18d..30b7a304e5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32.cs @@ -14,7 +14,7 @@ public Add32() : base(IRInstruction.Add32, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32Expression.cs index 5fb4d10678..762a340866 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add32Expression.cs @@ -14,7 +14,7 @@ public Add32Expression() : base(IRInstruction.Add32, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add32Expression_v1() : base(IRInstruction.Add32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public Add32Expression_v2() : base(IRInstruction.Add32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public Add32Expression_v3() : base(IRInstruction.Add32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64.cs index ce7dea4d92..1343b5e145 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64.cs @@ -14,7 +14,7 @@ public Add64() : base(IRInstruction.Add64, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64Expression.cs index 61eabcc369..c0413d77e4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Add64Expression.cs @@ -14,7 +14,7 @@ public Add64Expression() : base(IRInstruction.Add64, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add64Expression_v1() : base(IRInstruction.Add64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public Add64Expression_v2() : base(IRInstruction.Add64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public Add64Expression_v3() : base(IRInstruction.Add64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddManagedPointer.cs index fa63a3afa6..6cd6bbafee 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddManagedPointer.cs @@ -14,7 +14,7 @@ public AddManagedPointer() : base(IRInstruction.AddManagedPointer, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4.cs index 057ed4d692..f2aa85b77a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4.cs @@ -14,7 +14,7 @@ public AddR4() : base(IRInstruction.AddR4, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4Expression.cs index cdbc8addba..8fb5f2679a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR4Expression.cs @@ -14,7 +14,7 @@ public AddR4Expression() : base(IRInstruction.AddR4, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddR4Expression_v1() : base(IRInstruction.AddR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public AddR4Expression_v2() : base(IRInstruction.AddR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public AddR4Expression_v3() : base(IRInstruction.AddR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8.cs index 8b6e18d812..aba08a021c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8.cs @@ -14,7 +14,7 @@ public AddR8() : base(IRInstruction.AddR8, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8Expression.cs index 74e7f992d2..3306e5ee0e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/AddR8Expression.cs @@ -14,7 +14,7 @@ public AddR8Expression() : base(IRInstruction.AddR8, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public AddR8Expression_v1() : base(IRInstruction.AddR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public AddR8Expression_v2() : base(IRInstruction.AddR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public AddR8Expression_v3() : base(IRInstruction.AddR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32.cs index e96bd8fc26..8910b9983b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32.cs @@ -14,7 +14,7 @@ public And32() : base(IRInstruction.And32, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32Expression.cs index edfc4fe2d0..9d2a79bf4a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And32Expression.cs @@ -14,7 +14,7 @@ public And32Expression() : base(IRInstruction.And32, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public And32Expression_v1() : base(IRInstruction.And32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public And32Expression_v2() : base(IRInstruction.And32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public And32Expression_v3() : base(IRInstruction.And32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64.cs index 058e354626..4fb41e9eb7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64.cs @@ -14,7 +14,7 @@ public And64() : base(IRInstruction.And64, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64Expression.cs index 89f66f10a5..04c5dbe0f9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/And64Expression.cs @@ -14,7 +14,7 @@ public And64Expression() : base(IRInstruction.And64, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public And64Expression_v1() : base(IRInstruction.And64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public And64Expression_v2() : base(IRInstruction.And64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public And64Expression_v3() : base(IRInstruction.And64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4.cs index 871b87553b..feef4875e5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4.cs @@ -14,7 +14,7 @@ public MulR4() : base(IRInstruction.MulR4, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4Expression.cs index ef92d9f1ad..e441d4b9a6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR4Expression.cs @@ -14,7 +14,7 @@ public MulR4Expression() : base(IRInstruction.MulR4, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulR4Expression_v1() : base(IRInstruction.MulR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public MulR4Expression_v2() : base(IRInstruction.MulR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public MulR4Expression_v3() : base(IRInstruction.MulR4, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8.cs index 00f8612452..967a263cd5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8.cs @@ -14,7 +14,7 @@ public MulR8() : base(IRInstruction.MulR8, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8Expression.cs index fa4dc6ddbd..d599682185 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulR8Expression.cs @@ -14,7 +14,7 @@ public MulR8Expression() : base(IRInstruction.MulR8, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulR8Expression_v1() : base(IRInstruction.MulR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public MulR8Expression_v2() : base(IRInstruction.MulR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public MulR8Expression_v3() : base(IRInstruction.MulR8, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32.cs index 79d0a71130..251f39f1b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32.cs @@ -14,7 +14,7 @@ public MulSigned32() : base(IRInstruction.MulSigned32, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32Expression.cs index e65fc447fc..ae47dd0022 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned32Expression.cs @@ -14,7 +14,7 @@ public MulSigned32Expression() : base(IRInstruction.MulSigned32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulSigned32Expression_v1() : base(IRInstruction.MulSigned32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public MulSigned32Expression_v2() : base(IRInstruction.MulSigned32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public MulSigned32Expression_v3() : base(IRInstruction.MulSigned32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64.cs index facdf3f4fd..2d00622cb3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64.cs @@ -14,7 +14,7 @@ public MulSigned64() : base(IRInstruction.MulSigned64, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64Expression.cs index 191a1a5aef..cbd5e1b1fc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulSigned64Expression.cs @@ -14,7 +14,7 @@ public MulSigned64Expression() : base(IRInstruction.MulSigned64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulSigned64Expression_v1() : base(IRInstruction.MulSigned64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public MulSigned64Expression_v2() : base(IRInstruction.MulSigned64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public MulSigned64Expression_v3() : base(IRInstruction.MulSigned64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32.cs index 46210197b0..73e4e67253 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32.cs @@ -14,7 +14,7 @@ public MulUnsigned32() : base(IRInstruction.MulUnsigned32, TransformType.Auto | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32Expression.cs index 2eecb82564..d71bf05d4d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned32Expression.cs @@ -14,7 +14,7 @@ public MulUnsigned32Expression() : base(IRInstruction.MulUnsigned32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulUnsigned32Expression_v1() : base(IRInstruction.MulUnsigned32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public MulUnsigned32Expression_v2() : base(IRInstruction.MulUnsigned32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public MulUnsigned32Expression_v3() : base(IRInstruction.MulUnsigned32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64.cs index c9caec5680..b7dd7cd0e7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64.cs @@ -14,7 +14,7 @@ public MulUnsigned64() : base(IRInstruction.MulUnsigned64, TransformType.Auto | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64Expression.cs index e09c400eae..12953b7143 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/MulUnsigned64Expression.cs @@ -14,7 +14,7 @@ public MulUnsigned64Expression() : base(IRInstruction.MulUnsigned64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public MulUnsigned64Expression_v1() : base(IRInstruction.MulUnsigned64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public MulUnsigned64Expression_v2() : base(IRInstruction.MulUnsigned64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public MulUnsigned64Expression_v3() : base(IRInstruction.MulUnsigned64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32.cs index 8946b86690..5a8dc74891 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32.cs @@ -14,7 +14,7 @@ public Or32() : base(IRInstruction.Or32, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32Expression.cs index 4bf7fbac12..10ab274e57 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or32Expression.cs @@ -14,7 +14,7 @@ public Or32Expression() : base(IRInstruction.Or32, TransformType.Auto | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Or32Expression_v1() : base(IRInstruction.Or32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public Or32Expression_v2() : base(IRInstruction.Or32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public Or32Expression_v3() : base(IRInstruction.Or32, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64.cs index 55587dc105..94209fe955 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64.cs @@ -14,7 +14,7 @@ public Or64() : base(IRInstruction.Or64, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64Expression.cs index f2227626d6..fb4c9dc65e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Or64Expression.cs @@ -14,7 +14,7 @@ public Or64Expression() : base(IRInstruction.Or64, TransformType.Auto | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Or64Expression_v1() : base(IRInstruction.Or64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public Or64Expression_v2() : base(IRInstruction.Or64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public Or64Expression_v3() : base(IRInstruction.Or64, TransformType.Auto | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs index 01291b3a2b..5abe819886 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs @@ -14,7 +14,7 @@ public Xor32() : base(IRInstruction.Xor32, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32Expression.cs index d32eb1d5f8..4f90b63c5e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor32Expression.cs @@ -14,7 +14,7 @@ public Xor32Expression() : base(IRInstruction.Xor32, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Xor32Expression_v1() : base(IRInstruction.Xor32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public Xor32Expression_v2() : base(IRInstruction.Xor32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public Xor32Expression_v3() : base(IRInstruction.Xor32, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64.cs index de5d74063b..2bbe03bc3d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64.cs @@ -14,7 +14,7 @@ public Xor64() : base(IRInstruction.Xor64, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64Expression.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64Expression.cs index 3e157bda14..44a092705c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64Expression.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/ConstantMove/Xor64Expression.cs @@ -14,7 +14,7 @@ public Xor64Expression() : base(IRInstruction.Xor64, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Xor64Expression_v1() : base(IRInstruction.Xor64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -110,7 +110,7 @@ public Xor64Expression_v2() : base(IRInstruction.Xor64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -133,7 +133,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -158,7 +158,7 @@ public Xor64Expression_v3() : base(IRInstruction.Xor64, TransformType.Auto | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -181,7 +181,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/LowerTo32/Or32Truncate64x32Truncate64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/LowerTo32/Or32Truncate64x32Truncate64x32.cs index 33a056fc75..fa950408b3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/LowerTo32/Or32Truncate64x32Truncate64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/LowerTo32/Or32Truncate64x32Truncate64x32.cs @@ -14,7 +14,7 @@ public Or32Truncate64x32Truncate64x32() : base(IRInstruction.Or32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.Is32BitPlatform) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned32WithShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned32WithShiftLeft32.cs index 28bfc7c4c4..960b7007c9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned32WithShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned32WithShiftLeft32.cs @@ -14,7 +14,7 @@ public MulSigned32WithShiftLeft32() : base(IRInstruction.MulSigned32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -53,7 +53,7 @@ public MulSigned32WithShiftLeft32_v1() : base(IRInstruction.MulSigned32, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -67,7 +67,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned64WithShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned64WithShiftLeft64.cs index 3315e9d1c5..4bdf2230e3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned64WithShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulSigned64WithShiftLeft64.cs @@ -14,7 +14,7 @@ public MulSigned64WithShiftLeft64() : base(IRInstruction.MulSigned64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -53,7 +53,7 @@ public MulSigned64WithShiftLeft64_v1() : base(IRInstruction.MulSigned64, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -67,7 +67,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned32WithShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned32WithShiftLeft32.cs index d5d838d690..7d39703ee1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned32WithShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned32WithShiftLeft32.cs @@ -14,7 +14,7 @@ public MulUnsigned32WithShiftLeft32() : base(IRInstruction.MulUnsigned32, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -53,7 +53,7 @@ public MulUnsigned32WithShiftLeft32_v1() : base(IRInstruction.MulUnsigned32, Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -67,7 +67,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned64WithShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned64WithShiftLeft64.cs index c2b5ee66b3..e21d22c612 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned64WithShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/MulUnsigned64WithShiftLeft64.cs @@ -14,7 +14,7 @@ public MulUnsigned64WithShiftLeft64() : base(IRInstruction.MulUnsigned64, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -53,7 +53,7 @@ public MulUnsigned64WithShiftLeft64_v1() : base(IRInstruction.MulUnsigned64, Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -67,7 +67,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd32.cs index 24812499e9..dc6ce49672 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd32.cs @@ -14,7 +14,7 @@ public SubToAdd32() : base(IRInstruction.Sub32, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd64.cs index 2344b12e17..010a072963 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Reorder/SubToAdd64.cs @@ -14,7 +14,7 @@ public SubToAdd64() : base(IRInstruction.Sub64, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x32GreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x32GreaterThanZero.cs index af86d36451..4d0c0e21a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x32GreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x32GreaterThanZero.cs @@ -14,7 +14,7 @@ public Compare32x32GreaterThanZero() : base(IRInstruction.Compare32x32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -46,7 +46,7 @@ public Compare32x32GreaterThanZero_v1() : base(IRInstruction.Compare32x32, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x64GreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x64GreaterThanZero.cs index 815727fa9b..7b80734801 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x64GreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare32x64GreaterThanZero.cs @@ -14,7 +14,7 @@ public Compare32x64GreaterThanZero() : base(IRInstruction.Compare32x64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -46,7 +46,7 @@ public Compare32x64GreaterThanZero_v1() : base(IRInstruction.Compare32x64, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x32GreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x32GreaterThanZero.cs index 4dc5e5e8e2..9a5b0dcebb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x32GreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x32GreaterThanZero.cs @@ -14,7 +14,7 @@ public Compare64x32GreaterThanZero() : base(IRInstruction.Compare64x32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -46,7 +46,7 @@ public Compare64x32GreaterThanZero_v1() : base(IRInstruction.Compare64x32, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x64GreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x64GreaterThanZero.cs index 02ef147959..5a244374f6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x64GreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/Compare64x64GreaterThanZero.cs @@ -14,7 +14,7 @@ public Compare64x64GreaterThanZero() : base(IRInstruction.Compare64x64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -46,7 +46,7 @@ public Compare64x64GreaterThanZero_v1() : base(IRInstruction.Compare64x64, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareManagedPointerGreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareManagedPointerGreaterThanZero.cs index f172dba16f..5c2923d9df 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareManagedPointerGreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareManagedPointerGreaterThanZero.cs @@ -14,7 +14,7 @@ public CompareManagedPointerGreaterThanZero() : base(IRInstruction.CompareManage { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -46,7 +46,7 @@ public CompareManagedPointerGreaterThanZero_v1() : base(IRInstruction.CompareMan { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareObjectGreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareObjectGreaterThanZero.cs index cfa031b63c..798b88624d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareObjectGreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/CompareObjectGreaterThanZero.cs @@ -14,7 +14,7 @@ public CompareObjectGreaterThanZero() : base(IRInstruction.CompareObject, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -46,7 +46,7 @@ public CompareObjectGreaterThanZero_v1() : base(IRInstruction.CompareObject, Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v1.cs index 48ed759c40..dae50b2479 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v1.cs @@ -14,7 +14,7 @@ public IfThenElse32Compare32v1() : base(IRInstruction.IfThenElse32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse32Compare32v1_v1() : base(IRInstruction.IfThenElse32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v2.cs index 8ef7c2bb9b..66324b9715 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v2.cs @@ -14,7 +14,7 @@ public IfThenElse32Compare32v2() : base(IRInstruction.IfThenElse32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse32Compare32v2_v1() : base(IRInstruction.IfThenElse32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v3.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v3.cs index 7c7f45bd8b..edd965461e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v3.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v3.cs @@ -14,7 +14,7 @@ public IfThenElse32Compare32v3() : base(IRInstruction.IfThenElse32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse32Compare32v3_v1() : base(IRInstruction.IfThenElse32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v4.cs index bbdd1c4cf8..59109b4750 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse32Compare32v4.cs @@ -14,7 +14,7 @@ public IfThenElse32Compare32v4() : base(IRInstruction.IfThenElse32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse32Compare32v4_v1() : base(IRInstruction.IfThenElse32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v1.cs index 3b72df96d9..3ffc277e36 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v1.cs @@ -14,7 +14,7 @@ public IfThenElse64Compare64v1() : base(IRInstruction.IfThenElse64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse64Compare64v1_v1() : base(IRInstruction.IfThenElse64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v2.cs index b1a07769b6..8ec9463eb9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v2.cs @@ -14,7 +14,7 @@ public IfThenElse64Compare64v2() : base(IRInstruction.IfThenElse64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse64Compare64v2_v1() : base(IRInstruction.IfThenElse64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v3.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v3.cs index 51b039e3f9..c74d0128f1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v3.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v3.cs @@ -14,7 +14,7 @@ public IfThenElse64Compare64v3() : base(IRInstruction.IfThenElse64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse64Compare64v3_v1() : base(IRInstruction.IfThenElse64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v4.cs index 3b9d217f14..0dbe7be41e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Rewrite/IfThenElse64Compare64v4.cs @@ -14,7 +14,7 @@ public IfThenElse64Compare64v4() : base(IRInstruction.IfThenElse64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -59,7 +59,7 @@ public IfThenElse64Compare64v4_v1() : base(IRInstruction.IfThenElse64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -82,7 +82,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32MultipleWithCommon.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32MultipleWithCommon.cs index aa14d52066..b8700b6677 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32MultipleWithCommon.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32MultipleWithCommon.cs @@ -14,7 +14,7 @@ public Add32MultipleWithCommon() : base(IRInstruction.Add32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Add32MultipleWithCommon_v1() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -91,7 +91,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Add32MultipleWithCommon_v2() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Add32MultipleWithCommon_v3() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -193,7 +193,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -218,7 +218,7 @@ public Add32MultipleWithCommon_v4() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -244,7 +244,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -269,7 +269,7 @@ public Add32MultipleWithCommon_v5() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -295,7 +295,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -320,7 +320,7 @@ public Add32MultipleWithCommon_v6() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -346,7 +346,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -371,7 +371,7 @@ public Add32MultipleWithCommon_v7() : base(IRInstruction.Add32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -397,7 +397,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32v1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32v1.cs index a629bfda9d..d5878c0a51 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32v1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add32v1.cs @@ -14,7 +14,7 @@ public Add32v1() : base(IRInstruction.Add32, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -51,7 +51,7 @@ public Add32v1_v1() : base(IRInstruction.Add32, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -68,7 +68,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64MultipleWithCommon.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64MultipleWithCommon.cs index d839bf0bdb..8dd109585c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64MultipleWithCommon.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64MultipleWithCommon.cs @@ -14,7 +14,7 @@ public Add64MultipleWithCommon() : base(IRInstruction.Add64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Add64MultipleWithCommon_v1() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -91,7 +91,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Add64MultipleWithCommon_v2() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Add64MultipleWithCommon_v3() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -193,7 +193,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -218,7 +218,7 @@ public Add64MultipleWithCommon_v4() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -244,7 +244,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -269,7 +269,7 @@ public Add64MultipleWithCommon_v5() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -295,7 +295,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -320,7 +320,7 @@ public Add64MultipleWithCommon_v6() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -346,7 +346,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -371,7 +371,7 @@ public Add64MultipleWithCommon_v7() : base(IRInstruction.Add64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -397,7 +397,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64v1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64v1.cs index cad436bc1b..c829144409 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64v1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Add64v1.cs @@ -14,7 +14,7 @@ public Add64v1() : base(IRInstruction.Add64, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -51,7 +51,7 @@ public Add64v1_v1() : base(IRInstruction.Add64, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -68,7 +68,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Double.cs index c2ad363877..0ee53f220c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Double.cs @@ -14,7 +14,7 @@ public And32Double() : base(IRInstruction.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -52,7 +52,7 @@ public And32Double_v1() : base(IRInstruction.And32, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -69,7 +69,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -90,7 +90,7 @@ public And32Double_v2() : base(IRInstruction.And32, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -107,7 +107,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -128,7 +128,7 @@ public And32Double_v3() : base(IRInstruction.And32, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Not32Not32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Not32Not32.cs index daab220952..cc905c8618 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Not32Not32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Not32Not32.cs @@ -14,7 +14,7 @@ public And32Not32Not32() : base(IRInstruction.And32, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Same.cs index 8308e89bc4..94eb32f6c2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And32Same.cs @@ -14,7 +14,7 @@ public And32Same() : base(IRInstruction.And32, TransformType.Auto | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Double.cs index 7192f702ac..5b7ebb05bb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Double.cs @@ -14,7 +14,7 @@ public And64Double() : base(IRInstruction.And64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -52,7 +52,7 @@ public And64Double_v1() : base(IRInstruction.And64, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -69,7 +69,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -90,7 +90,7 @@ public And64Double_v2() : base(IRInstruction.And64, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -107,7 +107,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -128,7 +128,7 @@ public And64Double_v3() : base(IRInstruction.And64, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Not64Not64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Not64Not64.cs index e2efc4caf1..38744ce57c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Not64Not64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Not64Not64.cs @@ -14,7 +14,7 @@ public And64Not64Not64() : base(IRInstruction.And64, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Same.cs index 5773a18f50..fb431ffbd3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/And64Same.cs @@ -14,7 +14,7 @@ public And64Same() : base(IRInstruction.And64, TransformType.Auto | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32NotPassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32NotPassThru.cs index b1163102e1..431f9066d5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32NotPassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32NotPassThru.cs @@ -14,7 +14,7 @@ public Compare32x32NotPassThru() : base(IRInstruction.Compare32x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -68,7 +68,7 @@ public Compare32x32NotPassThru_v1() : base(IRInstruction.Compare32x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -97,7 +97,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -122,7 +122,7 @@ public Compare32x32NotPassThru_v2() : base(IRInstruction.Compare32x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -151,7 +151,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -176,7 +176,7 @@ public Compare32x32NotPassThru_v3() : base(IRInstruction.Compare32x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -205,7 +205,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru.cs index 08667522cf..919444ef9d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru.cs @@ -14,7 +14,7 @@ public Compare32x32PassThru() : base(IRInstruction.Compare32x32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare32x32PassThru_v1() : base(IRInstruction.Compare32x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare32x32PassThru_v2() : base(IRInstruction.Compare32x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare32x32PassThru_v3() : base(IRInstruction.Compare32x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru2.cs index ad0501fa4c..123545d79d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32PassThru2.cs @@ -14,7 +14,7 @@ public Compare32x32PassThru2() : base(IRInstruction.Compare32x32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare32x32PassThru2_v1() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare32x32PassThru2_v2() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare32x32PassThru2_v3() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndEqual.cs index 3532b0a3eb..5085236fff 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndEqual.cs @@ -14,7 +14,7 @@ public Compare32x32SameAndEqual() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndNotEqual.cs index e79200227f..ed184aff54 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SameAndNotEqual.cs @@ -14,7 +14,7 @@ public Compare32x32SameAndNotEqual() : base(IRInstruction.Compare32x32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SwapToZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SwapToZero.cs index 20c27411be..62d1f29df7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SwapToZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x32SwapToZero.cs @@ -14,7 +14,7 @@ public Compare32x32SwapToZero() : base(IRInstruction.Compare32x32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -69,7 +69,7 @@ public Compare32x32SwapToZero_v1() : base(IRInstruction.Compare32x32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -98,7 +98,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -124,7 +124,7 @@ public Compare32x32SwapToZero_v2() : base(IRInstruction.Compare32x32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -153,7 +153,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -179,7 +179,7 @@ public Compare32x32SwapToZero_v3() : base(IRInstruction.Compare32x32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -208,7 +208,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64NotPassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64NotPassThru.cs index acc52ab033..9448d32baa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64NotPassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64NotPassThru.cs @@ -14,7 +14,7 @@ public Compare32x64NotPassThru() : base(IRInstruction.Compare32x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -68,7 +68,7 @@ public Compare32x64NotPassThru_v1() : base(IRInstruction.Compare32x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -97,7 +97,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -122,7 +122,7 @@ public Compare32x64NotPassThru_v2() : base(IRInstruction.Compare32x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -151,7 +151,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -176,7 +176,7 @@ public Compare32x64NotPassThru_v3() : base(IRInstruction.Compare32x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -205,7 +205,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru.cs index 20d93cee67..f65108eba9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru.cs @@ -14,7 +14,7 @@ public Compare32x64PassThru() : base(IRInstruction.Compare32x64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare32x64PassThru_v1() : base(IRInstruction.Compare32x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare32x64PassThru_v2() : base(IRInstruction.Compare32x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare32x64PassThru_v3() : base(IRInstruction.Compare32x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru2.cs index 3e0aec462f..531ed5e329 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64PassThru2.cs @@ -14,7 +14,7 @@ public Compare32x64PassThru2() : base(IRInstruction.Compare32x64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare32x64PassThru2_v1() : base(IRInstruction.Compare32x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare32x64PassThru2_v2() : base(IRInstruction.Compare32x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare32x64PassThru2_v3() : base(IRInstruction.Compare32x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndEqual.cs index 6590321b17..64507d429b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndEqual.cs @@ -14,7 +14,7 @@ public Compare32x64SameAndEqual() : base(IRInstruction.Compare32x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndNotEqual.cs index 5d222c86c1..790462bb03 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SameAndNotEqual.cs @@ -14,7 +14,7 @@ public Compare32x64SameAndNotEqual() : base(IRInstruction.Compare32x64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SwapToZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SwapToZero.cs index 46dcde77fb..6d181992e7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SwapToZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare32x64SwapToZero.cs @@ -14,7 +14,7 @@ public Compare32x64SwapToZero() : base(IRInstruction.Compare32x64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -69,7 +69,7 @@ public Compare32x64SwapToZero_v1() : base(IRInstruction.Compare32x64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -98,7 +98,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -124,7 +124,7 @@ public Compare32x64SwapToZero_v2() : base(IRInstruction.Compare32x64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -153,7 +153,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -179,7 +179,7 @@ public Compare32x64SwapToZero_v3() : base(IRInstruction.Compare32x64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -208,7 +208,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32NotPassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32NotPassThru.cs index f09f28f917..cad9ddea57 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32NotPassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32NotPassThru.cs @@ -14,7 +14,7 @@ public Compare64x32NotPassThru() : base(IRInstruction.Compare64x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -68,7 +68,7 @@ public Compare64x32NotPassThru_v1() : base(IRInstruction.Compare64x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -97,7 +97,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -122,7 +122,7 @@ public Compare64x32NotPassThru_v2() : base(IRInstruction.Compare64x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -151,7 +151,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -176,7 +176,7 @@ public Compare64x32NotPassThru_v3() : base(IRInstruction.Compare64x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -205,7 +205,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru.cs index e032515592..e55a874e05 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru.cs @@ -14,7 +14,7 @@ public Compare64x32PassThru() : base(IRInstruction.Compare64x32, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare64x32PassThru_v1() : base(IRInstruction.Compare64x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare64x32PassThru_v2() : base(IRInstruction.Compare64x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare64x32PassThru_v3() : base(IRInstruction.Compare64x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru2.cs index ee526f1649..957d1395d2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32PassThru2.cs @@ -14,7 +14,7 @@ public Compare64x32PassThru2() : base(IRInstruction.Compare64x32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare64x32PassThru2_v1() : base(IRInstruction.Compare64x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare64x32PassThru2_v2() : base(IRInstruction.Compare64x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare64x32PassThru2_v3() : base(IRInstruction.Compare64x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndEqual.cs index 03cb819998..5e8b0bd4fa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndEqual.cs @@ -14,7 +14,7 @@ public Compare64x32SameAndEqual() : base(IRInstruction.Compare64x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndNotEqual.cs index c1ffaeb993..004d9d7df4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SameAndNotEqual.cs @@ -14,7 +14,7 @@ public Compare64x32SameAndNotEqual() : base(IRInstruction.Compare64x32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SwapToZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SwapToZero.cs index 7f9ac381b2..d52ce76f76 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SwapToZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x32SwapToZero.cs @@ -14,7 +14,7 @@ public Compare64x32SwapToZero() : base(IRInstruction.Compare64x32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -69,7 +69,7 @@ public Compare64x32SwapToZero_v1() : base(IRInstruction.Compare64x32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -98,7 +98,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -124,7 +124,7 @@ public Compare64x32SwapToZero_v2() : base(IRInstruction.Compare64x32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -153,7 +153,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -179,7 +179,7 @@ public Compare64x32SwapToZero_v3() : base(IRInstruction.Compare64x32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -208,7 +208,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64NotPassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64NotPassThru.cs index b31f661808..31cfa3d8fe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64NotPassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64NotPassThru.cs @@ -14,7 +14,7 @@ public Compare64x64NotPassThru() : base(IRInstruction.Compare64x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -68,7 +68,7 @@ public Compare64x64NotPassThru_v1() : base(IRInstruction.Compare64x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -97,7 +97,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -122,7 +122,7 @@ public Compare64x64NotPassThru_v2() : base(IRInstruction.Compare64x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -151,7 +151,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -176,7 +176,7 @@ public Compare64x64NotPassThru_v3() : base(IRInstruction.Compare64x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -205,7 +205,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru.cs index 8a73ce3bf8..a94ba4b012 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru.cs @@ -14,7 +14,7 @@ public Compare64x64PassThru() : base(IRInstruction.Compare64x64, TransformType.A { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare64x64PassThru_v1() : base(IRInstruction.Compare64x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare64x64PassThru_v2() : base(IRInstruction.Compare64x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare64x64PassThru_v3() : base(IRInstruction.Compare64x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru2.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru2.cs index d63065919b..dc7b9b4566 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru2.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64PassThru2.cs @@ -14,7 +14,7 @@ public Compare64x64PassThru2() : base(IRInstruction.Compare64x64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare64x64PassThru2_v1() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Compare64x64PassThru2_v2() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Compare64x64PassThru2_v3() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -196,7 +196,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndEqual.cs index d130335ef0..f03cfd67d9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndEqual.cs @@ -14,7 +14,7 @@ public Compare64x64SameAndEqual() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndNotEqual.cs index 4661792513..4b6787ab93 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SameAndNotEqual.cs @@ -14,7 +14,7 @@ public Compare64x64SameAndNotEqual() : base(IRInstruction.Compare64x64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SwapToZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SwapToZero.cs index aa79b04ce9..ab417453e4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SwapToZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Compare64x64SwapToZero.cs @@ -14,7 +14,7 @@ public Compare64x64SwapToZero() : base(IRInstruction.Compare64x64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -69,7 +69,7 @@ public Compare64x64SwapToZero_v1() : base(IRInstruction.Compare64x64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -98,7 +98,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -124,7 +124,7 @@ public Compare64x64SwapToZero_v2() : base(IRInstruction.Compare64x64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -153,7 +153,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -179,7 +179,7 @@ public Compare64x64SwapToZero_v3() : base(IRInstruction.Compare64x64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.NotEqual) return false; @@ -208,7 +208,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndEqual.cs index 35c40cada9..6afca4c9f3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndEqual.cs @@ -14,7 +14,7 @@ public CompareManagedPointerSameAndEqual() : base(IRInstruction.CompareManagedPo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndNotEqual.cs index d1f6f62bed..defc5ccb36 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareManagedPointerSameAndNotEqual.cs @@ -14,7 +14,7 @@ public CompareManagedPointerSameAndNotEqual() : base(IRInstruction.CompareManage { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndEqual.cs index f90be3e020..f57b7e8c93 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndEqual.cs @@ -14,7 +14,7 @@ public CompareObjectSameAndEqual() : base(IRInstruction.CompareObject, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndNotEqual.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndNotEqual.cs index f25b41f958..a0702e7a4e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndNotEqual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/CompareObjectSameAndNotEqual.cs @@ -14,7 +14,7 @@ public CompareObjectSameAndNotEqual() : base(IRInstruction.CompareObject, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var condition = context.ConditionCode; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromRightLeftAndTo64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromRightLeftAndTo64.cs index 6925fbb998..725b8782c7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromRightLeftAndTo64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromRightLeftAndTo64.cs @@ -14,7 +14,7 @@ public GetHigh32FromRightLeftAndTo64() : base(IRInstruction.GetHigh32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromShiftedMore32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromShiftedMore32.cs index e5a5d1bbbb..cd7d97c472 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromShiftedMore32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromShiftedMore32.cs @@ -14,7 +14,7 @@ public GetHigh32FromShiftedMore32() : base(IRInstruction.GetHigh32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromTo64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromTo64.cs index 0e228c31d5..db6f4ee692 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromTo64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32FromTo64.cs @@ -14,7 +14,7 @@ public GetHigh32FromTo64() : base(IRInstruction.GetHigh32, TransformType.Auto | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32To64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32To64.cs index 05148c024c..4c34f5c6d3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32To64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetHigh32To64.cs @@ -14,7 +14,7 @@ public GetHigh32To64() : base(IRInstruction.GetHigh32, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromRightShiftAndTo64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromRightShiftAndTo64.cs index 4b9a0cd6f1..6f33cdf690 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromRightShiftAndTo64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromRightShiftAndTo64.cs @@ -14,7 +14,7 @@ public GetLow32FromRightShiftAndTo64() : base(IRInstruction.GetLow32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedMore32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedMore32.cs index f07e2f7d72..346afd47b0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedMore32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedMore32.cs @@ -14,7 +14,7 @@ public GetLow32FromShiftedMore32() : base(IRInstruction.GetLow32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedRight32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedRight32.cs index d361573f18..131f5a8295 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedRight32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromShiftedRight32.cs @@ -14,7 +14,7 @@ public GetLow32FromShiftedRight32() : base(IRInstruction.GetLow32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromTo64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromTo64.cs index 8b6662ddf6..5aed8817c9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromTo64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32FromTo64.cs @@ -14,7 +14,7 @@ public GetLow32FromTo64() : base(IRInstruction.GetLow32, TransformType.Auto | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32To64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32To64.cs index 63f4401f32..51d45c80d0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32To64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/GetLow32To64.cs @@ -14,7 +14,7 @@ public GetLow32To64() : base(IRInstruction.GetLow32, TransformType.Auto | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move32Coalescing.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move32Coalescing.cs index bc75e75338..2320e74016 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move32Coalescing.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move32Coalescing.cs @@ -14,7 +14,7 @@ public Move32Coalescing() : base(IRInstruction.Move32, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move64Coalescing.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move64Coalescing.cs index f27db93d80..bd22376c8c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move64Coalescing.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Move64Coalescing.cs @@ -14,7 +14,7 @@ public Move64Coalescing() : base(IRInstruction.Move64, TransformType.Auto | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveManagedPointerCoalescing.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveManagedPointerCoalescing.cs index 3b4682f380..cd078e0899 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveManagedPointerCoalescing.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveManagedPointerCoalescing.cs @@ -14,7 +14,7 @@ public MoveManagedPointerCoalescing() : base(IRInstruction.MoveManagedPointer, T { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveObjectCoalescing.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveObjectCoalescing.cs index be1cf3d427..e592b2be82 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveObjectCoalescing.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MoveObjectCoalescing.cs @@ -14,7 +14,7 @@ public MoveObjectCoalescing() : base(IRInstruction.MoveObject, TransformType.Aut { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned32ByNegative1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned32ByNegative1.cs index 82a7d95cc9..0108e94142 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned32ByNegative1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned32ByNegative1.cs @@ -14,7 +14,7 @@ public MulSigned32ByNegative1() : base(IRInstruction.MulSigned32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -47,7 +47,7 @@ public MulSigned32ByNegative1_v1() : base(IRInstruction.MulSigned32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -58,7 +58,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned64ByNegative1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned64ByNegative1.cs index b851e552a5..cb0f771c2f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned64ByNegative1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/MulSigned64ByNegative1.cs @@ -14,7 +14,7 @@ public MulSigned64ByNegative1() : base(IRInstruction.MulSigned64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -47,7 +47,7 @@ public MulSigned64ByNegative1_v1() : base(IRInstruction.MulSigned64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -58,7 +58,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not32Twice.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not32Twice.cs index 83b4456a16..170fa63eb3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not32Twice.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not32Twice.cs @@ -14,7 +14,7 @@ public Not32Twice() : base(IRInstruction.Not32, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not64Twice.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not64Twice.cs index 42fb8076f2..56a770f252 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not64Twice.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Not64Twice.cs @@ -14,7 +14,7 @@ public Not64Twice() : base(IRInstruction.Not64, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32And32And32ByConstant.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32And32And32ByConstant.cs index f2391b0ed5..4ab6bce7df 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32And32And32ByConstant.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32And32And32ByConstant.cs @@ -14,7 +14,7 @@ public Or32And32And32ByConstant() : base(IRInstruction.Or32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Or32And32And32ByConstant_v1() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -91,7 +91,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Or32And32And32ByConstant_v2() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Or32And32And32ByConstant_v3() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -193,7 +193,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -218,7 +218,7 @@ public Or32And32And32ByConstant_v4() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -244,7 +244,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -269,7 +269,7 @@ public Or32And32And32ByConstant_v5() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -295,7 +295,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -320,7 +320,7 @@ public Or32And32And32ByConstant_v6() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -346,7 +346,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -371,7 +371,7 @@ public Or32And32And32ByConstant_v7() : base(IRInstruction.Or32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -397,7 +397,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Double.cs index 910b615ca4..5ee70f4028 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Double.cs @@ -14,7 +14,7 @@ public Or32Double() : base(IRInstruction.Or32, TransformType.Auto | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -52,7 +52,7 @@ public Or32Double_v1() : base(IRInstruction.Or32, TransformType.Auto | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -69,7 +69,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -90,7 +90,7 @@ public Or32Double_v2() : base(IRInstruction.Or32, TransformType.Auto | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -107,7 +107,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -128,7 +128,7 @@ public Or32Double_v3() : base(IRInstruction.Or32, TransformType.Auto | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Not32Not32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Not32Not32.cs index 9266eadd02..4ddee3e833 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Not32Not32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Not32Not32.cs @@ -14,7 +14,7 @@ public Or32Not32Not32() : base(IRInstruction.Or32, TransformType.Auto | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Same.cs index 3e1310f4c0..2c8ed9b3a0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32Same.cs @@ -14,7 +14,7 @@ public Or32Same() : base(IRInstruction.Or32, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32SignExtend16x32SignExtend16x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32SignExtend16x32SignExtend16x32.cs index 98dc28db1d..c29dc1edbd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32SignExtend16x32SignExtend16x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or32SignExtend16x32SignExtend16x32.cs @@ -14,7 +14,7 @@ public Or32SignExtend16x32SignExtend16x32() : base(IRInstruction.Or32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public Or32SignExtend16x32SignExtend16x32_v1() : base(IRInstruction.Or32, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -84,7 +84,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64And64And64ByConstant.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64And64And64ByConstant.cs index fa8d76466c..ed9ae179ca 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64And64And64ByConstant.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64And64And64ByConstant.cs @@ -14,7 +14,7 @@ public Or64And64And64ByConstant() : base(IRInstruction.Or64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Or64And64And64ByConstant_v1() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -91,7 +91,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Or64And64And64ByConstant_v2() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Or64And64And64ByConstant_v3() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -193,7 +193,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -218,7 +218,7 @@ public Or64And64And64ByConstant_v4() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -244,7 +244,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -269,7 +269,7 @@ public Or64And64And64ByConstant_v5() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -295,7 +295,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -320,7 +320,7 @@ public Or64And64And64ByConstant_v6() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -346,7 +346,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -371,7 +371,7 @@ public Or64And64And64ByConstant_v7() : base(IRInstruction.Or64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -397,7 +397,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Double.cs index 26e07ab382..e9360c720a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Double.cs @@ -14,7 +14,7 @@ public Or64Double() : base(IRInstruction.Or64, TransformType.Auto | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -52,7 +52,7 @@ public Or64Double_v1() : base(IRInstruction.Or64, TransformType.Auto | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -69,7 +69,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -90,7 +90,7 @@ public Or64Double_v2() : base(IRInstruction.Or64, TransformType.Auto | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -107,7 +107,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -128,7 +128,7 @@ public Or64Double_v3() : base(IRInstruction.Or64, TransformType.Auto | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Not64Not64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Not64Not64.cs index 08ac720bb4..c222a9d6e1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Not64Not64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Not64Not64.cs @@ -14,7 +14,7 @@ public Or64Not64Not64() : base(IRInstruction.Or64, TransformType.Auto | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Same.cs index 9cef6c8b12..ab26d4d319 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64Same.cs @@ -14,7 +14,7 @@ public Or64Same() : base(IRInstruction.Or64, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64SignExtend16x64SignExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64SignExtend16x64SignExtend16x64.cs index 085fc94191..0d04fe7203 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64SignExtend16x64SignExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Or64SignExtend16x64SignExtend16x64.cs @@ -14,7 +14,7 @@ public Or64SignExtend16x64SignExtend16x64() : base(IRInstruction.Or64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public Or64SignExtend16x64SignExtend16x64_v1() : base(IRInstruction.Or64, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -84,7 +84,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/SignExtend32x64Truncate64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/SignExtend32x64Truncate64x32.cs index 2244954e6b..d191e25f4f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/SignExtend32x64Truncate64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/SignExtend32x64Truncate64x32.cs @@ -14,7 +14,7 @@ public SignExtend32x64Truncate64x32() : base(IRInstruction.SignExtend32x64, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32MultipleWithCommon.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32MultipleWithCommon.cs index c22147b1e6..fb862e3472 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32MultipleWithCommon.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32MultipleWithCommon.cs @@ -14,7 +14,7 @@ public Sub32MultipleWithCommon() : base(IRInstruction.Sub32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Sub32MultipleWithCommon_v1() : base(IRInstruction.Sub32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -91,7 +91,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Sub32MultipleWithCommon_v2() : base(IRInstruction.Sub32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Sub32MultipleWithCommon_v3() : base(IRInstruction.Sub32, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -193,7 +193,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32v1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32v1.cs index 5cfdb7fff1..25ae99f377 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32v1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub32v1.cs @@ -14,7 +14,7 @@ public Sub32v1() : base(IRInstruction.Sub32, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -51,7 +51,7 @@ public Sub32v1_v1() : base(IRInstruction.Sub32, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -68,7 +68,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64MultipleWithCommon.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64MultipleWithCommon.cs index 163d004feb..bb42769628 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64MultipleWithCommon.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64MultipleWithCommon.cs @@ -14,7 +14,7 @@ public Sub64MultipleWithCommon() : base(IRInstruction.Sub64, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Sub64MultipleWithCommon_v1() : base(IRInstruction.Sub64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -91,7 +91,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -116,7 +116,7 @@ public Sub64MultipleWithCommon_v2() : base(IRInstruction.Sub64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -167,7 +167,7 @@ public Sub64MultipleWithCommon_v3() : base(IRInstruction.Sub64, TransformType.Au { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -193,7 +193,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64v1.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64v1.cs index a6513de5b3..0fdc5b4823 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64v1.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Sub64v1.cs @@ -14,7 +14,7 @@ public Sub64v1() : base(IRInstruction.Sub64, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -51,7 +51,7 @@ public Sub64v1_v1() : base(IRInstruction.Sub64, TransformType.Auto | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -68,7 +68,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Add64FromZeroExtended32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Add64FromZeroExtended32x64.cs index 8af7bd5587..77cbdca8a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Add64FromZeroExtended32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Add64FromZeroExtended32x64.cs @@ -14,7 +14,7 @@ public Truncate64x32Add64FromZeroExtended32x64() : base(IRInstruction.Truncate64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -46,7 +46,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32And64FromZeroExtended32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32And64FromZeroExtended32x64.cs index b500820990..6192d9db0b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32And64FromZeroExtended32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32And64FromZeroExtended32x64.cs @@ -14,7 +14,7 @@ public Truncate64x32And64FromZeroExtended32x64() : base(IRInstruction.Truncate64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -46,7 +46,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32MulUnsigned64FromZeroExtended32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32MulUnsigned64FromZeroExtended32x64.cs index 9a15612471..630d7bf842 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32MulUnsigned64FromZeroExtended32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32MulUnsigned64FromZeroExtended32x64.cs @@ -14,7 +14,7 @@ public Truncate64x32MulUnsigned64FromZeroExtended32x64() : base(IRInstruction.Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -46,7 +46,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Or64FromZeroExtended32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Or64FromZeroExtended32x64.cs index 10be112547..4604422a47 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Or64FromZeroExtended32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Or64FromZeroExtended32x64.cs @@ -14,7 +14,7 @@ public Truncate64x32Or64FromZeroExtended32x64() : base(IRInstruction.Truncate64x { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -46,7 +46,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Sub64FromZeroExtended32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Sub64FromZeroExtended32x64.cs index 5e314a65bb..ec69509976 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Sub64FromZeroExtended32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Sub64FromZeroExtended32x64.cs @@ -14,7 +14,7 @@ public Truncate64x32Sub64FromZeroExtended32x64() : base(IRInstruction.Truncate64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -46,7 +46,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Xor64FromZeroExtended32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Xor64FromZeroExtended32x64.cs index c8e71e37e8..fae4884607 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Xor64FromZeroExtended32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Truncate64x32Xor64FromZeroExtended32x64.cs @@ -14,7 +14,7 @@ public Truncate64x32Xor64FromZeroExtended32x64() : base(IRInstruction.Truncate64 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -46,7 +46,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Double.cs index f86bc37bbf..e36494e002 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Double.cs @@ -14,7 +14,7 @@ public Xor32Double() : base(IRInstruction.Xor32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -51,7 +51,7 @@ public Xor32Double_v1() : base(IRInstruction.Xor32, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -68,7 +68,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -88,7 +88,7 @@ public Xor32Double_v2() : base(IRInstruction.Xor32, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -105,7 +105,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -125,7 +125,7 @@ public Xor32Double_v3() : base(IRInstruction.Xor32, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Max.cs index 495f9920c0..4a7125fc05 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor32Max.cs @@ -14,7 +14,7 @@ public Xor32Max() : base(IRInstruction.Xor32, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -45,7 +45,7 @@ public Xor32Max_v1() : base(IRInstruction.Xor32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -56,7 +56,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Double.cs index 8f0a8e2538..acea53c768 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Double.cs @@ -14,7 +14,7 @@ public Xor64Double() : base(IRInstruction.Xor64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -51,7 +51,7 @@ public Xor64Double_v1() : base(IRInstruction.Xor64, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -68,7 +68,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -88,7 +88,7 @@ public Xor64Double_v2() : base(IRInstruction.Xor64, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -105,7 +105,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -125,7 +125,7 @@ public Xor64Double_v3() : base(IRInstruction.Xor64, TransformType.Auto | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -142,7 +142,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Max.cs index 889296e974..5e991061e8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Simplification/Xor64Max.cs @@ -14,7 +14,7 @@ public Xor64Max() : base(IRInstruction.Xor64, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -45,7 +45,7 @@ public Xor64Max_v1() : base(IRInstruction.Xor64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -56,7 +56,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add32Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add32Zero.cs index 8d2e0b8090..f1ab42fb80 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add32Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add32Zero.cs @@ -16,7 +16,7 @@ public Add32Zero() : base(IRInstruction.Add32, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Add32Zero_v1() : base(IRInstruction.Add32, TransformType.Auto | Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add64Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add64Zero.cs index 10b1e5552c..7fdefb2c05 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add64Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Add64Zero.cs @@ -16,7 +16,7 @@ public Add64Zero() : base(IRInstruction.Add64, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Add64Zero_v1() : base(IRInstruction.Add64, TransformType.Auto | Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/AddManagedPointerZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/AddManagedPointerZero.cs index 5cfb0dfa1c..e28d5754fb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/AddManagedPointerZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/AddManagedPointerZero.cs @@ -16,7 +16,7 @@ public AddManagedPointerZero() : base(IRInstruction.AddManagedPointer, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public AddManagedPointerZero_v1() : base(IRInstruction.AddManagedPointer, Transf public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Max.cs index 0d6ae88f4e..481602da11 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Max.cs @@ -16,7 +16,7 @@ public And32Max() : base(IRInstruction.And32, TransformType.Auto | TransformType public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public And32Max_v1() : base(IRInstruction.And32, TransformType.Auto | TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Zero.cs index d9ea6e0ee7..cb2290de84 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And32Zero.cs @@ -16,7 +16,7 @@ public And32Zero() : base(IRInstruction.And32, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public And32Zero_v1() : base(IRInstruction.And32, TransformType.Auto | Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Max.cs index 1861f45f64..04f511c55a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Max.cs @@ -16,7 +16,7 @@ public And64Max() : base(IRInstruction.And64, TransformType.Auto | TransformType public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public And64Max_v1() : base(IRInstruction.And64, TransformType.Auto | TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Zero.cs index cec5a32e80..d983c0a583 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/And64Zero.cs @@ -16,7 +16,7 @@ public And64Zero() : base(IRInstruction.And64, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public And64Zero_v1() : base(IRInstruction.And64, TransformType.Auto | Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32By32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32By32.cs index 0ac2812d1f..b53ff9e6e0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32By32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32By32.cs @@ -16,7 +16,7 @@ public ArithShiftRight32By32() : base(IRInstruction.ArithShiftRight32, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ByZero.cs index 7f829d7521..277c2ca73a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ByZero.cs @@ -16,7 +16,7 @@ public ArithShiftRight32ByZero() : base(IRInstruction.ArithShiftRight32, Transfo public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ZeroValue.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ZeroValue.cs index 28e1404610..f7cffd5d3c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ZeroValue.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight32ZeroValue.cs @@ -16,7 +16,7 @@ public ArithShiftRight32ZeroValue() : base(IRInstruction.ArithShiftRight32, Tran public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By32.cs index 76ab88494e..5a5ddfb2c9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By32.cs @@ -14,7 +14,7 @@ public ArithShiftRight64By32() : base(IRInstruction.GetLow32, TransformType.Auto { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By64.cs index 3358383f08..d4e3e21b65 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64By64.cs @@ -16,7 +16,7 @@ public ArithShiftRight64By64() : base(IRInstruction.ArithShiftRight64, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ByZero.cs index 9dbd31a498..f0941bdced 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ByZero.cs @@ -16,7 +16,7 @@ public ArithShiftRight64ByZero() : base(IRInstruction.ArithShiftRight64, Transfo public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ZeroValue.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ZeroValue.cs index 496e669a3b..326427178a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ZeroValue.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ArithShiftRight64ZeroValue.cs @@ -16,7 +16,7 @@ public ArithShiftRight64ZeroValue() : base(IRInstruction.ArithShiftRight64, Tran public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32DivUnsignedRange.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32DivUnsignedRange.cs index a7b27fca4f..ed1a834527 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32DivUnsignedRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32DivUnsignedRange.cs @@ -14,7 +14,7 @@ public Compare32x32DivUnsignedRange() : base(IRInstruction.Compare32x32, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -67,7 +67,7 @@ public Compare32x32DivUnsignedRange_v1() : base(IRInstruction.Compare32x32, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -93,7 +93,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32RemUnsigned.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32RemUnsigned.cs index 20de8c16a8..120a18f3ad 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32RemUnsigned.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x32RemUnsigned.cs @@ -14,7 +14,7 @@ public Compare32x32RemUnsigned() : base(IRInstruction.Compare32x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare32x32RemUnsigned_v1() : base(IRInstruction.Compare32x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64DivUnsignedRange.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64DivUnsignedRange.cs index 7ed01e7db9..d9843dd2a5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64DivUnsignedRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64DivUnsignedRange.cs @@ -14,7 +14,7 @@ public Compare32x64DivUnsignedRange() : base(IRInstruction.Compare32x64, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -67,7 +67,7 @@ public Compare32x64DivUnsignedRange_v1() : base(IRInstruction.Compare32x64, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -93,7 +93,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64RemUnsigned.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64RemUnsigned.cs index 57adb2e3c2..10cd06ce36 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64RemUnsigned.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare32x64RemUnsigned.cs @@ -14,7 +14,7 @@ public Compare32x64RemUnsigned() : base(IRInstruction.Compare32x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare32x64RemUnsigned_v1() : base(IRInstruction.Compare32x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32DivUnsignedRange.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32DivUnsignedRange.cs index 8da3590bfb..0960e11529 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32DivUnsignedRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32DivUnsignedRange.cs @@ -14,7 +14,7 @@ public Compare64x32DivUnsignedRange() : base(IRInstruction.Compare64x32, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -67,7 +67,7 @@ public Compare64x32DivUnsignedRange_v1() : base(IRInstruction.Compare64x32, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -93,7 +93,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32RemUnsigned.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32RemUnsigned.cs index 704c1ed66f..5ae0fd4f69 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32RemUnsigned.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x32RemUnsigned.cs @@ -14,7 +14,7 @@ public Compare64x32RemUnsigned() : base(IRInstruction.Compare64x32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare64x32RemUnsigned_v1() : base(IRInstruction.Compare64x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64DivUnsignedRange.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64DivUnsignedRange.cs index a848ccaf05..5a3015acaa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64DivUnsignedRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64DivUnsignedRange.cs @@ -14,7 +14,7 @@ public Compare64x64DivUnsignedRange() : base(IRInstruction.Compare64x64, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -67,7 +67,7 @@ public Compare64x64DivUnsignedRange_v1() : base(IRInstruction.Compare64x64, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -93,7 +93,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64RemUnsigned.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64RemUnsigned.cs index 96154ebce8..9d9b76c576 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64RemUnsigned.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Compare64x64RemUnsigned.cs @@ -14,7 +14,7 @@ public Compare64x64RemUnsigned() : base(IRInstruction.Compare64x64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -43,7 +43,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public Compare64x64RemUnsigned_v1() : base(IRInstruction.Compare64x64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByOne.cs index 0c126ba925..85af9275f4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByOne.cs @@ -16,7 +16,7 @@ public DivSigned32ByOne() : base(IRInstruction.DivSigned32, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByZero.cs index e6be85aeea..97f9aabeb3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned32ByZero.cs @@ -16,7 +16,7 @@ public DivSigned32ByZero() : base(IRInstruction.DivSigned32, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByOne.cs index bbc151c5b2..300504dad2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByOne.cs @@ -16,7 +16,7 @@ public DivSigned64ByOne() : base(IRInstruction.DivSigned64, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByZero.cs index d9d543eefe..98391fd671 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivSigned64ByZero.cs @@ -16,7 +16,7 @@ public DivSigned64ByZero() : base(IRInstruction.DivSigned64, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByOne.cs index 6ee48156fa..90a1874b4b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByOne.cs @@ -16,7 +16,7 @@ public DivUnsigned32ByOne() : base(IRInstruction.DivUnsigned32, TransformType.Au public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByPowerOfTwo.cs index 42dc40de28..cb1914eeff 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned32ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public DivUnsigned32ByPowerOfTwo() : base(IRInstruction.DivUnsigned32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByOne.cs index f46bf93686..bae1854559 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByOne.cs @@ -16,7 +16,7 @@ public DivUnsigned64ByOne() : base(IRInstruction.DivUnsigned64, TransformType.Au public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByPowerOfTwo.cs index 72b22f98f4..6ace3a127f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/DivUnsigned64ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public DivUnsigned64ByPowerOfTwo() : base(IRInstruction.DivUnsigned64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/IsolateAndFlipLeastSignificantBit32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/IsolateAndFlipLeastSignificantBit32.cs index 23d8a17eb2..53f8737247 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/IsolateAndFlipLeastSignificantBit32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/IsolateAndFlipLeastSignificantBit32.cs @@ -14,7 +14,7 @@ public IsolateAndFlipLeastSignificantBit32() : base(IRInstruction.Add32, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -55,7 +55,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -80,7 +80,7 @@ public IsolateAndFlipLeastSignificantBit32_v1() : base(IRInstruction.Add32, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -121,7 +121,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulHu32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulHu32ByZero.cs index 0ed86c4eb2..0ebafa07e0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulHu32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulHu32ByZero.cs @@ -16,7 +16,7 @@ public MulHu32ByZero() : base(IRInstruction.MulHu32, TransformType.Auto | Transf public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulHu32ByZero_v1() : base(IRInstruction.MulHu32, TransformType.Auto | Tra public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByOne.cs index 71a275076a..043dccb883 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByOne.cs @@ -16,7 +16,7 @@ public MulSigned32ByOne() : base(IRInstruction.MulSigned32, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulSigned32ByOne_v1() : base(IRInstruction.MulSigned32, TransformType.Aut public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByPowerOfTwo.cs index 7d4de15160..46a001f1e7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public MulSigned32ByPowerOfTwo() : base(IRInstruction.MulSigned32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -54,7 +54,7 @@ public MulSigned32ByPowerOfTwo_v1() : base(IRInstruction.MulSigned32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -71,7 +71,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByZero.cs index 9af1a32d17..dbb506d7ea 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned32ByZero.cs @@ -16,7 +16,7 @@ public MulSigned32ByZero() : base(IRInstruction.MulSigned32, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulSigned32ByZero_v1() : base(IRInstruction.MulSigned32, TransformType.Au public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByOne.cs index 7e686d77d3..3a4f66cb51 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByOne.cs @@ -16,7 +16,7 @@ public MulSigned64ByOne() : base(IRInstruction.MulSigned64, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulSigned64ByOne_v1() : base(IRInstruction.MulSigned64, TransformType.Aut public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByPowerOfTwo.cs index 83c6b3f925..26a758914d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public MulSigned64ByPowerOfTwo() : base(IRInstruction.MulSigned64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -54,7 +54,7 @@ public MulSigned64ByPowerOfTwo_v1() : base(IRInstruction.MulSigned64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -71,7 +71,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByZero.cs index 993564b0c8..b28ed254c7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulSigned64ByZero.cs @@ -16,7 +16,7 @@ public MulSigned64ByZero() : base(IRInstruction.MulSigned64, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulSigned64ByZero_v1() : base(IRInstruction.MulSigned64, TransformType.Au public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByOne.cs index aed061ea46..5717384a0e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByOne.cs @@ -16,7 +16,7 @@ public MulUnsigned32ByOne() : base(IRInstruction.MulUnsigned32, TransformType.Au public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulUnsigned32ByOne_v1() : base(IRInstruction.MulUnsigned32, TransformType public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByPowerOfTwo.cs index d32949b331..a8125c69aa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public MulUnsigned32ByPowerOfTwo() : base(IRInstruction.MulUnsigned32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -54,7 +54,7 @@ public MulUnsigned32ByPowerOfTwo_v1() : base(IRInstruction.MulUnsigned32, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -71,7 +71,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByZero.cs index 9efe9deb5b..ecb25ee730 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned32ByZero.cs @@ -16,7 +16,7 @@ public MulUnsigned32ByZero() : base(IRInstruction.MulUnsigned32, TransformType.A public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulUnsigned32ByZero_v1() : base(IRInstruction.MulUnsigned32, TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByOne.cs index 88ce5c81ca..03868bfe24 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByOne.cs @@ -16,7 +16,7 @@ public MulUnsigned64ByOne() : base(IRInstruction.MulUnsigned64, TransformType.Au public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulUnsigned64ByOne_v1() : base(IRInstruction.MulUnsigned64, TransformType public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByPowerOfTwo.cs index e67a91d92e..1a917f762a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public MulUnsigned64ByPowerOfTwo() : base(IRInstruction.MulUnsigned64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -54,7 +54,7 @@ public MulUnsigned64ByPowerOfTwo_v1() : base(IRInstruction.MulUnsigned64, Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -71,7 +71,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByZero.cs index da15c72a19..702dd22eaa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/MulUnsigned64ByZero.cs @@ -16,7 +16,7 @@ public MulUnsigned64ByZero() : base(IRInstruction.MulUnsigned64, TransformType.A public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public MulUnsigned64ByZero_v1() : base(IRInstruction.MulUnsigned64, TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32And32ClearAndSet.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32And32ClearAndSet.cs index 22074740da..64af4e5c6f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32And32ClearAndSet.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32And32ClearAndSet.cs @@ -16,7 +16,7 @@ public Or32And32ClearAndSet() : base(IRInstruction.Or32, TransformType.Auto | Tr public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Or32And32ClearAndSet_v1() : base(IRInstruction.Or32, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Or32And32ClearAndSet_v2() : base(IRInstruction.Or32, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -131,7 +131,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Or32And32ClearAndSet_v3() : base(IRInstruction.Or32, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -177,7 +177,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Max.cs index 7d38c91de0..67d24b94a6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Max.cs @@ -16,7 +16,7 @@ public Or32Max() : base(IRInstruction.Or32, TransformType.Auto | TransformType.O public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Or32Max_v1() : base(IRInstruction.Or32, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Xor32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Xor32.cs index b81a5585f0..8fd917115e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Xor32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Xor32.cs @@ -14,7 +14,7 @@ public Or32Xor32() : base(IRInstruction.Or32, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -52,7 +52,7 @@ public Or32Xor32_v1() : base(IRInstruction.Or32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -69,7 +69,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -90,7 +90,7 @@ public Or32Xor32_v2() : base(IRInstruction.Or32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -107,7 +107,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -128,7 +128,7 @@ public Or32Xor32_v3() : base(IRInstruction.Or32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Zero.cs index d790e17716..c68cbba3fe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or32Zero.cs @@ -16,7 +16,7 @@ public Or32Zero() : base(IRInstruction.Or32, TransformType.Auto | TransformType. public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Or32Zero_v1() : base(IRInstruction.Or32, TransformType.Auto | TransformTy public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64And64ClearAndSet.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64And64ClearAndSet.cs index 949d7ac1a5..4696fca344 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64And64ClearAndSet.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64And64ClearAndSet.cs @@ -16,7 +16,7 @@ public Or64And64ClearAndSet() : base(IRInstruction.Or64, TransformType.Auto | Tr public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Or64And64ClearAndSet_v1() : base(IRInstruction.Or64, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -85,7 +85,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -108,7 +108,7 @@ public Or64And64ClearAndSet_v2() : base(IRInstruction.Or64, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -131,7 +131,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -154,7 +154,7 @@ public Or64And64ClearAndSet_v3() : base(IRInstruction.Or64, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -177,7 +177,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Max.cs index 882fdfe9b7..5f483b2853 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Max.cs @@ -16,7 +16,7 @@ public Or64Max() : base(IRInstruction.Or64, TransformType.Auto | TransformType.O public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Or64Max_v1() : base(IRInstruction.Or64, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Xor64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Xor64.cs index f73068a56a..9c0db42cc2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Xor64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Xor64.cs @@ -14,7 +14,7 @@ public Or64Xor64() : base(IRInstruction.Or64, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -52,7 +52,7 @@ public Or64Xor64_v1() : base(IRInstruction.Or64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -69,7 +69,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -90,7 +90,7 @@ public Or64Xor64_v2() : base(IRInstruction.Or64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -107,7 +107,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -128,7 +128,7 @@ public Or64Xor64_v3() : base(IRInstruction.Or64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -145,7 +145,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Zero.cs index de003bf5a2..8cd6d7dec0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Or64Zero.cs @@ -16,7 +16,7 @@ public Or64Zero() : base(IRInstruction.Or64, TransformType.Auto | TransformType. public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Or64Zero_v1() : base(IRInstruction.Or64, TransformType.Auto | TransformTy public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned32ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned32ByPowerOfTwo.cs index 663aebebd2..455fe45925 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned32ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned32ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public RemUnsigned32ByPowerOfTwo() : base(IRInstruction.RemUnsigned32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned64ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned64ByPowerOfTwo.cs index 928900ceb3..78cf1229aa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned64ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/RemUnsigned64ByPowerOfTwo.cs @@ -14,7 +14,7 @@ public RemUnsigned64ByPowerOfTwo() : base(IRInstruction.RemUnsigned64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32By32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32By32.cs index 63b3cede1d..ce00d63db2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32By32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32By32.cs @@ -16,7 +16,7 @@ public ShiftLeft32By32() : base(IRInstruction.ShiftLeft32, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32ByZero.cs index 42e68d9b48..4813ff9aaf 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft32ByZero.cs @@ -16,7 +16,7 @@ public ShiftLeft32ByZero() : base(IRInstruction.ShiftLeft32, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64By64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64By64.cs index b1d0a8b956..1d25fb106f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64By64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64By64.cs @@ -16,7 +16,7 @@ public ShiftLeft64By64() : base(IRInstruction.ShiftLeft64, TransformType.Auto | public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64ByZero.cs index d45afe75d7..11c9964be9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftLeft64ByZero.cs @@ -16,7 +16,7 @@ public ShiftLeft64ByZero() : base(IRInstruction.ShiftLeft64, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32By32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32By32.cs index 754b401925..12ac317da0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32By32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32By32.cs @@ -16,7 +16,7 @@ public ShiftRight32By32() : base(IRInstruction.ShiftRight32, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ByZero.cs index 681191b47a..605854c6ce 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ByZero.cs @@ -16,7 +16,7 @@ public ShiftRight32ByZero() : base(IRInstruction.ShiftRight32, TransformType.Aut public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ZeroValue.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ZeroValue.cs index 36cf226e0c..9607342504 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ZeroValue.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight32ZeroValue.cs @@ -16,7 +16,7 @@ public ShiftRight32ZeroValue() : base(IRInstruction.ShiftRight32, TransformType. public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64By64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64By64.cs index 9df1ccf849..daae6013a9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64By64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64By64.cs @@ -16,7 +16,7 @@ public ShiftRight64By64() : base(IRInstruction.ShiftRight64, TransformType.Auto public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ByZero.cs index b51337072d..a46060f822 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ByZero.cs @@ -16,7 +16,7 @@ public ShiftRight64ByZero() : base(IRInstruction.ShiftRight64, TransformType.Aut public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ZeroValue.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ZeroValue.cs index c51788ea73..e969db25bd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ZeroValue.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/ShiftRight64ZeroValue.cs @@ -16,7 +16,7 @@ public ShiftRight64ZeroValue() : base(IRInstruction.ShiftRight64, TransformType. public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs index 1f1a237529..001920ccbe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs @@ -16,7 +16,7 @@ public Sub32ByZero() : base(IRInstruction.Sub32, TransformType.Auto | TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32Same.cs index 7a5c972dde..04dee5eb45 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub32Same.cs @@ -16,7 +16,7 @@ public Sub32Same() : base(IRInstruction.Sub32, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs index eb1d7d5201..207bdd7365 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs @@ -16,7 +16,7 @@ public Sub64ByZero() : base(IRInstruction.Sub64, TransformType.Auto | TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64Same.cs index 433fc2db5a..227e4fc20b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Sub64Same.cs @@ -16,7 +16,7 @@ public Sub64Same() : base(IRInstruction.Sub64, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerByZero.cs index dc46d87cef..da2fc0eab3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerByZero.cs @@ -16,7 +16,7 @@ public SubManagedPointerByZero() : base(IRInstruction.SubManagedPointer, Transfo public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerSame.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerSame.cs index 4d78ab4985..96d1b0758f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerSame.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/SubManagedPointerSame.cs @@ -16,7 +16,7 @@ public SubManagedPointerSame() : base(IRInstruction.SubManagedPointer, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftLeft32.cs index b1f3bfd70a..9c52422401 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftLeft32.cs @@ -14,7 +14,7 @@ public UselessAnd32ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessAnd32ShiftLeft32_v1() : base(IRInstruction.ShiftLeft32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftRight32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftRight32.cs index 3251157908..8ecfd561c4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftRight32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd32ShiftRight32.cs @@ -14,7 +14,7 @@ public UselessAnd32ShiftRight32() : base(IRInstruction.ShiftRight32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessAnd32ShiftRight32_v1() : base(IRInstruction.ShiftRight32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftLeft64.cs index fdef75dc8a..62c15dda97 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftLeft64.cs @@ -14,7 +14,7 @@ public UselessAnd64ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessAnd64ShiftLeft64_v1() : base(IRInstruction.ShiftLeft64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftRight64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftRight64.cs index 3adb3e0157..136309873d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftRight64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessAnd64ShiftRight64.cs @@ -14,7 +14,7 @@ public UselessAnd64ShiftRight64() : base(IRInstruction.ShiftRight64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessAnd64ShiftRight64_v1() : base(IRInstruction.ShiftRight64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftLeft32.cs index aff501d3b3..148f8a0751 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftLeft32.cs @@ -14,7 +14,7 @@ public UselessOr32ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessOr32ShiftLeft32_v1() : base(IRInstruction.ShiftLeft32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftRight32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftRight32.cs index 2018099c43..388529f95c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftRight32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr32ShiftRight32.cs @@ -14,7 +14,7 @@ public UselessOr32ShiftRight32() : base(IRInstruction.ShiftRight32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessOr32ShiftRight32_v1() : base(IRInstruction.ShiftRight32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftLeft64.cs index fbe495aadd..3e471e267f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftLeft64.cs @@ -14,7 +14,7 @@ public UselessOr64ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessOr64ShiftLeft64_v1() : base(IRInstruction.ShiftLeft64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftRight64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftRight64.cs index 75cbf83c01..682d782609 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftRight64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessOr64ShiftRight64.cs @@ -14,7 +14,7 @@ public UselessOr64ShiftRight64() : base(IRInstruction.ShiftRight64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessOr64ShiftRight64_v1() : base(IRInstruction.ShiftRight64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftLeft32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftLeft32.cs index b155f81d5c..7bd9d88c4e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftLeft32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftLeft32.cs @@ -14,7 +14,7 @@ public UselessXor32ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessXor32ShiftLeft32_v1() : base(IRInstruction.ShiftLeft32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftRight32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftRight32.cs index f5985f1477..1b71824a12 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftRight32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor32ShiftRight32.cs @@ -14,7 +14,7 @@ public UselessXor32ShiftRight32() : base(IRInstruction.ShiftRight32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessXor32ShiftRight32_v1() : base(IRInstruction.ShiftRight32, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftLeft64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftLeft64.cs index 684ac74d65..3c0b2179a0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftLeft64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftLeft64.cs @@ -14,7 +14,7 @@ public UselessXor64ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessXor64ShiftLeft64_v1() : base(IRInstruction.ShiftLeft64, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftRight64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftRight64.cs index 20cf8b6fd4..dc83ef8c8e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftRight64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/UselessXor64ShiftRight64.cs @@ -14,7 +14,7 @@ public UselessXor64ShiftRight64() : base(IRInstruction.ShiftRight64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -61,7 +61,7 @@ public UselessXor64ShiftRight64_v1() : base(IRInstruction.ShiftRight64, Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -87,7 +87,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Max.cs index 154185c55d..c69064eff2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Max.cs @@ -16,7 +16,7 @@ public Xor32Max() : base(IRInstruction.Xor32, TransformType.Auto | TransformType public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Xor32Max_v1() : base(IRInstruction.Xor32, TransformType.Auto | TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Same.cs index 28082d1ad9..d1e11966a7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Same.cs @@ -16,7 +16,7 @@ public Xor32Same() : base(IRInstruction.Xor32, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Xor32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Xor32.cs index ca86c26db8..16c9314db9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Xor32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Xor32.cs @@ -16,7 +16,7 @@ public Xor32Xor32() : base(IRInstruction.Xor32, TransformType.Auto | TransformTy public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -55,7 +55,7 @@ public Xor32Xor32_v1() : base(IRInstruction.Xor32, TransformType.Auto | Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -72,7 +72,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -94,7 +94,7 @@ public Xor32Xor32_v2() : base(IRInstruction.Xor32, TransformType.Auto | Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -111,7 +111,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -133,7 +133,7 @@ public Xor32Xor32_v3() : base(IRInstruction.Xor32, TransformType.Auto | Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -150,7 +150,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Zero.cs index 4bb16b0651..b9fb7f6203 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor32Zero.cs @@ -16,7 +16,7 @@ public Xor32Zero() : base(IRInstruction.Xor32, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Xor32Zero_v1() : base(IRInstruction.Xor32, TransformType.Auto | Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Max.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Max.cs index c7cb725b5a..4ec03ce41c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Max.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Max.cs @@ -16,7 +16,7 @@ public Xor64Max() : base(IRInstruction.Xor64, TransformType.Auto | TransformType public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Xor64Max_v1() : base(IRInstruction.Xor64, TransformType.Auto | TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Same.cs index f928e3e559..b7edcb8325 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Same.cs @@ -16,7 +16,7 @@ public Xor64Same() : base(IRInstruction.Xor64, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!AreSame(context.Operand1, context.Operand2)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Xor64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Xor64.cs index 4c3a52a2ab..e8aed259bf 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Xor64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Xor64.cs @@ -16,7 +16,7 @@ public Xor64Xor64() : base(IRInstruction.Xor64, TransformType.Auto | TransformTy public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -55,7 +55,7 @@ public Xor64Xor64_v1() : base(IRInstruction.Xor64, TransformType.Auto | Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -72,7 +72,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -94,7 +94,7 @@ public Xor64Xor64_v2() : base(IRInstruction.Xor64, TransformType.Auto | Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -111,7 +111,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -133,7 +133,7 @@ public Xor64Xor64_v3() : base(IRInstruction.Xor64, TransformType.Auto | Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -150,7 +150,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Zero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Zero.cs index 3547f63c62..8ffd6af48f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Zero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/StrengthReduction/Xor64Zero.cs @@ -16,7 +16,7 @@ public Xor64Zero() : base(IRInstruction.Xor64, TransformType.Auto | TransformTyp public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -49,7 +49,7 @@ public Xor64Zero_v1() : base(IRInstruction.Xor64, TransformType.Auto | Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -60,7 +60,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x32Double.cs index d98ad2a6a2..36274ee410 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x32Double.cs @@ -16,7 +16,7 @@ public SignExtend16x32Double() : base(IRInstruction.SignExtend16x32, TransformTy public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x64Double.cs index fee3f7d12e..b96bac273c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend16x64Double.cs @@ -16,7 +16,7 @@ public SignExtend16x64Double() : base(IRInstruction.SignExtend16x64, TransformTy public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend32x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend32x64Double.cs index dd86e7bae5..b47b3ee337 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend32x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend32x64Double.cs @@ -16,7 +16,7 @@ public SignExtend32x64Double() : base(IRInstruction.SignExtend32x64, TransformTy public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x32Double.cs index 2fc40f298d..d6bdfc9010 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x32Double.cs @@ -16,7 +16,7 @@ public SignExtend8x32Double() : base(IRInstruction.SignExtend8x32, TransformType public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x64Double.cs index 6813f9b584..397483007c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/SignExtend8x64Double.cs @@ -16,7 +16,7 @@ public SignExtend8x64Double() : base(IRInstruction.SignExtend8x64, TransformType public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32Double.cs index 3b50f31f27..0ab8cfb397 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32Double.cs @@ -16,7 +16,7 @@ public ZeroExtend16x32Double() : base(IRInstruction.ZeroExtend16x32, TransformTy public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32ZeroExtend8x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32ZeroExtend8x32.cs index 9aa5b8b771..f461bf6329 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32ZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x32ZeroExtend8x32.cs @@ -16,7 +16,7 @@ public ZeroExtend16x32ZeroExtend8x32() : base(IRInstruction.ZeroExtend16x32, Tra public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64Double.cs index 3f6b93e833..5d71dafe7e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64Double.cs @@ -16,7 +16,7 @@ public ZeroExtend16x64Double() : base(IRInstruction.ZeroExtend16x64, TransformTy public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend32x64.cs index be2fa4064d..659cb85252 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend32x64.cs @@ -16,7 +16,7 @@ public ZeroExtend16x64ZeroExtend32x64() : base(IRInstruction.ZeroExtend16x64, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend8x64.cs index 489a189538..0b6878e56f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend16x64ZeroExtend8x64.cs @@ -16,7 +16,7 @@ public ZeroExtend16x64ZeroExtend8x64() : base(IRInstruction.ZeroExtend16x64, Tra public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64Double.cs index f81b466131..7115c57990 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64Double.cs @@ -16,7 +16,7 @@ public ZeroExtend32x64Double() : base(IRInstruction.ZeroExtend32x64, TransformTy public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend16x64.cs index fb409ef295..e2b4d4c1f5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend16x64.cs @@ -16,7 +16,7 @@ public ZeroExtend32x64ZeroExtend16x64() : base(IRInstruction.ZeroExtend32x64, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend8x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend8x64.cs index b12921e260..87c9fb4f3f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend32x64ZeroExtend8x64.cs @@ -16,7 +16,7 @@ public ZeroExtend32x64ZeroExtend8x64() : base(IRInstruction.ZeroExtend32x64, Tra public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32Double.cs index 03e7ff3849..93cc1413af 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32Double.cs @@ -16,7 +16,7 @@ public ZeroExtend8x32Double() : base(IRInstruction.ZeroExtend8x32, TransformType public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32ZeroExtend16x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32ZeroExtend16x32.cs index cdc3ebb844..9c3cef01b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32ZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x32ZeroExtend16x32.cs @@ -16,7 +16,7 @@ public ZeroExtend8x32ZeroExtend16x32() : base(IRInstruction.ZeroExtend8x32, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64Double.cs index 04b62da906..51916e60fb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64Double.cs @@ -16,7 +16,7 @@ public ZeroExtend8x64Double() : base(IRInstruction.ZeroExtend8x64, TransformType public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend16x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend16x64.cs index f90ccd4654..eb6df00df8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend16x64.cs @@ -16,7 +16,7 @@ public ZeroExtend8x64ZeroExtend16x64() : base(IRInstruction.ZeroExtend8x64, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend32x64.cs index 8060ddb835..0b4b90d242 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Auto/Useless/ZeroExtend8x64ZeroExtend32x64.cs @@ -16,7 +16,7 @@ public ZeroExtend8x64ZeroExtend32x64() : base(IRInstruction.ZeroExtend8x64, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowDivideByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowDivideByZero.cs index 8bd42b2c39..4f27ef1ae6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowDivideByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowDivideByZero.cs @@ -10,12 +10,12 @@ public CheckThrowDivideByZero() : base(IRInstruction.CheckThrowDivideByZero, Tra public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsResolvedConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (context.Operand1.ConstantUnsigned64 == 0) { diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowIndexOutOfRange.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowIndexOutOfRange.cs index 0405ee6b6b..a5b8c06a4f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowIndexOutOfRange.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowIndexOutOfRange.cs @@ -10,12 +10,12 @@ public CheckThrowIndexOutOfRange() : base(IRInstruction.CheckThrowIndexOutOfRang public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsResolvedConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (context.Operand1.ConstantUnsigned64 == 0) { diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowOverflow.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowOverflow.cs index ade616f304..2dda909172 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowOverflow.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Checked/CheckThrowOverflow.cs @@ -10,12 +10,12 @@ public CheckThrowOverflow() : base(IRInstruction.CheckThrowOverflow, TransformTy public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsResolvedConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (context.Operand1.ConstantUnsigned64 == 0) { diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/CodeMotion/BaseCodeMotionTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/CodeMotion/BaseCodeMotionTransform.cs index 8ba9f686d3..c076210238 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/CodeMotion/BaseCodeMotionTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/CodeMotion/BaseCodeMotionTransform.cs @@ -14,7 +14,7 @@ public BaseCodeMotionTransform(BaseInstruction instruction, TransformType type, #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsVirtualRegister) return false; @@ -40,7 +40,7 @@ public override bool Match(Context context, TransformContext transform) return !CheckCodeMotion(transform, context); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.GetManager().MarkMotion(context.Node); @@ -53,7 +53,7 @@ public override void Transform(Context context, TransformContext transform) #region Helpers - public static bool CheckCodeMotion(TransformContext transform, Context context) + public static bool CheckCodeMotion(Transform transform, Context context) { var codeMotion = transform.GetManager(); @@ -63,7 +63,7 @@ public static bool CheckCodeMotion(TransformContext transform, Context context) return codeMotion.CheckMotion(context.Node); } - protected static InstructionNode GetMotionLocation(InstructionNode start, InstructionNode end, int window) + protected static Node GetMotionLocation(Node start, Node end, int window) { var count = 0; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut32.cs index 217e368b96..fbd7c3d8fa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut32.cs @@ -15,7 +15,7 @@ public AddCarryOut32() : base(IRInstruction.AddCarryOut32, TransformType.Manual public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut64.cs index a7fb420aaf..79d8820c7a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddCarryOut64.cs @@ -15,7 +15,7 @@ public AddCarryOut64() : base(IRInstruction.AddCarryOut64, TransformType.Manual public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut32.cs index edb0cf02dc..6ad22d0059 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut32.cs @@ -15,7 +15,7 @@ public AddOverflowOut32() : base(IRInstruction.AddOverflowOut32, TransformType.M public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut64.cs index 82b95426c5..0d642ab522 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/AddOverflowOut64.cs @@ -15,7 +15,7 @@ public AddOverflowOut64() : base(IRInstruction.AddOverflowOut64, TransformType.M public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch32.cs index 06b340169b..68e3998cb4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch32.cs @@ -10,7 +10,7 @@ public Branch32() : base(IRInstruction.Branch32, TransformType.Manual | Transfor public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; var block = context.Block; @@ -33,7 +33,7 @@ public override void Transform(Context context, TransformContext transform) { context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } else { @@ -43,7 +43,7 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch64.cs index a30e4eeb38..ea08ac7b7c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Branch64.cs @@ -10,7 +10,7 @@ public Branch64() : base(IRInstruction.Branch64, TransformType.Manual | Transfor public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; var block = context.Block; @@ -33,7 +33,7 @@ public override void Transform(Context context, TransformContext transform) { context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } else { @@ -43,7 +43,7 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchManagedPointer.cs index 9e53648bfe..10028bbf4a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchManagedPointer.cs @@ -10,7 +10,7 @@ public BranchManagedPointer() : base(IRInstruction.BranchManagedPointer, Transfo public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; @@ -32,7 +32,7 @@ public override void Transform(Context context, TransformContext transform) { context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } else { @@ -42,7 +42,7 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchObject.cs index 03ebc3b8a7..df98edfd26 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/BranchObject.cs @@ -10,7 +10,7 @@ public BranchObject() : base(IRInstruction.BranchObject, TransformType.Manual | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; @@ -32,7 +32,7 @@ public override void Transform(Context context, TransformContext transform) { context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } else { @@ -42,7 +42,7 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x32.cs index 37211ca33a..c1a40161ac 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x32.cs @@ -10,7 +10,7 @@ public Compare32x32() : base(IRInstruction.Compare32x32, TransformType.Manual | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var compare = Compare32(context.ConditionCode, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x64.cs index a186c6a2f3..ddb4ef2ee9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare32x64.cs @@ -10,7 +10,7 @@ public Compare32x64() : base(IRInstruction.Compare32x64, TransformType.Manual | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var compare = Compare32(context.ConditionCode, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x32.cs index 2dd6aef10d..93caaa67e9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x32.cs @@ -10,7 +10,7 @@ public Compare64x32() : base(IRInstruction.Compare64x32, TransformType.Manual | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var compare = Compare32(context.ConditionCode, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x64.cs index c9a4b70126..4f6a55779e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Compare64x64.cs @@ -10,7 +10,7 @@ public Compare64x64() : base(IRInstruction.Compare64x64, TransformType.Manual | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return IsNormal(context.ConditionCode); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var compare = Compare64(context.ConditionCode, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut32.cs index 41295f39b4..354206cd83 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut32.cs @@ -15,7 +15,7 @@ public MulCarryOut32() : base(IRInstruction.MulCarryOut32, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut64.cs index b4ce161628..4ffead5070 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulCarryOut64.cs @@ -15,7 +15,7 @@ public MulCarryOut64() : base(IRInstruction.MulCarryOut64, TransformType.Auto | public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut32.cs index f269bbb9a3..4784a3c5ef 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut32.cs @@ -15,7 +15,7 @@ public MulOverflowOut32() : base(IRInstruction.MulOverflowOut32, TransformType.A public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut64.cs index bdefa0010d..62e6a2358a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/MulOverflowOut64.cs @@ -15,7 +15,7 @@ public MulOverflowOut64() : base(IRInstruction.MulOverflowOut64, TransformType.A public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut32.cs index ffd2b46ae0..7b34fb4fe3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut32.cs @@ -15,7 +15,7 @@ public SubCarryOut32() : base(IRInstruction.SubCarryOut32, TransformType.Manual public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut64.cs index b9890edfbd..999f8837bd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubCarryOut64.cs @@ -15,7 +15,7 @@ public SubCarryOut64() : base(IRInstruction.SubCarryOut64, TransformType.Manual public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut32.cs index 9b356c975f..b2d65877fa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut32.cs @@ -15,7 +15,7 @@ public SubOverflowOut32() : base(IRInstruction.SubOverflowOut32, TransformType.M public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut64.cs index d505a55dfd..30c8a90bcc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/SubOverflowOut64.cs @@ -15,7 +15,7 @@ public SubOverflowOut64() : base(IRInstruction.SubOverflowOut64, TransformType.M public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -26,7 +26,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Switch.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Switch.cs index 262c4a5c15..64a4a51d5b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Switch.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantFolding/Switch.cs @@ -10,7 +10,7 @@ public Switch() : base(IRInstruction.Switch, TransformType.Manual | TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -18,7 +18,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var index = context.Operand1.ConstantSigned32; var max = context.BranchTargets.Count - 1; @@ -44,6 +44,6 @@ public override void Transform(Context context, TransformContext transform) context.SetNop(); } - TransformContext.UpdatePhiBlocks(targets); + Framework.Transform.UpdatePhiBlocks(targets); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut32.cs index d82c4b8476..b1a4e3479c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut32.cs @@ -13,7 +13,7 @@ public AddCarryOut32() : base(IRInstruction.AddCarryOut32, TransformType.Manual public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut64.cs index 161d623f90..7062527a29 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddCarryOut64.cs @@ -13,7 +13,7 @@ public AddCarryOut64() : base(IRInstruction.AddCarryOut64, TransformType.Manual public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut32.cs index 2a17b0a7e3..5b21245d23 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut32.cs @@ -13,7 +13,7 @@ public AddOverflowOut32() : base(IRInstruction.AddOverflowOut32, TransformType.M public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut64.cs index 54e39f2cd2..524757c281 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/AddOverflowOut64.cs @@ -13,7 +13,7 @@ public AddOverflowOut64() : base(IRInstruction.AddOverflowOut64, TransformType.M public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch32.cs index cd4702f67f..355608960c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch32.cs @@ -8,7 +8,7 @@ public Branch32() : base(IRInstruction.Branch32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Branch32, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1, context.BranchTargets[0]); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch64.cs index 6dbdbfa2c2..f8942d8a5c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Branch64.cs @@ -8,7 +8,7 @@ public Branch64() : base(IRInstruction.Branch64, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Branch64, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1, context.BranchTargets[0]); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchManagedPointer.cs index 8fe1f07881..a79870e3b8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchManagedPointer.cs @@ -8,7 +8,7 @@ public BranchManagedPointer() : base(IRInstruction.BranchManagedPointer, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.BranchManagedPointer, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1, context.BranchTargets[0]); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchObject.cs index db05d536f8..f86c914b57 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/BranchObject.cs @@ -8,7 +8,7 @@ public BranchObject() : base(IRInstruction.BranchObject, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.BranchObject, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1, context.BranchTargets[0]); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x32.cs index 8c119ac6ad..59f96005ce 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x32.cs @@ -8,7 +8,7 @@ public Compare32x32() : base(IRInstruction.Compare32x32, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Compare32x32, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x64.cs index ec0515be39..4c0b051430 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare32x64.cs @@ -8,7 +8,7 @@ public Compare32x64() : base(IRInstruction.Compare32x64, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Compare32x64, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x32.cs index 79696a3df9..0a74bd884e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x32.cs @@ -8,7 +8,7 @@ public Compare64x32() : base(IRInstruction.Compare64x32, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Compare64x32, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x64.cs index af7d431c39..1bac9aee8a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/Compare64x64.cs @@ -8,7 +8,7 @@ public Compare64x64() : base(IRInstruction.Compare64x64, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (IsConstant(context.Operand2)) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Compare64x64, context.ConditionCode.GetReverse(), context.Result, context.Operand2, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut32.cs index 434bdff091..d70020817f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut32.cs @@ -11,7 +11,7 @@ public MulCarryOut32() : base(IRInstruction.MulCarryOut32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut64.cs index acde8686b0..5850d51c5d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulCarryOut64.cs @@ -11,7 +11,7 @@ public MulCarryOut64() : base(IRInstruction.MulCarryOut64, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut32.cs index 07a043c498..e3837ab12a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut32.cs @@ -11,7 +11,7 @@ public MulOverflowOut32() : base(IRInstruction.MulOverflowOut32, TransformType.M { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut64.cs index 134e415d96..155571ce28 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/ConstantMove/MulOverflowOut64.cs @@ -11,7 +11,7 @@ public MulOverflowOut64() : base(IRInstruction.MulOverflowOut64, TransformType.M { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand1)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SwapOperands1And2(context); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad32.cs index 9376dfe92d..1cccfb3485 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad32.cs @@ -8,7 +8,7 @@ public DoubleLoad32() : base(IRInstruction.Load32, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Load32, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad64.cs index 5c55444b6f..57799897ab 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoad64.cs @@ -8,7 +8,7 @@ public DoubleLoad64() : base(IRInstruction.Load64, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Load64, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadObject.cs index 71ca9cc207..7cd3223b1e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadObject.cs @@ -8,7 +8,7 @@ public DoubleLoadObject() : base(IRInstruction.LoadObject, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadObject, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam32.cs index 70e3f73d41..da31848a28 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam32.cs @@ -8,7 +8,7 @@ public DoubleLoadParam32() : base(IRInstruction.LoadParam32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParam32, transform.Window, context.Result); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParam32, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam64.cs index 41ba022626..1aa48f1215 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParam64.cs @@ -8,7 +8,7 @@ public DoubleLoadParam64() : base(IRInstruction.LoadParam64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParam64, transform.Window, context.Result); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParam64, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamObject.cs index 079841a8b7..67800100e0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamObject.cs @@ -8,7 +8,7 @@ public DoubleLoadParamObject() : base(IRInstruction.LoadParamObject, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamObject, transform.Window, context.Result); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamObject, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR4.cs index 5e88c4744b..4ab9bb3045 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR4.cs @@ -8,7 +8,7 @@ public DoubleLoadParamR4() : base(IRInstruction.LoadParamR4, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamR4, transform.Window, context.Result); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamR4, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR8.cs index 917f2d8d47..3ca9a5b69e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadParamR8.cs @@ -8,7 +8,7 @@ public DoubleLoadParamR8() : base(IRInstruction.LoadParamR8, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamR8, transform.Window, context.Result); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamR8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR4.cs index 823dceb7c9..2cce9ee6cc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR4.cs @@ -8,7 +8,7 @@ public DoubleLoadR4() : base(IRInstruction.LoadR4, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadR4, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR8.cs index 208c8c9ea9..a7b8473c19 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleLoadR8.cs @@ -8,7 +8,7 @@ public DoubleLoadR8() : base(IRInstruction.LoadR8, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadR8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore32.cs index 64fb9558a6..8d8200cb90 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore32.cs @@ -8,7 +8,7 @@ public DoubleStore32() : base(IRInstruction.Store32, TransformType.Manual | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore64.cs index 697eee78c0..2b67a9b53a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStore64.cs @@ -8,7 +8,7 @@ public DoubleStore64() : base(IRInstruction.Store64, TransformType.Manual | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreObject.cs index 41334366ff..84f63b4b82 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreObject.cs @@ -8,7 +8,7 @@ public DoubleStoreObject() : base(IRInstruction.StoreObject, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam32.cs index b03c489e57..054d6987ae 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam32.cs @@ -8,7 +8,7 @@ public DoubleStoreParam32() : base(IRInstruction.StoreParam32, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var next = GetNextNodeUntil(context, IRInstruction.StoreParam32, transform.Window); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam64.cs index 3b626c80bd..8825c116ab 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParam64.cs @@ -8,7 +8,7 @@ public DoubleStoreParam64() : base(IRInstruction.StoreParam64, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var next = GetNextNodeUntil(context, IRInstruction.StoreParam64, transform.Window); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamObject.cs index 6865c76e37..7329a75313 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamObject.cs @@ -8,7 +8,7 @@ public DoubleStoreParamObject() : base(IRInstruction.StoreParamObject, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var next = GetNextNodeUntil(context, IRInstruction.StoreParamObject, transform.Window); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR4.cs index 84fa5f85bb..73d1b6eeb9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR4.cs @@ -8,7 +8,7 @@ public DoubleStoreParamR4() : base(IRInstruction.StoreParamR4, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var next = GetNextNodeUntil(context, IRInstruction.StoreParamR4, transform.Window); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR8.cs index a63708b392..de1d5d4e8c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreParamR8.cs @@ -8,7 +8,7 @@ public DoubleStoreParamR8() : base(IRInstruction.StoreParamR8, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var next = GetNextNodeUntil(context, IRInstruction.StoreParamR8, transform.Window); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR4.cs index 7e7c35af53..0c0121752c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR4.cs @@ -8,7 +8,7 @@ public DoubleStoreR4() : base(IRInstruction.StoreR4, TransformType.Manual | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR8.cs index 37a795fcfb..bde3df130b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/DoubleStoreR8.cs @@ -8,7 +8,7 @@ public DoubleStoreR8() : base(IRInstruction.StoreR8, TransformType.Manual | Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x32Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x32Store16.cs index b8379f8e22..4be1004479 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x32Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x32Store16.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend16x32Store16() : base(IRInstruction.LoadParamSignExten { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x64Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x64Store16.cs index d4a8989e1c..e6171556b5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x64Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend16x64Store16.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend16x64Store16() : base(IRInstruction.LoadParamSignExten { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend32x64Store32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend32x64Store32.cs index 24a35fd44a..429dc8215a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend32x64Store32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend32x64Store32.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend32x64Store32() : base(IRInstruction.LoadParamSignExten { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam32, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam32, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x32Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x32Store8.cs index e6829c04e3..3e9e2413af 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x32Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x32Store8.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend8x32Store8() : base(IRInstruction.LoadParamSignExtend8 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x64Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x64Store8.cs index fd0574aff5..b4aa89044d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x64Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamSignExtend8x64Store8.cs @@ -8,7 +8,7 @@ public LoadParamSignExtend8x64Store8() : base(IRInstruction.LoadParamSignExtend8 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x32Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x32Store16.cs index ffb7a1ac04..14fe02fba6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x32Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x32Store16.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend16x32Store16() : base(IRInstruction.LoadParamZeroExten { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x64Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x64Store16.cs index 975b71d85a..4f0fca5b72 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x64Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend16x64Store16.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend16x64Store16() : base(IRInstruction.LoadParamZeroExten { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam16, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend32x64Store32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend32x64Store32.cs index cf12dfa85b..3adaee0b60 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend32x64Store32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend32x64Store32.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend32x64Store32() : base(IRInstruction.LoadParamZeroExten { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam32, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam32, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x32Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x32Store8.cs index 0058c91322..86fd8b78a4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x32Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x32Store8.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend8x32Store8() : base(IRInstruction.LoadParamZeroExtend8 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x64Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x64Store8.cs index 3dffd38a5d..5dcea39ad7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x64Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadParamZeroExtend8x64Store8.cs @@ -8,7 +8,7 @@ public LoadParamZeroExtend8x64Store8() : base(IRInstruction.LoadParamZeroExtend8 { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x32Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x32Store16.cs index b83162612f..929ce8cad2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x32Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x32Store16.cs @@ -8,7 +8,7 @@ public LoadSignExtend16x32Store16() : base(IRInstruction.LoadSignExtend16x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store16, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x64Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x64Store16.cs index 21956bb574..d79795d82a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x64Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend16x64Store16.cs @@ -8,7 +8,7 @@ public LoadSignExtend16x64Store16() : base(IRInstruction.LoadSignExtend16x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store16, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend32x64Store32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend32x64Store32.cs index d170b104ea..ba7b513ba5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend32x64Store32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend32x64Store32.cs @@ -8,7 +8,7 @@ public LoadSignExtend32x64Store32() : base(IRInstruction.LoadSignExtend32x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store32, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x32Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x32Store8.cs index 6c24975f9f..aedf4b98b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x32Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x32Store8.cs @@ -8,7 +8,7 @@ public LoadSignExtend8x32Store8() : base(IRInstruction.LoadSignExtend8x32, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store8, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x64Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x64Store8.cs index 69aeb9849c..918b5d555d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x64Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadSignExtend8x64Store8.cs @@ -8,7 +8,7 @@ public LoadSignExtend8x64Store8() : base(IRInstruction.LoadSignExtend8x64, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store8, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore32.cs index bc34fe98e1..a34732b679 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore32.cs @@ -8,7 +8,7 @@ public LoadStore32() : base(IRInstruction.Load32, TransformType.Manual | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store32, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore64.cs index 48a693c4fc..0ea8cf9ad9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStore64.cs @@ -8,7 +8,7 @@ public LoadStore64() : base(IRInstruction.Load64, TransformType.Manual | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store64, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreObject.cs index 950aaea093..ed8341d9d4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreObject.cs @@ -8,7 +8,7 @@ public LoadStoreObject() : base(IRInstruction.LoadObject, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreObject, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam32.cs index f8e51ce9e0..e435f7777d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam32.cs @@ -8,7 +8,7 @@ public LoadStoreParam32() : base(IRInstruction.LoadParam32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam32, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam32, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam64.cs index 3b2010340b..c6b9d7495f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParam64.cs @@ -8,7 +8,7 @@ public LoadStoreParam64() : base(IRInstruction.LoadParam64, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam64, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParam64, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamObject.cs index 6be04b1b37..d2fb0d9a76 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamObject.cs @@ -8,7 +8,7 @@ public LoadStoreParamObject() : base(IRInstruction.LoadParamObject, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParamObject, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParamObject, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR4.cs index edaa2a223e..24f210debc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR4.cs @@ -8,7 +8,7 @@ public LoadStoreParamR4() : base(IRInstruction.LoadParamR4, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParamR4, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParamR4, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR8.cs index c77fbbb567..9c73c80ba5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreParamR8.cs @@ -8,7 +8,7 @@ public LoadStoreParamR8() : base(IRInstruction.LoadParamR8, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParamR8, transform.Window, out var immediate); @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreParamR8, transform.Window); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR4.cs index b625c3ecef..03ad3b2a86 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR4.cs @@ -8,7 +8,7 @@ public LoadStoreR4() : base(IRInstruction.LoadR4, TransformType.Manual | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreR4, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR8.cs index 8ba6e3088f..6618c3c078 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadStoreR8.cs @@ -8,7 +8,7 @@ public LoadStoreR8() : base(IRInstruction.LoadR8, TransformType.Manual | Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.StoreR8, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x32Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x32Store16.cs index 03420fdde2..e29aaf1627 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x32Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x32Store16.cs @@ -8,7 +8,7 @@ public LoadZeroExtend16x32Store16() : base(IRInstruction.LoadZeroExtend16x32, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store16, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x64Store16.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x64Store16.cs index d6e015d001..0932ae7eeb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x64Store16.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend16x64Store16.cs @@ -8,7 +8,7 @@ public LoadZeroExtend16x64Store16() : base(IRInstruction.LoadZeroExtend16x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store16, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend32x64Store32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend32x64Store32.cs index b93621de85..4de5253406 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend32x64Store32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend32x64Store32.cs @@ -8,7 +8,7 @@ public LoadZeroExtend32x64Store32() : base(IRInstruction.LoadZeroExtend32x64, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store32, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x32Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x32Store8.cs index 909455ecc9..12095bd13b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x32Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x32Store8.cs @@ -8,7 +8,7 @@ public LoadZeroExtend8x32Store8() : base(IRInstruction.LoadZeroExtend8x32, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store8, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x64Store8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x64Store8.cs index 3c6c724439..d7725f8897 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x64Store8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/LoadZeroExtend8x64Store8.cs @@ -8,7 +8,7 @@ public LoadZeroExtend8x64Store8() : base(IRInstruction.LoadZeroExtend8x64, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.Store8, transform.Window, context.Operand1); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad32.cs index 214be04638..dd2fd0e118 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad32.cs @@ -8,7 +8,7 @@ public StoreLoad32() : base(IRInstruction.Store32, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad64.cs index 7215c9486e..122e5b05c6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoad64.cs @@ -8,7 +8,7 @@ public StoreLoad64() : base(IRInstruction.Store64, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadObject.cs index 385e00843d..625c415724 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadObject.cs @@ -8,7 +8,7 @@ public StoreLoadObject() : base(IRInstruction.StoreObject, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam32.cs index bbbf67e5ae..4ef97d9c90 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam32.cs @@ -8,7 +8,7 @@ public StoreLoadParam32() : base(IRInstruction.StoreParam32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParam32, transform.Window, context.Operand2); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam64.cs index 4925d984d7..ff7f42c520 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParam64.cs @@ -8,7 +8,7 @@ public StoreLoadParam64() : base(IRInstruction.StoreParam64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParam64, transform.Window, context.Operand2); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamObject.cs index a76ab76d99..d399c024dc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamObject.cs @@ -8,7 +8,7 @@ public StoreLoadParamObject() : base(IRInstruction.StoreParamObject, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamObject, transform.Window, context.Operand2); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR4.cs index f3f2fc4e87..b3ede318f3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR4.cs @@ -8,7 +8,7 @@ public StoreLoadParamR4() : base(IRInstruction.StoreParamR4, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamR4, transform.Window, context.Operand2); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR8.cs index 917136f992..f1aff0d160 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadParamR8.cs @@ -8,7 +8,7 @@ public StoreLoadParamR8() : base(IRInstruction.StoreParamR8, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var previous = GetPreviousNodeUntil(context, IRInstruction.LoadParamR8, transform.Window, context.Operand2); @@ -21,7 +21,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR4.cs index 17763c543c..85790fdfb9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR4.cs @@ -8,7 +8,7 @@ public StoreLoadR4() : base(IRInstruction.StoreR4, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR8.cs index d9818f7f7f..8ffd1b7e5f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Memory/StoreLoadR8.cs @@ -8,7 +8,7 @@ public StoreLoadR8() : base(IRInstruction.StoreR8, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move32Overwrite.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move32Overwrite.cs index f74ef0b133..873d10faba 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move32Overwrite.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move32Overwrite.cs @@ -12,7 +12,7 @@ public Move32Overwrite() : base(IRInstruction.Move32, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Block.IsPrologue) return false; @@ -58,7 +58,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move64Overwrite.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move64Overwrite.cs index 02b7b116eb..67f9f0c981 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move64Overwrite.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Overwrite/Move64Overwrite.cs @@ -12,7 +12,7 @@ public Move64Overwrite() : base(IRInstruction.Move64, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Block.IsPrologue) return false; @@ -58,7 +58,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/BasePhiTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/BasePhiTransform.cs index 332e579c79..c180f6ad29 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/BasePhiTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/BasePhiTransform.cs @@ -54,7 +54,7 @@ public static void UpdatePhiBlock(BasicBlock phiBlock) PhiHelper.UpdatePhiBlock(phiBlock); } - public static void UpdatePhi(InstructionNode node) + public static void UpdatePhi(Node node) { PhiHelper.UpdatePhi(node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Add32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Add32.cs index f85cb9c015..768d820969 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Add32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Add32.cs @@ -8,7 +8,7 @@ public Phi32Add32() : base(IRInstruction.Phi32, TransformType.Manual | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount != 2) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var ctx = context.Result.Uses[0]; var result = ctx.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32BranchHoisting.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32BranchHoisting.cs index 704ac0a4ee..90edbbe09a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32BranchHoisting.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32BranchHoisting.cs @@ -8,7 +8,7 @@ public Phi32BranchHoisting() : base(IRInstruction.Phi32, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.PreviousBlocks.Count != 2 || context.Block.NextBlocks.Count != 2) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var phiValue = context.Operand1.IsResolvedConstant ? context.Operand1 : context.Operand2; var incomingBlock = context.PhiBlocks[context.Operand1.IsResolvedConstant ? 0 : 1]; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Conditional.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Conditional.cs index 984bd463f0..61a6add434 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Conditional.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Conditional.cs @@ -8,7 +8,7 @@ public Phi32Conditional() : base(IRInstruction.Phi32, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount != 2) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var parent = context.PhiBlocks[0].PreviousBlocks[0]; var op1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Dead.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Dead.cs index a8107645dc..abe56affb3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Dead.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Dead.cs @@ -8,7 +8,7 @@ public Phi32Dead() : base(IRInstruction.Phi32, TransformType.Manual | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount == 0) return true; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Update.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Update.cs index f865b385d9..1ce7fbff1e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Update.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi32Update.cs @@ -8,12 +8,12 @@ public Phi32Update() : base(IRInstruction.Phi32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.OperandCount != context.Block.PreviousBlocks.Count; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { UpdatePhi(context.Node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64BranchHoisting.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64BranchHoisting.cs index 6e034ef710..ec34e0076a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64BranchHoisting.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64BranchHoisting.cs @@ -8,7 +8,7 @@ public Phi64BranchHoisting() : base(IRInstruction.Phi64, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.PreviousBlocks.Count != 2 || context.Block.NextBlocks.Count != 2) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var phiValue = context.Operand1.IsResolvedConstant ? context.Operand1 : context.Operand2; var incomingBlock = context.PhiBlocks[context.Operand1.IsResolvedConstant ? 0 : 1]; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Dead.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Dead.cs index 8e036e5605..7aba75ab68 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Dead.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Dead.cs @@ -8,7 +8,7 @@ public Phi64Dead() : base(IRInstruction.Phi64, TransformType.Manual | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount == 0) return true; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Update.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Update.cs index 60d7c2184e..4ab2b703ec 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Update.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/Phi64Update.cs @@ -8,12 +8,12 @@ public Phi64Update() : base(IRInstruction.Phi32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.OperandCount != context.Block.PreviousBlocks.Count; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { UpdatePhi(context.Node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerBranchHoisting.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerBranchHoisting.cs index 4972fc5145..f258782de9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerBranchHoisting.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerBranchHoisting.cs @@ -8,7 +8,7 @@ public PhiManagedPointerBranchHoisting() : base(IRInstruction.PhiManagedPointer, { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.PreviousBlocks.Count != 2 || context.Block.NextBlocks.Count != 2) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var phiValue = context.Operand1.IsResolvedConstant ? context.Operand1 : context.Operand2; var incomingBlock = context.PhiBlocks[context.Operand1.IsResolvedConstant ? 0 : 1]; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerDead.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerDead.cs index a14af30c4f..5ce68e0b8c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerDead.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerDead.cs @@ -8,7 +8,7 @@ public PhiManagedPointerDead() : base(IRInstruction.PhiManagedPointer, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount == 0) return true; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerUpdate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerUpdate.cs index 22fa3cab10..6eda58cc80 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerUpdate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiManagedPointerUpdate.cs @@ -8,12 +8,12 @@ public PhiManagedPointerUpdate() : base(IRInstruction.PhiManagedPointer, Transfo { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.OperandCount != context.Block.PreviousBlocks.Count; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { UpdatePhi(context.Node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectBranchHoisting.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectBranchHoisting.cs index 1932533949..527f9bc41d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectBranchHoisting.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectBranchHoisting.cs @@ -8,7 +8,7 @@ public PhiObjectBranchHoisting() : base(IRInstruction.PhiObject, TransformType.M { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.PreviousBlocks.Count != 2 || context.Block.NextBlocks.Count != 2) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var phiValue = context.Operand1.IsResolvedConstant ? context.Operand1 : context.Operand2; var incomingBlock = context.PhiBlocks[context.Operand1.IsResolvedConstant ? 0 : 1]; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectDead.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectDead.cs index 5423d133b5..94633c39a0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectDead.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectDead.cs @@ -8,7 +8,7 @@ public PhiObjectDead() : base(IRInstruction.PhiObject, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount == 0) return true; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectUpdate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectUpdate.cs index 97483b5c51..82be3df0c2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectUpdate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiObjectUpdate.cs @@ -8,12 +8,12 @@ public PhiObjectUpdate() : base(IRInstruction.PhiObject, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.OperandCount != context.Block.PreviousBlocks.Count; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { UpdatePhi(context.Node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Dead.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Dead.cs index c52c42ddc6..765abd9c5e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Dead.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Dead.cs @@ -8,7 +8,7 @@ public PhiR4Dead() : base(IRInstruction.PhiR4, TransformType.Manual | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount == 0) return true; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Update.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Update.cs index 94740507ef..3f0ea7d9ce 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Update.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR4Update.cs @@ -8,12 +8,12 @@ public PhiR4Update() : base(IRInstruction.Phi32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.OperandCount != context.Block.PreviousBlocks.Count; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { UpdatePhi(context.Node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Dead.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Dead.cs index 0c3046060d..97a9a28b77 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Dead.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Dead.cs @@ -8,7 +8,7 @@ public PhiR8Dead() : base(IRInstruction.PhiR8, TransformType.Manual | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount == 0) return true; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Update.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Update.cs index b44cb8233b..90b946afe4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Update.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/PHI/PhiR8Update.cs @@ -8,12 +8,12 @@ public PhiR8Update() : base(IRInstruction.Phi32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.OperandCount != context.Block.PreviousBlocks.Count; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { UpdatePhi(context.Node); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32Propagate.cs index 06699f69b0..a126629415 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32Propagate.cs @@ -8,7 +8,7 @@ public Move32Propagate() : base(IRInstruction.Move32, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32PropagateConstant.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32PropagateConstant.cs index 283b292ec1..28ee328a0c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32PropagateConstant.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move32PropagateConstant.cs @@ -8,7 +8,7 @@ public Move32PropagateConstant() : base(IRInstruction.Move32, TransformType.Manu { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64Propagate.cs index e5f0908f70..8ad8d1cfaa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64Propagate.cs @@ -8,7 +8,7 @@ public Move64Propagate() : base(IRInstruction.Move64, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64PropagateConstant.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64PropagateConstant.cs index 68222caa0d..c5725b3c41 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64PropagateConstant.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Move64PropagateConstant.cs @@ -8,7 +8,7 @@ public Move64PropagateConstant() : base(IRInstruction.Move64, TransformType.Manu { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveCompoundPropagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveCompoundPropagate.cs index 6ad5ecd472..0fd28afbe0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveCompoundPropagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveCompoundPropagate.cs @@ -8,7 +8,7 @@ public MoveCompoundPropagate() : base(IRInstruction.MoveCompound, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagate.cs index 7010c733c0..34e1953cb7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagate.cs @@ -8,7 +8,7 @@ public MoveManagedPointerPropagate() : base(IRInstruction.MoveManagedPointer, Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagateConstant.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagateConstant.cs index 1791b9bc42..5b49f45ad9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagateConstant.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveManagedPointerPropagateConstant.cs @@ -8,7 +8,7 @@ public MoveManagedPointerPropagateConstant() : base(IRInstruction.MoveManagedPoi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagate.cs index 104a3c835d..c08828da37 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagate.cs @@ -8,7 +8,7 @@ public MoveObjectPropagate() : base(IRInstruction.MoveObject, TransformType.Manu { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagateConstant.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagateConstant.cs index 25b1a78bec..255e714a4b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagateConstant.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveObjectPropagateConstant.cs @@ -8,7 +8,7 @@ public MoveObjectPropagateConstant() : base(IRInstruction.MoveObject, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR4Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR4Propagate.cs index de603549b6..6dc69a29be 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR4Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR4Propagate.cs @@ -8,7 +8,7 @@ public MoveR4Propagate() : base(IRInstruction.MoveR4, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR8Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR8Propagate.cs index aaa86a9816..5c6c05561c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR8Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/MoveR8Propagate.cs @@ -8,7 +8,7 @@ public MoveR8Propagate() : base(IRInstruction.MoveR8, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsDefinedOnce) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi32Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi32Propagate.cs index e0587c0433..e8ae00f362 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi32Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi32Propagate.cs @@ -8,7 +8,7 @@ public Phi32Propagate() : base(IRInstruction.Phi32, TransformType.Manual | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount == 1) return true; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi64Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi64Propagate.cs index 03a1c9a85b..41933f7d8a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi64Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/Phi64Propagate.cs @@ -8,7 +8,7 @@ public Phi64Propagate() : base(IRInstruction.Phi64, TransformType.Manual | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount == 1) return true; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiManagedPointerPropagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiManagedPointerPropagate.cs index e7190a0716..547ed2fd91 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiManagedPointerPropagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiManagedPointerPropagate.cs @@ -8,7 +8,7 @@ public PhiManagedPointerPropagate() : base(IRInstruction.PhiManagedPointer, Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount == 1) return true; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiObjectPropagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiObjectPropagate.cs index e07e5e39a4..e4bc671a8b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiObjectPropagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiObjectPropagate.cs @@ -8,7 +8,7 @@ public PhiObjectPropagate() : base(IRInstruction.PhiObject, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount == 1) return true; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR4Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR4Propagate.cs index 6d256c1043..b40b62e3fa 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR4Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR4Propagate.cs @@ -8,7 +8,7 @@ public PhiR4Propagate() : base(IRInstruction.PhiR4, TransformType.Manual | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount == 1) return true; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR8Propagate.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR8Propagate.cs index a35dc11382..3f091b2d47 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR8Propagate.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Propagate/PhiR8Propagate.cs @@ -8,7 +8,7 @@ public PhiR8Propagate() : base(IRInstruction.PhiR8, TransformType.Manual | Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.OperandCount == 1) return true; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32.cs index 9ae1fd601e..b4d8d28a77 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32.cs @@ -8,7 +8,7 @@ public Branch32() : base(IRInstruction.Branch32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x32.cs index 55ff11ba95..b12b62f875 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x32.cs @@ -8,7 +8,7 @@ public Branch32Combine32x32() : base(IRInstruction.Branch32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x64.cs index 1fc29f421a..a455db6fb5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine32x64.cs @@ -8,7 +8,7 @@ public Branch32Combine32x64() : base(IRInstruction.Branch32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x32.cs index 59058a3515..a8b2d2dc82 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x32.cs @@ -8,7 +8,7 @@ public Branch32Combine64x32() : base(IRInstruction.Branch32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x64.cs index 1f580eda30..7dcd706c53 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Combine64x64.cs @@ -8,7 +8,7 @@ public Branch32Combine64x64() : base(IRInstruction.Branch32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32From64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32From64.cs index 71d54f320e..dfae996aad 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32From64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32From64.cs @@ -8,7 +8,7 @@ public Branch32From64() : base(IRInstruction.Branch32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterOrEqualThanZero.cs index 9768763f84..e525c0a017 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterOrEqualThanZero.cs @@ -8,7 +8,7 @@ public Branch32GreaterOrEqualThanZero() : base(IRInstruction.Branch32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; @@ -32,6 +32,6 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterThanZero.cs index a1b094aa9c..e4a6b7def6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32GreaterThanZero.cs @@ -8,7 +8,7 @@ public Branch32GreaterThanZero() : base(IRInstruction.Branch32, TransformType.Ma { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -22,12 +22,12 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessOrEqualThanZero.cs index 370080d5b4..9dbcacee14 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessOrEqualThanZero.cs @@ -8,7 +8,7 @@ public Branch32LessOrEqualThanZero() : base(IRInstruction.Branch32, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; @@ -32,6 +32,6 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessThanZero.cs index cf75aa71ac..fbd936683f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32LessThanZero.cs @@ -8,7 +8,7 @@ public Branch32LessThanZero() : base(IRInstruction.Branch32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -22,12 +22,12 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32ManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32ManagedPointer.cs index 899c2d5dfa..b0a03c81bd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32ManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32ManagedPointer.cs @@ -8,7 +8,7 @@ public Branch32ManagedPointer() : base(IRInstruction.Branch32, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Object.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Object.cs index f0d6160ee6..e9bb5a3f6f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Object.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch32Object.cs @@ -8,7 +8,7 @@ public Branch32Object() : base(IRInstruction.Branch32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64.cs index ce48adda0a..9e22df49f3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64.cs @@ -8,7 +8,7 @@ public Branch64() : base(IRInstruction.Branch64, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x32.cs index ce256f787a..eeb2f9bc45 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x32.cs @@ -8,7 +8,7 @@ public Branch64Combine32x32() : base(IRInstruction.Branch64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x64.cs index a92742842d..21ac6ac8bc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine32x64.cs @@ -8,7 +8,7 @@ public Branch64Combine32x64() : base(IRInstruction.Branch64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x32.cs index 642d093519..a0799dd27e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x32.cs @@ -8,7 +8,7 @@ public Branch64Combine64x32() : base(IRInstruction.Branch64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x64.cs index 4acd8c747f..d565d9dbeb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Combine64x64.cs @@ -8,7 +8,7 @@ public Branch64Combine64x64() : base(IRInstruction.Branch64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64From32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64From32.cs index 179e10587a..10486ce058 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64From32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64From32.cs @@ -8,7 +8,7 @@ public Branch64From32() : base(IRInstruction.Branch32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterOrEqualThanZero.cs index b2482d2496..f25dda8738 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterOrEqualThanZero.cs @@ -8,7 +8,7 @@ public Branch64GreaterOrEqualThanZero() : base(IRInstruction.Branch64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreaterOrEqual) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; @@ -29,6 +29,6 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterThanZero.cs index 53c5c39773..85ace9e7ee 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64GreaterThanZero.cs @@ -8,7 +8,7 @@ public Branch64GreaterThanZero() : base(IRInstruction.Branch64, TransformType.Ma { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedGreater) return false; @@ -19,12 +19,12 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessOrEqualThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessOrEqualThanZero.cs index 8d6aa366e0..ca90058074 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessOrEqualThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessOrEqualThanZero.cs @@ -8,7 +8,7 @@ public Branch64LessOrEqualThanZero() : base(IRInstruction.Branch64, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLessOrEqual) return false; @@ -19,7 +19,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; @@ -29,6 +29,6 @@ public override void Transform(Context context, TransformContext transform) RemoveRemainingInstructionInBlock(context); - TransformContext.UpdatePhiBlock(phiBlock); + Framework.Transform.UpdatePhiBlock(phiBlock); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessThanZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessThanZero.cs index 7baff51a46..8c20d3b0c9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessThanZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64LessThanZero.cs @@ -8,7 +8,7 @@ public Branch64LessThanZero() : base(IRInstruction.Branch64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.UnsignedLess) return false; @@ -19,12 +19,12 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64ManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64ManagedPointer.cs index f964f932f7..4b71867076 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64ManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64ManagedPointer.cs @@ -8,7 +8,7 @@ public Branch64ManagedPointer() : base(IRInstruction.Branch64, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Object.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Object.cs index ca6799efae..c4fa53cf4b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Object.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Branch64Object.cs @@ -8,7 +8,7 @@ public Branch64Object() : base(IRInstruction.Branch64, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/BranchObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/BranchObject.cs index 6c68df637c..0eea2b8af0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/BranchObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/BranchObject.cs @@ -8,7 +8,7 @@ public BranchObject() : base(IRInstruction.BranchObject, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x32.cs index 29e36193cc..cde932bd0d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x32.cs @@ -8,7 +8,7 @@ public Compare32x32Combine32x32() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x64.cs index 6e1676c455..dca56c82a8 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine32x64.cs @@ -8,7 +8,7 @@ public Compare32x32Combine32x64() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine64x32.cs index a631364308..60ef560180 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare32x32Combine64x32.cs @@ -8,7 +8,7 @@ public Compare32x32Combine64x32() : base(IRInstruction.Compare32x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignExtended.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignExtended.cs index bd9d87e7e0..4fa649311d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignExtended.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignExtended.cs @@ -11,7 +11,7 @@ public Compare64x32SignExtended() : base(IRInstruction.Compare64x32, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignZeroExtend.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignZeroExtend.cs index c0ce485bec..15b49665e9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignZeroExtend.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32SignZeroExtend.cs @@ -11,7 +11,7 @@ public Compare64x32SignZeroExtend() : base(IRInstruction.Compare64x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroExtend.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroExtend.cs index 263e1889e5..c1fd57c368 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroExtend.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroExtend.cs @@ -11,7 +11,7 @@ public Compare64x32ZeroExtend() : base(IRInstruction.Compare64x32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroSignExtend.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroSignExtend.cs index 4c26426ea2..21423dde4d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroSignExtend.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x32ZeroSignExtend.cs @@ -11,7 +11,7 @@ public Compare64x32ZeroSignExtend() : base(IRInstruction.Compare64x32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -34,7 +34,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine32x32.cs index 71b6666ec0..86e9fc212d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine32x32.cs @@ -8,7 +8,7 @@ public Compare64x64Combine32x32() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x32.cs index 5e43908dc9..94e90b8ebd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x32.cs @@ -8,7 +8,7 @@ public Compare64x64Combine64x32() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x64.cs index 1af8cd520d..927d9318fd 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Rewrite/Compare64x64Combine64x64.cs @@ -8,7 +8,7 @@ public Compare64x64Combine64x64() : base(IRInstruction.Compare64x64, TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ConditionCode != ConditionCode.Equal && context.ConditionCode != ConditionCode.NotEqual) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var node2 = context.Operand1.Definitions[0]; var conditionCode = context.ConditionCode == ConditionCode.NotEqual ? node2.ConditionCode : node2.ConditionCode.GetOpposite(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut32CarryNotUsed.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut32CarryNotUsed.cs index 0e72a168a4..0afe485e18 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut32CarryNotUsed.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut32CarryNotUsed.cs @@ -8,12 +8,12 @@ public AddCarryOut32CarryNotUsed() : base(IRInstruction.AddCarryOut32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !context.Result2.IsUsed; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Add32, context.Result, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut64CarryNotUsed.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut64CarryNotUsed.cs index 1463df06b6..2fd851548a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut64CarryNotUsed.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/AddCarryOut64CarryNotUsed.cs @@ -8,12 +8,12 @@ public AddCarryOut64CarryNotUsed() : base(IRInstruction.AddCarryOut64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !context.Result2.IsUsed; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Add64, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch32OnlyOneExit.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch32OnlyOneExit.cs index e1cacc5d90..67699e8ae3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch32OnlyOneExit.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch32OnlyOneExit.cs @@ -8,7 +8,7 @@ public Branch32OnlyOneExit() : base(IRInstruction.Branch32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.NextBlocks.Count != 1) return false; @@ -16,12 +16,12 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch64OnlyOneExit.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch64OnlyOneExit.cs index 281fb59244..f5104460fe 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch64OnlyOneExit.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Branch64OnlyOneExit.cs @@ -8,7 +8,7 @@ public Branch64OnlyOneExit() : base(IRInstruction.Branch64, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.NextBlocks.Count != 1) return false; @@ -16,12 +16,12 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var target = context.BranchTargets[0]; context.SetNop(); - TransformContext.UpdatePhiBlock(target); + Framework.Transform.UpdatePhiBlock(target); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchManagedPointerOnlyOneExit.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchManagedPointerOnlyOneExit.cs index 9d918fa270..931c2cda13 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchManagedPointerOnlyOneExit.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchManagedPointerOnlyOneExit.cs @@ -8,7 +8,7 @@ public BranchManagedPointerOnlyOneExit() : base(IRInstruction.BranchManagedPoint { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.NextBlocks.Count != 1) return false; @@ -16,7 +16,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchObjectOnlyOneExit.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchObjectOnlyOneExit.cs index 1c0b75702f..5b7b40603d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchObjectOnlyOneExit.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/BranchObjectOnlyOneExit.cs @@ -8,7 +8,7 @@ public BranchObjectOnlyOneExit() : base(IRInstruction.BranchObject, TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Block.NextBlocks.Count != 1) return false; @@ -16,7 +16,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameHigh.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameHigh.cs index d04e31069b..8413fefa52 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameHigh.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameHigh.cs @@ -10,7 +10,7 @@ public Compare64x32SameHigh() : base(IRInstruction.Compare64x32, TransformType.M { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1.Definitions[0].Operand1; var operand2 = context.Operand2.Definitions[0].Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameLow.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameLow.cs index ef6007eb5c..c87f288504 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameLow.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/Compare64x32SameLow.cs @@ -10,7 +10,7 @@ public Compare64x32SameLow() : base(IRInstruction.Compare64x32, TransformType.Ma { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1.Definitions[0].Operand2; var operand2 = context.Operand2.Definitions[0].Operand2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber32.cs index 22c6d0cf32..271883ef1a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber32.cs @@ -16,7 +16,7 @@ public DivUnsignedMagicNumber32() : base(IRInstruction.DivUnsigned32, TransformT public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber64.cs index 397995a48b..abd1e41fbb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/DivUnsignedMagicNumber64.cs @@ -16,7 +16,7 @@ public DivUnsignedMagicNumber64() : base(IRInstruction.DivUnsigned64, TransformT public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (transform.Is32BitPlatform) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse32Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse32Same.cs index e9b8e1aff6..5fb7dce801 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse32Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse32Same.cs @@ -8,12 +8,12 @@ public IfThenElse32Same() : base(IRInstruction.IfThenElse32, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return AreSame(context.Operand2, context.Operand3); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse64Same.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse64Same.cs index f7aa58b100..924c9daced 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse64Same.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/IfThenElse64Same.cs @@ -8,12 +8,12 @@ public IfThenElse64Same() : base(IRInstruction.IfThenElse64, TransformType.Manua { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return AreSame(context.Operand2, context.Operand3); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move64, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut32CarryNotUsed.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut32CarryNotUsed.cs index 11b34a3cb6..8410f9688d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut32CarryNotUsed.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut32CarryNotUsed.cs @@ -8,12 +8,12 @@ public SubCarryOut32CarryNotUsed() : base(IRInstruction.SubCarryOut32, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !context.Result2.IsUsed; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Sub32, context.Result, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut64CarryNotUsed.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut64CarryNotUsed.cs index 49e3c81cd5..d7cb09e6b3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut64CarryNotUsed.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Simplification/SubCarryOut64CarryNotUsed.cs @@ -8,12 +8,12 @@ public SubCarryOut64CarryNotUsed() : base(IRInstruction.SubCarryOut64, Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !context.Result2.IsUsed; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Sub64, context.Result, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/CombineAddressOfStore32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/CombineAddressOfStore32.cs index feaf07e3f2..5b181a60c7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/CombineAddressOfStore32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/CombineAddressOfStore32.cs @@ -8,7 +8,7 @@ public CombineAddressOfStore32() : base(IRInstruction.Store32, TransformType.Man { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -59,7 +59,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var addressof = context.Operand1.Definitions[0]; var store2 = context.Node.PreviousNonEmpty; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Deadcode.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Deadcode.cs index 159dc5a419..c175502988 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Deadcode.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Deadcode.cs @@ -8,7 +8,7 @@ public Deadcode() : base(TransformType.Manual | TransformType.Optimization) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount is 0 or > 2) return false; @@ -47,7 +47,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32CPURegister.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32CPURegister.cs index 6afd5adb5b..f1863b1bd3 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32CPURegister.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32CPURegister.cs @@ -11,7 +11,7 @@ public GetLow32CPURegister() : base(IRInstruction.GetLow32, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.Is32BitPlatform) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32From64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32From64.cs index 4d2f00985f..eb80c11c13 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32From64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/GetLow32From64.cs @@ -11,7 +11,7 @@ public GetLow32From64() : base(IRInstruction.GetLow32, TransformType.Manual | Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.Is32BitPlatform) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return false; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load32AddressOf.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load32AddressOf.cs index 2b37a074ef..2c18116577 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load32AddressOf.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load32AddressOf.cs @@ -8,7 +8,7 @@ public Load32AddressOf() : base(IRInstruction.Load32, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsConstantZero) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Load32, context.Result, transform.StackFrame, context.Operand1.Definitions[0].Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load64AddressOf.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load64AddressOf.cs index 57f0c989b5..e7a51c498a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load64AddressOf.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Load64AddressOf.cs @@ -8,7 +8,7 @@ public Load64AddressOf() : base(IRInstruction.Load64, TransformType.Manual | Tra { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsConstantZero) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Load64, context.Result, transform.StackFrame, context.Operand1.Definitions[0].Operand1); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store32AddressOf.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store32AddressOf.cs index 381b4bcbf8..6bc9d42954 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store32AddressOf.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store32AddressOf.cs @@ -8,7 +8,7 @@ public Store32AddressOf() : base(IRInstruction.Store32, TransformType.Manual | T { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsConstantZero) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Store32, null, transform.StackFrame, context.Operand1.Definitions[0].Operand1, context.Operand3); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store64AddressOf.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store64AddressOf.cs index 02b15a9d69..de99d1c315 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store64AddressOf.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/Store64AddressOf.cs @@ -8,7 +8,7 @@ public Store64AddressOf() : base(IRInstruction.Store64, TransformType.Manual | T { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsConstantZero) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Store64, null, transform.StackFrame, context.Operand1.Definitions[0].Operand1, context.Operand3); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad32.cs index 795ddebf9f..353c63be7f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad32.cs @@ -8,7 +8,7 @@ public StoreLoad32() : base(IRInstruction.Store32, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsLocalStack) return false; @@ -41,7 +41,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var load = context.Operand2.Uses[0] != context.Node ? context.Operand2.Uses[0] diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad64.cs index 1445864787..6b318d459c 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoad64.cs @@ -8,7 +8,7 @@ public StoreLoad64() : base(IRInstruction.Store64, TransformType.Manual | Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsLocalStack) return false; @@ -44,7 +44,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var load = context.Operand2.Uses[0] != context.Node ? context.Operand2.Uses[0] diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadManagedPointer.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadManagedPointer.cs index 13cfc361ba..0684d3892d 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadManagedPointer.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadManagedPointer.cs @@ -8,7 +8,7 @@ public StoreLoadManagedPointer() : base(IRInstruction.StoreManagedPointer, Trans { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsLocalStack) return false; @@ -41,7 +41,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var load = context.Operand2.Uses[0] != context.Node ? context.Operand2.Uses[0] diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadObject.cs index bbc55ce8da..2e26176d35 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Special/StoreLoadObject.cs @@ -8,7 +8,7 @@ public StoreLoadObject() : base(IRInstruction.StoreObject, TransformType.Manual { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsLocalStack) return false; @@ -41,7 +41,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var load = context.Operand2.Uses[0] != context.Node ? context.Operand2.Uses[0] diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load32.cs index 168fc6c1a7..c9036a2366 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load32.cs @@ -15,7 +15,7 @@ public Load32() : base(IRInstruction.Load32, TransformType.Manual | TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var operand1 = context.Operand1; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return operand1.Field.DeclaringType.IsValueType && operand1.Field.DeclaringType.Name is "System.IntPtr" or "System.UIntPtr" && operand1.Field.Name == "Zero"; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move32, context.Result, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load64.cs index d4169c7549..2b593a1abb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StaticLoad/Load64.cs @@ -15,7 +15,7 @@ public Load64() : base(IRInstruction.Load64, TransformType.Manual | TransformTyp public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { var operand1 = context.Operand1; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return operand1.Field.DeclaringType.IsValueType && operand1.Field.DeclaringType.Name is "System.IntPtr" or "System.UIntPtr" && operand1.Field.Name == "Zero"; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move64, context.Result, Operand.Constant64_0); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut32ByZero.cs index 4401eee4f8..b96f7d93ec 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut32ByZero.cs @@ -13,7 +13,7 @@ public AddCarryOut32ByZero() : base(IRInstruction.AddCarryOut32, TransformType.M public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; @@ -46,7 +46,7 @@ public AddCarryOut32ByZero2() : base(IRInstruction.AddCarryOut32, TransformType. public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut64ByZero.cs index 6f2fd51286..7be7593316 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddCarryOut64ByZero.cs @@ -13,7 +13,7 @@ public AddCarryOut64ByZero() : base(IRInstruction.AddCarryOut64, TransformType.M public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; @@ -46,7 +46,7 @@ public AddCarryOut64ByZero2() : base(IRInstruction.AddCarryOut64, TransformType. public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut32ByZero.cs index 3ff3290a5e..e6bf6f1ff7 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut32ByZero.cs @@ -13,7 +13,7 @@ public AddOverflowOut32ByZero() : base(IRInstruction.AddOverflowOut32, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; @@ -46,7 +46,7 @@ public AddOverflowOut32ByZero2() : base(IRInstruction.AddOverflowOut32, Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut64ByZero.cs index e0320779af..369b211c8e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/AddOverflowOut64ByZero.cs @@ -13,7 +13,7 @@ public AddOverflowOut64ByZero() : base(IRInstruction.AddOverflowOut64, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; @@ -46,7 +46,7 @@ public AddOverflowOut64ByZero2() : base(IRInstruction.AddOverflowOut64, Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSigned32ByPowerOfTwo.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSigned32ByPowerOfTwo.cs index 121bbc67bb..37fccbbf3b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSigned32ByPowerOfTwo.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSigned32ByPowerOfTwo.cs @@ -12,7 +12,7 @@ public DivSigned32ByPowerOfTwo() : base(IRInstruction.DivSigned32, TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSignedMagicNumber32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSignedMagicNumber32.cs index fca1222286..9f06a0875e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSignedMagicNumber32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivSignedMagicNumber32.cs @@ -16,7 +16,7 @@ public DivSignedMagicNumber32() : base(IRInstruction.DivSigned32, TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivUnsignedMagicNumber32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivUnsignedMagicNumber32.cs index c2391527ba..ed444df839 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivUnsignedMagicNumber32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/DivUnsignedMagicNumber32.cs @@ -14,7 +14,7 @@ public DivUnsignedMagicNumber32() : base(IRInstruction.DivUnsigned32, TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsResolvedConstant(context.Operand2)) return false; @@ -31,7 +31,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByOne.cs index e895119ab2..ab08108702 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByOne.cs @@ -13,7 +13,7 @@ public MulCarryOut32ByOne() : base(IRInstruction.MulCarryOut32, TransformType.Ma public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByZero.cs index dc511c4db0..e721d08fbc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut32ByZero.cs @@ -13,7 +13,7 @@ public MulCarryOut32ByZero() : base(IRInstruction.MulCarryOut32, TransformType.M public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByOne.cs index 48c38cac56..c9793b2fff 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByOne.cs @@ -13,7 +13,7 @@ public MulCarryOut64ByOne() : base(IRInstruction.MulCarryOut64, TransformType.Ma public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByZero.cs index d8bbee1b63..5b6482b566 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulCarryOut64ByZero.cs @@ -13,7 +13,7 @@ public MulCarryOut64ByZero() : base(IRInstruction.MulCarryOut64, TransformType.M public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByOne.cs index 01435588fc..e91bbd9427 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByOne.cs @@ -13,7 +13,7 @@ public MulOverflowOut32ByOne() : base(IRInstruction.MulOverflowOut32, TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByZero.cs index eef46eaca4..7957b2df76 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut32ByZero.cs @@ -13,7 +13,7 @@ public MulOverflowOut32ByZero() : base(IRInstruction.MulOverflowOut32, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByOne.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByOne.cs index a2edb837b9..18f7989e76 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByOne.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByOne.cs @@ -13,7 +13,7 @@ public MulOverflowOut64ByOne() : base(IRInstruction.MulOverflowOut64, TransformT public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByZero.cs index 27040e2e43..27c15863f1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/MulOverflowOut64ByZero.cs @@ -13,7 +13,7 @@ public MulOverflowOut64ByZero() : base(IRInstruction.MulOverflowOut64, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut32ByZero.cs index c1d7b7b0f4..2823acd035 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut32ByZero.cs @@ -13,7 +13,7 @@ public SubCarryOut32ByZero() : base(IRInstruction.SubCarryOut32, TransformType.M public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut64ByZero.cs index f7181f9ed2..5e3195d68e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubCarryOut64ByZero.cs @@ -13,7 +13,7 @@ public SubCarryOut64ByZero() : base(IRInstruction.SubCarryOut64, TransformType.M public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut32ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut32ByZero.cs index 8f2c34744e..99748f57ae 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut32ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut32ByZero.cs @@ -13,7 +13,7 @@ public SubOverflowOut32ByZero() : base(IRInstruction.SubOverflowOut32, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; @@ -46,7 +46,7 @@ public SubOverflowOut32ByZero2() : base(IRInstruction.SubOverflowOut32, Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut64ByZero.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut64ByZero.cs index 5317a32c75..0934ebad55 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut64ByZero.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/StrengthReduction/SubOverflowOut64ByZero.cs @@ -13,7 +13,7 @@ public SubOverflowOut64ByZero() : base(IRInstruction.SubOverflowOut64, Transform public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; @@ -46,7 +46,7 @@ public SubOverflowOut64ByZero2() : base(IRInstruction.SubOverflowOut64, Transfor public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -57,7 +57,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x32Double.cs index 986fb54655..a7e8288dff 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x32Double.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x32Double() : base(IRInstruction.SignExtend16x32, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x64Double.cs index c664c97179..62e8b20812 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend16x64Double.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x64Double() : base(IRInstruction.SignExtend16x64, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend32x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend32x64Double.cs index aed95c8034..66b4e94fd1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend32x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend32x64Double.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend32x64Double() : base(IRInstruction.SignExtend32x64, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x32Double.cs index 43e5d60743..5807982d2b 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x32Double.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x32Double() : base(IRInstruction.SignExtend8x32, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x64Double.cs index 2182397f9c..f84552b272 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamSignExtend8x64Double.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x64Double() : base(IRInstruction.SignExtend8x64, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x32Double.cs index dd02b09adc..756aee01a0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x32Double.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x32Double() : base(IRInstruction.ZeroExtend16x32, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x64Double.cs index 16893fdb4e..98f88e8deb 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend16x64Double.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x64Double() : base(IRInstruction.ZeroExtend16x64, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend32x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend32x64Double.cs index cde56019e2..688e9203e2 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend32x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend32x64Double.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend32x64Double() : base(IRInstruction.ZeroExtend32x64, Tr public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x32Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x32Double.cs index b26555f6cf..2240a80b10 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x32Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x32Double.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x32Double() : base(IRInstruction.ZeroExtend8x32, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x64Double.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x64Double.cs index bf0f6c924a..556e5d6302 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x64Double.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/LoadParamZeroExtend8x64Double.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x64Double() : base(IRInstruction.ZeroExtend8x64, Tran public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x32Compare32x32.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x32Compare32x32.cs index 7d8f5ee5df..7386119a3f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x32Compare32x32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x32Compare32x32.cs @@ -14,7 +14,7 @@ public ZeroExtend8x32Compare32x32() : base(IRInstruction.ZeroExtend8x32, Transfo public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare32x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare32x64.cs index 9faa034c00..ced0b580a4 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare32x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare32x64.cs @@ -14,7 +14,7 @@ public ZeroExtend8x64Compare32x64() : base(IRInstruction.ZeroExtend8x64, Transfo public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare64x64.cs b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare64x64.cs index 9dcb51d736..8eea25521e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare64x64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Optimizations/Manual/Useless/ZeroExtend8x64Compare64x64.cs @@ -14,7 +14,7 @@ public ZeroExtend8x64Compare64x64() : base(IRInstruction.ZeroExtend8x64, Transfo public override int Priority => 85; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.Framework/Transforms/PlatformIntrinsic/IntrinsicMethodCall.cs b/Source/Mosa.Compiler.Framework/Transforms/PlatformIntrinsic/IntrinsicMethodCall.cs index 252232658c..42d4500071 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/PlatformIntrinsic/IntrinsicMethodCall.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/PlatformIntrinsic/IntrinsicMethodCall.cs @@ -13,20 +13,20 @@ public IntrinsicMethodCall() : base(IRInstruction.IntrinsicMethodCall, Transform public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.Architecture.GetInstrinsicMethod(context.Operand1.Method.ExternMethodModule) != null; } - public override void Transform(Context context, TransformContext transformContext) + public override void Transform(Context context, Transform transform) { - var intrinsic = transformContext.Architecture.GetInstrinsicMethod(context.Operand1.Method.ExternMethodModule); + var intrinsic = transform.Architecture.GetInstrinsicMethod(context.Operand1.Method.ExternMethodModule); var operands = context.GetOperands(); operands.RemoveAt(0); context.SetInstruction(IRInstruction.IntrinsicMethodCall, context.Result, operands); - intrinsic(context, transformContext); + intrinsic(context, transform); } } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Plug/BasePlugTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Plug/BasePlugTransform.cs index cc2c37ff3f..cb10f94b62 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Plug/BasePlugTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Plug/BasePlugTransform.cs @@ -10,7 +10,7 @@ public BasePlugTransform(BaseInstruction instruction, TransformType type, bool l #region Helpers - public static bool IsPlugged(Context context, TransformContext transform) + public static bool IsPlugged(Context context, Transform transform) { if (context.Operand1.Method == null) return false; @@ -18,7 +18,7 @@ public static bool IsPlugged(Context context, TransformContext transform) return transform.Compiler.PlugSystem.GetReplacement(context.Operand1.Method) != null; } - public static void Plug(Context context, TransformContext transform) + public static void Plug(Context context, Transform transform) { var newTarget = transform.Compiler.PlugSystem.GetReplacement(context.Operand1.Method); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Plug/CallDirect.cs b/Source/Mosa.Compiler.Framework/Transforms/Plug/CallDirect.cs index 0807de32a5..180f9bd6d5 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Plug/CallDirect.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Plug/CallDirect.cs @@ -13,12 +13,12 @@ public CallDirect() : base(IRInstruction.CallDirect, TransformType.Manual | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return IsPlugged(context, transform); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Plug(context, transform); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Plug/CallStatic.cs b/Source/Mosa.Compiler.Framework/Transforms/Plug/CallStatic.cs index 3162f35c6a..4f7ef7213f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Plug/CallStatic.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Plug/CallStatic.cs @@ -13,12 +13,12 @@ public CallStatic() : base(IRInstruction.CallStatic, TransformType.Manual | Tran public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return IsPlugged(context, transform); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Plug(context, transform); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Plug/CallVirtual.cs b/Source/Mosa.Compiler.Framework/Transforms/Plug/CallVirtual.cs index c21b431935..d576241645 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Plug/CallVirtual.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Plug/CallVirtual.cs @@ -13,12 +13,12 @@ public CallVirtual() : base(IRInstruction.CallVirtual, TransformType.Manual | Tr public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return IsPlugged(context, transform); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Plug(context, transform); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/BaseRuntimeTransform.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/BaseRuntimeTransform.cs index 0265289dbc..1b999434c6 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/BaseRuntimeTransform.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/BaseRuntimeTransform.cs @@ -14,7 +14,7 @@ public BaseRuntimeTransform(BaseInstruction instruction, TransformType type, boo #region Helpers - public static MosaMethod GetVMCallMethod(TransformContext transform, string vmcall) + public static MosaMethod GetVMCallMethod(Transform transform, string vmcall) { var method = transform.Compiler.InternalRuntimeType.FindMethodByName(vmcall) ?? transform.Compiler.PlatformInternalRuntimeType.FindMethodByName(vmcall); @@ -26,7 +26,7 @@ public static MosaMethod GetVMCallMethod(TransformContext transform, string vmca return method; } - public static void SetVMCall(TransformContext transform, Context context, string vmcall, Operand result, List operands) + public static void SetVMCall(Transform transform, Context context, string vmcall, Operand result, List operands) { var method = GetVMCallMethod(transform, vmcall); var symbol = Operand.CreateLabel(method, transform.Is32BitPlatform); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box.cs index 8f8ad8cc2d..9fd527ccde 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box.cs @@ -13,12 +13,12 @@ public Box() : base(IRInstruction.Box, TransformType.Manual | TransformType.Tran public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "Box", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box32.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box32.cs index 8bbfa37798..8aee6ddad9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box32.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box32.cs @@ -13,12 +13,12 @@ public Box32() : base(IRInstruction.Box32, TransformType.Manual | TransformType. public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "Box32", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box64.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box64.cs index a0fd1324f5..ca8a96a282 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box64.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Box64.cs @@ -13,12 +13,12 @@ public Box64() : base(IRInstruction.Box64, TransformType.Manual | TransformType. public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "Box64", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR4.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR4.cs index 93a6f62d96..05c73b56b9 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR4.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR4.cs @@ -13,12 +13,12 @@ public BoxR4() : base(IRInstruction.BoxR4, TransformType.Manual | TransformType. public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "BoxR4", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR8.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR8.cs index 4bb1765cb7..1afd101ef0 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR8.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/BoxR8.cs @@ -13,12 +13,12 @@ public BoxR8() : base(IRInstruction.BoxR8, TransformType.Manual | TransformType. public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "BoxR8", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/GetVirtualFunctionPtr.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/GetVirtualFunctionPtr.cs index 695a478b3a..a15c096ad1 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/GetVirtualFunctionPtr.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/GetVirtualFunctionPtr.cs @@ -13,12 +13,12 @@ public GetVirtualFunctionPtr() : base(IRInstruction.GetVirtualFunctionPtr, Trans public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "GetVirtualFunctionPtr", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfInterfaceType.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfInterfaceType.cs index 071f0c3a1c..5baccfe719 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfInterfaceType.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfInterfaceType.cs @@ -13,12 +13,12 @@ public IsInstanceOfInterfaceType() : base(IRInstruction.IsInstanceOfInterfaceTyp public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "IsInstanceOfInterfaceType", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfType.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfType.cs index 9db1f91e07..1367ab1c4e 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfType.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/IsInstanceOfType.cs @@ -13,12 +13,12 @@ public IsInstanceOfType() : base(IRInstruction.IsInstanceOfType, TransformType.M public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "IsInstanceOfType", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemoryCopy.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemoryCopy.cs index c9e966b25d..7c40467b66 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemoryCopy.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemoryCopy.cs @@ -13,12 +13,12 @@ public MemoryCopy() : base(IRInstruction.MemoryCopy, TransformType.Manual | Tran public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "MemoryCopy", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemorySet.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemorySet.cs index 80523e981f..402b2a3c29 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemorySet.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/MemorySet.cs @@ -13,12 +13,12 @@ public MemorySet() : base(IRInstruction.MemorySet, TransformType.Manual | Transf public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "MemorySet", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewArray.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewArray.cs index e49f894158..fa9dfc0c16 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewArray.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewArray.cs @@ -13,12 +13,12 @@ public NewArray() : base(IRInstruction.NewArray, TransformType.Manual | Transfor public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = GetVMCallMethod(transform, "AllocateArray"); var symbol = Operand.CreateLabel(method, transform.Is32BitPlatform); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewObject.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewObject.cs index b434969755..b08be86b6f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewObject.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/NewObject.cs @@ -13,12 +13,12 @@ public NewObject() : base(IRInstruction.NewObject, TransformType.Manual | Transf public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = GetVMCallMethod(transform, "AllocateObject"); var symbol = Operand.CreateLabel(method, transform.Is32BitPlatform); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Rethrow.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Rethrow.cs index 9baf04d147..238da79dbc 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Rethrow.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Rethrow.cs @@ -13,12 +13,12 @@ public Rethrow() : base(IRInstruction.Rethrow, TransformType.Manual | TransformT public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "Rethrow", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Unbox.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Unbox.cs index 902287582f..47b2e10b0f 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/Unbox.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/Unbox.cs @@ -13,12 +13,12 @@ public Unbox() : base(IRInstruction.Unbox, TransformType.Manual | TransformType. public override int Priority => 50; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //SetVMCall(transform, context, "Unbox", context.Result, context.GetOperands()); diff --git a/Source/Mosa.Compiler.Framework/Transforms/Runtime/UnboxAny.cs b/Source/Mosa.Compiler.Framework/Transforms/Runtime/UnboxAny.cs index 8b8e50227b..b1eeab798a 100644 --- a/Source/Mosa.Compiler.Framework/Transforms/Runtime/UnboxAny.cs +++ b/Source/Mosa.Compiler.Framework/Transforms/Runtime/UnboxAny.cs @@ -13,12 +13,12 @@ public UnboxAny() : base(IRInstruction.UnboxAny, TransformType.Manual | Transfor public override int Priority => -10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { SetVMCall(transform, context, "UnboxAny", context.Result, context.GetOperands()); } diff --git a/Source/Mosa.Compiler.x64/Architecture.cs b/Source/Mosa.Compiler.x64/Architecture.cs index e6ee5d4edd..dedd2c6bd2 100644 --- a/Source/Mosa.Compiler.x64/Architecture.cs +++ b/Source/Mosa.Compiler.x64/Architecture.cs @@ -302,7 +302,7 @@ public override bool IsInstructionMove(BaseInstruction instruction) /// The node. /// /// true if [is parameter store] [the specified context]; otherwise, false. - public override bool IsParameterStore(InstructionNode node, out Operand operand) + public override bool IsParameterStore(Node node, out Operand operand) { // TODO operand = null; @@ -315,7 +315,7 @@ public override bool IsParameterStore(InstructionNode node, out Operand operand) /// The node. /// /// true if [is parameter load] [the specified context]; otherwise, false. - public override bool IsParameterLoad(InstructionNode node, out Operand operand) + public override bool IsParameterLoad(Node node, out Operand operand) { operand = null; diff --git a/Source/Mosa.Compiler.x64/Instructions/Adc32.cs b/Source/Mosa.Compiler.x64/Instructions/Adc32.cs index 0a022f8214..ad1aa94894 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Adc32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Adc32.cs @@ -31,7 +31,7 @@ internal Adc32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Adc64.cs b/Source/Mosa.Compiler.x64/Instructions/Adc64.cs index 7657e83966..2ea1e81a76 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Adc64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Adc64.cs @@ -31,7 +31,7 @@ internal Adc64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Add32.cs b/Source/Mosa.Compiler.x64/Instructions/Add32.cs index 0ba5f35d2b..955076a9e7 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Add32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Add32.cs @@ -29,7 +29,7 @@ internal Add32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Add64.cs b/Source/Mosa.Compiler.x64/Instructions/Add64.cs index 66552bb013..c46feab9d1 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Add64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Add64.cs @@ -29,7 +29,7 @@ internal Add64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Addsd.cs b/Source/Mosa.Compiler.x64/Instructions/Addsd.cs index 94640f368e..411b085708 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Addsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Addsd.cs @@ -19,7 +19,7 @@ internal Addsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Addss.cs b/Source/Mosa.Compiler.x64/Instructions/Addss.cs index ffe9e65677..cdbb8cbcc3 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Addss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Addss.cs @@ -19,7 +19,7 @@ internal Addss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/And32.cs b/Source/Mosa.Compiler.x64/Instructions/And32.cs index 02defc40e0..07ec95b3fe 100644 --- a/Source/Mosa.Compiler.x64/Instructions/And32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/And32.cs @@ -33,7 +33,7 @@ internal And32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/And64.cs b/Source/Mosa.Compiler.x64/Instructions/And64.cs index 30c24a6bcb..6b4dc6e2ee 100644 --- a/Source/Mosa.Compiler.x64/Instructions/And64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/And64.cs @@ -33,7 +33,7 @@ internal And64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Blsr32.cs b/Source/Mosa.Compiler.x64/Instructions/Blsr32.cs index 9a6fa2b29e..a951a2785b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Blsr32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Blsr32.cs @@ -33,7 +33,7 @@ internal Blsr32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Blsr64.cs b/Source/Mosa.Compiler.x64/Instructions/Blsr64.cs index 3aee11371b..7fbd267d88 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Blsr64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Blsr64.cs @@ -33,7 +33,7 @@ internal Blsr64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/BochsDebug.cs b/Source/Mosa.Compiler.x64/Instructions/BochsDebug.cs index a44faea88a..a08852dd0e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/BochsDebug.cs +++ b/Source/Mosa.Compiler.x64/Instructions/BochsDebug.cs @@ -19,7 +19,7 @@ internal BochsDebug() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Branch.cs b/Source/Mosa.Compiler.x64/Instructions/Branch.cs index 5b20051981..ccaa85363c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Branch.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Branch.cs @@ -35,7 +35,7 @@ internal Branch() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Break.cs b/Source/Mosa.Compiler.x64/Instructions/Break.cs index a216119df1..aae4c33659 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Break.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Break.cs @@ -19,7 +19,7 @@ internal Break() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Bt32.cs b/Source/Mosa.Compiler.x64/Instructions/Bt32.cs index af12f7336c..8fb92674a2 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Bt32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Bt32.cs @@ -31,7 +31,7 @@ internal Bt32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Bt64.cs b/Source/Mosa.Compiler.x64/Instructions/Bt64.cs index 9ea4ceef02..d89286b037 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Bt64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Bt64.cs @@ -31,7 +31,7 @@ internal Bt64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Btr32.cs b/Source/Mosa.Compiler.x64/Instructions/Btr32.cs index 82d0a15a9a..c4bbe8a65d 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Btr32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Btr32.cs @@ -31,7 +31,7 @@ internal Btr32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Btr64.cs b/Source/Mosa.Compiler.x64/Instructions/Btr64.cs index cd0d5ec727..87c714d035 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Btr64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Btr64.cs @@ -31,7 +31,7 @@ internal Btr64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Bts32.cs b/Source/Mosa.Compiler.x64/Instructions/Bts32.cs index 8d205f0083..62b46ef638 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Bts32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Bts32.cs @@ -31,7 +31,7 @@ internal Bts32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Bts64.cs b/Source/Mosa.Compiler.x64/Instructions/Bts64.cs index 3ba433470f..1db62ddb8c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Bts64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Bts64.cs @@ -31,7 +31,7 @@ internal Bts64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/CMov32.cs b/Source/Mosa.Compiler.x64/Instructions/CMov32.cs index cf23bc8775..849482604d 100644 --- a/Source/Mosa.Compiler.x64/Instructions/CMov32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/CMov32.cs @@ -31,7 +31,7 @@ internal CMov32() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/CMov64.cs b/Source/Mosa.Compiler.x64/Instructions/CMov64.cs index 9c1799f801..1c52bcad7b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/CMov64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/CMov64.cs @@ -31,7 +31,7 @@ internal CMov64() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Call.cs b/Source/Mosa.Compiler.x64/Instructions/Call.cs index edd383e8c0..75f6528789 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Call.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Call.cs @@ -41,7 +41,7 @@ internal Call() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cdq32.cs b/Source/Mosa.Compiler.x64/Instructions/Cdq32.cs index b53e2cd256..2765b773ba 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cdq32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cdq32.cs @@ -17,7 +17,7 @@ internal Cdq32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cdq64.cs b/Source/Mosa.Compiler.x64/Instructions/Cdq64.cs index efb8ac7da1..675813ad8c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cdq64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cdq64.cs @@ -17,7 +17,7 @@ internal Cdq64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cli.cs b/Source/Mosa.Compiler.x64/Instructions/Cli.cs index 363b399a75..f8dd08bbbd 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cli.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cli.cs @@ -19,7 +19,7 @@ internal Cli() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cmp32.cs b/Source/Mosa.Compiler.x64/Instructions/Cmp32.cs index edb0f859f7..39a2674ed2 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cmp32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cmp32.cs @@ -37,7 +37,7 @@ internal Cmp32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cmp64.cs b/Source/Mosa.Compiler.x64/Instructions/Cmp64.cs index 528fdd06fa..591f342a70 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cmp64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cmp64.cs @@ -37,7 +37,7 @@ internal Cmp64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad32.cs index 3d45c32706..43e2e817ff 100644 --- a/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad32.cs @@ -39,7 +39,7 @@ internal CmpXChgLoad32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad64.cs b/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad64.cs index 6ef1ccf0fa..688d71b141 100644 --- a/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/CmpXChgLoad64.cs @@ -39,7 +39,7 @@ internal CmpXChgLoad64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.x64/Instructions/Comisd.cs b/Source/Mosa.Compiler.x64/Instructions/Comisd.cs index e8198ea13e..c0d2641959 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Comisd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Comisd.cs @@ -31,7 +31,7 @@ internal Comisd() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Comiss.cs b/Source/Mosa.Compiler.x64/Instructions/Comiss.cs index 6e42136d80..b1c6f5d637 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Comiss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Comiss.cs @@ -31,7 +31,7 @@ internal Comiss() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/CpuId.cs b/Source/Mosa.Compiler.x64/Instructions/CpuId.cs index d03b104035..8f0dcd5f40 100644 --- a/Source/Mosa.Compiler.x64/Instructions/CpuId.cs +++ b/Source/Mosa.Compiler.x64/Instructions/CpuId.cs @@ -17,7 +17,7 @@ internal CpuId() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvtsd2ss.cs b/Source/Mosa.Compiler.x64/Instructions/Cvtsd2ss.cs index aa7b48442e..b07f226057 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvtsd2ss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvtsd2ss.cs @@ -17,7 +17,7 @@ internal Cvtsd2ss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd32.cs b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd32.cs index 1c69d36e19..902a36cd0e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd32.cs @@ -17,7 +17,7 @@ internal Cvtsi2sd32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd64.cs b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd64.cs index 2e2a2f7688..adaa96cd1a 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2sd64.cs @@ -17,7 +17,7 @@ internal Cvtsi2sd64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss32.cs b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss32.cs index 7bb662dc0a..6e09a1add6 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss32.cs @@ -17,7 +17,7 @@ internal Cvtsi2ss32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss64.cs b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss64.cs index c51a7bd542..4df821df72 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvtsi2ss64.cs @@ -17,7 +17,7 @@ internal Cvtsi2ss64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvtss2sd.cs b/Source/Mosa.Compiler.x64/Instructions/Cvtss2sd.cs index 761e76a826..d428d413a2 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvtss2sd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvtss2sd.cs @@ -17,7 +17,7 @@ internal Cvtss2sd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si32.cs b/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si32.cs index 1e38f41c46..11b4b08154 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si32.cs @@ -17,7 +17,7 @@ internal Cvttsd2si32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si64.cs b/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si64.cs index 7ffab93c8b..3c4015b62b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvttsd2si64.cs @@ -17,7 +17,7 @@ internal Cvttsd2si64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvttss2si32.cs b/Source/Mosa.Compiler.x64/Instructions/Cvttss2si32.cs index 03ab32a73e..101a4ad2fb 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvttss2si32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvttss2si32.cs @@ -17,7 +17,7 @@ internal Cvttss2si32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Cvttss2si64.cs b/Source/Mosa.Compiler.x64/Instructions/Cvttss2si64.cs index 6203ea2271..c577250f83 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Cvttss2si64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Cvttss2si64.cs @@ -17,7 +17,7 @@ internal Cvttss2si64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Dec32.cs b/Source/Mosa.Compiler.x64/Instructions/Dec32.cs index c299b15f4b..2a71a50ecb 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Dec32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Dec32.cs @@ -25,7 +25,7 @@ internal Dec32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Dec64.cs b/Source/Mosa.Compiler.x64/Instructions/Dec64.cs index fe7c5d2c08..e339eb92e2 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Dec64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Dec64.cs @@ -25,7 +25,7 @@ internal Dec64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Div32.cs b/Source/Mosa.Compiler.x64/Instructions/Div32.cs index 2db936f45b..fcc5aa9109 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Div32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Div32.cs @@ -37,7 +37,7 @@ internal Div32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Div64.cs b/Source/Mosa.Compiler.x64/Instructions/Div64.cs index 9422752dc5..79f7411bc9 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Div64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Div64.cs @@ -37,7 +37,7 @@ internal Div64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Divsd.cs b/Source/Mosa.Compiler.x64/Instructions/Divsd.cs index fc8aa06040..fc2116f2f2 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Divsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Divsd.cs @@ -17,7 +17,7 @@ internal Divsd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Divss.cs b/Source/Mosa.Compiler.x64/Instructions/Divss.cs index 87a42a80ff..3c1f982e95 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Divss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Divss.cs @@ -17,7 +17,7 @@ internal Divss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Hlt.cs b/Source/Mosa.Compiler.x64/Instructions/Hlt.cs index 83350d0cea..87852ff402 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Hlt.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Hlt.cs @@ -19,7 +19,7 @@ internal Hlt() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/IDiv32.cs b/Source/Mosa.Compiler.x64/Instructions/IDiv32.cs index 35ba53d5f2..08cf4e55b1 100644 --- a/Source/Mosa.Compiler.x64/Instructions/IDiv32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/IDiv32.cs @@ -37,7 +37,7 @@ internal IDiv32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/IDiv64.cs b/Source/Mosa.Compiler.x64/Instructions/IDiv64.cs index 2b5fa3cf90..925a9b5884 100644 --- a/Source/Mosa.Compiler.x64/Instructions/IDiv64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/IDiv64.cs @@ -37,7 +37,7 @@ internal IDiv64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/IMul32.cs b/Source/Mosa.Compiler.x64/Instructions/IMul32.cs index 7bc8c51029..5f66e551fc 100644 --- a/Source/Mosa.Compiler.x64/Instructions/IMul32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/IMul32.cs @@ -33,7 +33,7 @@ internal IMul32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/IMul64.cs b/Source/Mosa.Compiler.x64/Instructions/IMul64.cs index d6da67b778..e6d73e5ead 100644 --- a/Source/Mosa.Compiler.x64/Instructions/IMul64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/IMul64.cs @@ -33,7 +33,7 @@ internal IMul64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/IRetd.cs b/Source/Mosa.Compiler.x64/Instructions/IRetd.cs index c766105162..64b2039f3c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/IRetd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/IRetd.cs @@ -43,7 +43,7 @@ internal IRetd() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/In16.cs b/Source/Mosa.Compiler.x64/Instructions/In16.cs index f5857387a2..42deff5d49 100644 --- a/Source/Mosa.Compiler.x64/Instructions/In16.cs +++ b/Source/Mosa.Compiler.x64/Instructions/In16.cs @@ -21,7 +21,7 @@ internal In16() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/In32.cs b/Source/Mosa.Compiler.x64/Instructions/In32.cs index 0c8924b1c4..0c79daea3a 100644 --- a/Source/Mosa.Compiler.x64/Instructions/In32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/In32.cs @@ -21,7 +21,7 @@ internal In32() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/In8.cs b/Source/Mosa.Compiler.x64/Instructions/In8.cs index b21a9d3841..2aaba0b57b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/In8.cs +++ b/Source/Mosa.Compiler.x64/Instructions/In8.cs @@ -21,7 +21,7 @@ internal In8() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Inc32.cs b/Source/Mosa.Compiler.x64/Instructions/Inc32.cs index d7b4cb1ddf..635779e67e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Inc32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Inc32.cs @@ -25,7 +25,7 @@ internal Inc32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Inc64.cs b/Source/Mosa.Compiler.x64/Instructions/Inc64.cs index 7381e49c4a..62aafdb1c0 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Inc64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Inc64.cs @@ -25,7 +25,7 @@ internal Inc64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Int.cs b/Source/Mosa.Compiler.x64/Instructions/Int.cs index e831f068ed..62ef25329f 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Int.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Int.cs @@ -39,7 +39,7 @@ internal Int() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Invlpg.cs b/Source/Mosa.Compiler.x64/Instructions/Invlpg.cs index fb4c181d3b..2395825e3e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Invlpg.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Invlpg.cs @@ -19,7 +19,7 @@ internal Invlpg() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Jmp.cs b/Source/Mosa.Compiler.x64/Instructions/Jmp.cs index df0e1b2475..d1a30603ce 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Jmp.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Jmp.cs @@ -41,7 +41,7 @@ internal Jmp() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/JmpExternal.cs b/Source/Mosa.Compiler.x64/Instructions/JmpExternal.cs index 95606fe267..f52c3b7b46 100644 --- a/Source/Mosa.Compiler.x64/Instructions/JmpExternal.cs +++ b/Source/Mosa.Compiler.x64/Instructions/JmpExternal.cs @@ -41,7 +41,7 @@ internal JmpExternal() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Lea32.cs b/Source/Mosa.Compiler.x64/Instructions/Lea32.cs index 5877c64cb2..306f85dde8 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Lea32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Lea32.cs @@ -17,7 +17,7 @@ internal Lea32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Lea64.cs b/Source/Mosa.Compiler.x64/Instructions/Lea64.cs index 429ce467e7..4a33ea65c6 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Lea64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Lea64.cs @@ -17,7 +17,7 @@ internal Lea64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Leave.cs b/Source/Mosa.Compiler.x64/Instructions/Leave.cs index 1a309ad9c4..07e176baad 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Leave.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Leave.cs @@ -39,7 +39,7 @@ internal Leave() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Lgdt.cs b/Source/Mosa.Compiler.x64/Instructions/Lgdt.cs index 674e4c5647..3e8a43ca4c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Lgdt.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Lgdt.cs @@ -19,7 +19,7 @@ internal Lgdt() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Lidt.cs b/Source/Mosa.Compiler.x64/Instructions/Lidt.cs index d858284513..0eee5a8081 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Lidt.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Lidt.cs @@ -19,7 +19,7 @@ internal Lidt() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Lock.cs b/Source/Mosa.Compiler.x64/Instructions/Lock.cs index 87c773c0a9..cfcd3cf55f 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Lock.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Lock.cs @@ -19,7 +19,7 @@ internal Lock() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Mov32.cs b/Source/Mosa.Compiler.x64/Instructions/Mov32.cs index cf2e4a6174..0123230f63 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Mov32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Mov32.cs @@ -17,7 +17,7 @@ internal Mov32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Mov64.cs b/Source/Mosa.Compiler.x64/Instructions/Mov64.cs index a49525d383..1aaca3b1fc 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Mov64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Mov64.cs @@ -17,7 +17,7 @@ internal Mov64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovCRLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/MovCRLoad32.cs index 095ca4338e..c2fbeeef67 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovCRLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovCRLoad32.cs @@ -19,7 +19,7 @@ internal MovCRLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovCRLoad64.cs b/Source/Mosa.Compiler.x64/Instructions/MovCRLoad64.cs index 64efd77ae1..72f41d8291 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovCRLoad64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovCRLoad64.cs @@ -19,7 +19,7 @@ internal MovCRLoad64() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovCRStore32.cs b/Source/Mosa.Compiler.x64/Instructions/MovCRStore32.cs index 1a6f6c551f..e1bdc58ebe 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovCRStore32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovCRStore32.cs @@ -19,7 +19,7 @@ internal MovCRStore32() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovCRStore64.cs b/Source/Mosa.Compiler.x64/Instructions/MovCRStore64.cs index 8bb5cad12e..96608c7657 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovCRStore64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovCRStore64.cs @@ -19,7 +19,7 @@ internal MovCRStore64() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovLoad16.cs b/Source/Mosa.Compiler.x64/Instructions/MovLoad16.cs index 4214656b69..40828047bd 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovLoad16.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovLoad16.cs @@ -19,7 +19,7 @@ internal MovLoad16() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/MovLoad32.cs index a03aaf14ae..38a1561547 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovLoad32.cs @@ -19,7 +19,7 @@ internal MovLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovLoad64.cs b/Source/Mosa.Compiler.x64/Instructions/MovLoad64.cs index 68d7519657..f08c1d0404 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovLoad64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovLoad64.cs @@ -19,7 +19,7 @@ internal MovLoad64() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovLoad8.cs b/Source/Mosa.Compiler.x64/Instructions/MovLoad8.cs index e9476d0ce0..517f122943 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovLoad8.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovLoad8.cs @@ -19,7 +19,7 @@ internal MovLoad8() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg32.cs b/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg32.cs index 24c8be5550..bff38dbb00 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg32.cs @@ -17,7 +17,7 @@ internal MovLoadSeg32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg64.cs b/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg64.cs index 98084b987b..1925a45faa 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovLoadSeg64.cs @@ -17,7 +17,7 @@ internal MovLoadSeg64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovStore16.cs b/Source/Mosa.Compiler.x64/Instructions/MovStore16.cs index ec3d6e898b..f071a4da9a 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovStore16.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovStore16.cs @@ -19,7 +19,7 @@ internal MovStore16() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovStore32.cs b/Source/Mosa.Compiler.x64/Instructions/MovStore32.cs index d98b7bd1b3..a660ebcd9e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovStore32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovStore32.cs @@ -19,7 +19,7 @@ internal MovStore32() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovStore64.cs b/Source/Mosa.Compiler.x64/Instructions/MovStore64.cs index a54917b2ff..f08f722e84 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovStore64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovStore64.cs @@ -19,7 +19,7 @@ internal MovStore64() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovStore8.cs b/Source/Mosa.Compiler.x64/Instructions/MovStore8.cs index 02087c40aa..6a6ab52c3d 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovStore8.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovStore8.cs @@ -19,7 +19,7 @@ internal MovStore8() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg32.cs b/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg32.cs index 078c05efa7..5e5d071451 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg32.cs @@ -17,7 +17,7 @@ internal MovStoreSeg32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg64.cs b/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg64.cs index 9966ba0bf0..411e60f885 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovStoreSeg64.cs @@ -17,7 +17,7 @@ internal MovStoreSeg64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movaps.cs b/Source/Mosa.Compiler.x64/Instructions/Movaps.cs index 874ec3d849..5d590363a7 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movaps.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movaps.cs @@ -17,7 +17,7 @@ internal Movaps() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovapsLoad.cs b/Source/Mosa.Compiler.x64/Instructions/MovapsLoad.cs index 3f505cf9e7..cd648b9011 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovapsLoad.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovapsLoad.cs @@ -19,7 +19,7 @@ internal MovapsLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movdi64sd.cs b/Source/Mosa.Compiler.x64/Instructions/Movdi64sd.cs index ee3ae38de0..e0e7b59418 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movdi64sd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movdi64sd.cs @@ -17,7 +17,7 @@ internal Movdi64sd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movdsdi64.cs b/Source/Mosa.Compiler.x64/Instructions/Movdsdi64.cs index 74646d4b39..0d469163bf 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movdsdi64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movdsdi64.cs @@ -17,7 +17,7 @@ internal Movdsdi64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movsd.cs b/Source/Mosa.Compiler.x64/Instructions/Movsd.cs index 4cb7142ecd..47e5a505dc 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movsd.cs @@ -17,7 +17,7 @@ internal Movsd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovsdLoad.cs b/Source/Mosa.Compiler.x64/Instructions/MovsdLoad.cs index 7e3992749c..4ab8035ab4 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovsdLoad.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovsdLoad.cs @@ -19,7 +19,7 @@ internal MovsdLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovsdStore.cs b/Source/Mosa.Compiler.x64/Instructions/MovsdStore.cs index 1c9b514154..7ccdbd43cc 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovsdStore.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovsdStore.cs @@ -19,7 +19,7 @@ internal MovsdStore() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movss.cs b/Source/Mosa.Compiler.x64/Instructions/Movss.cs index df23033fa1..4d3d0f0ba0 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movss.cs @@ -17,7 +17,7 @@ internal Movss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovssLoad.cs b/Source/Mosa.Compiler.x64/Instructions/MovssLoad.cs index 1d7a192de4..a116c2da03 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovssLoad.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovssLoad.cs @@ -19,7 +19,7 @@ internal MovssLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovssStore.cs b/Source/Mosa.Compiler.x64/Instructions/MovssStore.cs index ffd55407cb..4e431a09b4 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovssStore.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovssStore.cs @@ -19,7 +19,7 @@ internal MovssStore() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movsx16To32.cs b/Source/Mosa.Compiler.x64/Instructions/Movsx16To32.cs index b5d6d61c15..51c17e9784 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movsx16To32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movsx16To32.cs @@ -17,7 +17,7 @@ internal Movsx16To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movsx16To64.cs b/Source/Mosa.Compiler.x64/Instructions/Movsx16To64.cs index f8a58c1d6b..7a0642f1db 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movsx16To64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movsx16To64.cs @@ -17,7 +17,7 @@ internal Movsx16To64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movsx32To64.cs b/Source/Mosa.Compiler.x64/Instructions/Movsx32To64.cs index 582a6bf2cf..e9a987d8c5 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movsx32To64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movsx32To64.cs @@ -17,7 +17,7 @@ internal Movsx32To64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movsx8To32.cs b/Source/Mosa.Compiler.x64/Instructions/Movsx8To32.cs index edc7a2435a..61a3c5a40c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movsx8To32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movsx8To32.cs @@ -17,7 +17,7 @@ internal Movsx8To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movsx8To64.cs b/Source/Mosa.Compiler.x64/Instructions/Movsx8To64.cs index 905722e67e..9c5fadc081 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movsx8To64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movsx8To64.cs @@ -17,7 +17,7 @@ internal Movsx8To64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovsxLoad16.cs b/Source/Mosa.Compiler.x64/Instructions/MovsxLoad16.cs index f06bb8b58b..990534d75b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovsxLoad16.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovsxLoad16.cs @@ -19,7 +19,7 @@ internal MovsxLoad16() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovsxLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/MovsxLoad32.cs index 2efd80b3e3..b49fba2297 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovsxLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovsxLoad32.cs @@ -19,7 +19,7 @@ internal MovsxLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovsxLoad8.cs b/Source/Mosa.Compiler.x64/Instructions/MovsxLoad8.cs index b86178a222..24f99e6895 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovsxLoad8.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovsxLoad8.cs @@ -19,7 +19,7 @@ internal MovsxLoad8() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movups.cs b/Source/Mosa.Compiler.x64/Instructions/Movups.cs index 6cdd4f6c74..647fd45ee4 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movups.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movups.cs @@ -17,7 +17,7 @@ internal Movups() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovupsLoad.cs b/Source/Mosa.Compiler.x64/Instructions/MovupsLoad.cs index 36d6906890..61b70d3e87 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovupsLoad.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovupsLoad.cs @@ -19,7 +19,7 @@ internal MovupsLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovupsStore.cs b/Source/Mosa.Compiler.x64/Instructions/MovupsStore.cs index cf3625c586..f0e240815e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovupsStore.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovupsStore.cs @@ -19,7 +19,7 @@ internal MovupsStore() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movzx16To32.cs b/Source/Mosa.Compiler.x64/Instructions/Movzx16To32.cs index 7fd3638616..7b6056dec3 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movzx16To32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movzx16To32.cs @@ -17,7 +17,7 @@ internal Movzx16To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movzx16To64.cs b/Source/Mosa.Compiler.x64/Instructions/Movzx16To64.cs index 46e1c689c5..0f1c4be23f 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movzx16To64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movzx16To64.cs @@ -17,7 +17,7 @@ internal Movzx16To64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movzx32To64.cs b/Source/Mosa.Compiler.x64/Instructions/Movzx32To64.cs index a99615432f..7f5b881bfe 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movzx32To64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movzx32To64.cs @@ -17,7 +17,7 @@ internal Movzx32To64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movzx8To32.cs b/Source/Mosa.Compiler.x64/Instructions/Movzx8To32.cs index 9bacfe6ced..a987a8b547 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movzx8To32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movzx8To32.cs @@ -17,7 +17,7 @@ internal Movzx8To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Movzx8To64.cs b/Source/Mosa.Compiler.x64/Instructions/Movzx8To64.cs index 60e681c84a..71813da0a7 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Movzx8To64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Movzx8To64.cs @@ -17,7 +17,7 @@ internal Movzx8To64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovzxLoad16.cs b/Source/Mosa.Compiler.x64/Instructions/MovzxLoad16.cs index ccf4606dc8..f2b7f2e2ce 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovzxLoad16.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovzxLoad16.cs @@ -19,7 +19,7 @@ internal MovzxLoad16() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovzxLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/MovzxLoad32.cs index 8e50842b55..23c84aa11b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovzxLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovzxLoad32.cs @@ -19,7 +19,7 @@ internal MovzxLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/MovzxLoad8.cs b/Source/Mosa.Compiler.x64/Instructions/MovzxLoad8.cs index 04166b4f96..8969f2be15 100644 --- a/Source/Mosa.Compiler.x64/Instructions/MovzxLoad8.cs +++ b/Source/Mosa.Compiler.x64/Instructions/MovzxLoad8.cs @@ -19,7 +19,7 @@ internal MovzxLoad8() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Mul32.cs b/Source/Mosa.Compiler.x64/Instructions/Mul32.cs index ba8f6899a6..b1c6871c32 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Mul32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Mul32.cs @@ -35,7 +35,7 @@ internal Mul32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Mul64.cs b/Source/Mosa.Compiler.x64/Instructions/Mul64.cs index 373120afd3..892990496d 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Mul64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Mul64.cs @@ -35,7 +35,7 @@ internal Mul64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Mulsd.cs b/Source/Mosa.Compiler.x64/Instructions/Mulsd.cs index 51c2e0d30f..9d2494532a 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Mulsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Mulsd.cs @@ -19,7 +19,7 @@ internal Mulsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Mulss.cs b/Source/Mosa.Compiler.x64/Instructions/Mulss.cs index 78f2767fe1..b219dbd77a 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Mulss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Mulss.cs @@ -19,7 +19,7 @@ internal Mulss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Neg32.cs b/Source/Mosa.Compiler.x64/Instructions/Neg32.cs index e251c92c43..dcb07bd38e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Neg32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Neg32.cs @@ -37,7 +37,7 @@ internal Neg32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Neg64.cs b/Source/Mosa.Compiler.x64/Instructions/Neg64.cs index 7140f17aed..99c7984388 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Neg64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Neg64.cs @@ -37,7 +37,7 @@ internal Neg64() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Nop.cs b/Source/Mosa.Compiler.x64/Instructions/Nop.cs index 23f779f8ab..3e38c002af 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Nop.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Nop.cs @@ -17,7 +17,7 @@ internal Nop() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Not32.cs b/Source/Mosa.Compiler.x64/Instructions/Not32.cs index 76a035859c..74aff61e16 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Not32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Not32.cs @@ -17,7 +17,7 @@ internal Not32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Not64.cs b/Source/Mosa.Compiler.x64/Instructions/Not64.cs index 0916877036..8e2860405c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Not64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Not64.cs @@ -17,7 +17,7 @@ internal Not64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Or32.cs b/Source/Mosa.Compiler.x64/Instructions/Or32.cs index 45aa234843..222c66370a 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Or32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Or32.cs @@ -33,7 +33,7 @@ internal Or32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Or64.cs b/Source/Mosa.Compiler.x64/Instructions/Or64.cs index 64892b60da..d11a6d7b79 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Or64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Or64.cs @@ -33,7 +33,7 @@ internal Or64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Out16.cs b/Source/Mosa.Compiler.x64/Instructions/Out16.cs index 610aa0dea0..caafbcae3c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Out16.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Out16.cs @@ -21,7 +21,7 @@ internal Out16() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Out32.cs b/Source/Mosa.Compiler.x64/Instructions/Out32.cs index c28484737e..135405e8b4 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Out32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Out32.cs @@ -21,7 +21,7 @@ internal Out32() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Out8.cs b/Source/Mosa.Compiler.x64/Instructions/Out8.cs index 7a1f198383..b77db2cef5 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Out8.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Out8.cs @@ -21,7 +21,7 @@ internal Out8() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/PXor.cs b/Source/Mosa.Compiler.x64/Instructions/PXor.cs index 20e2bb45b5..750de45fa5 100644 --- a/Source/Mosa.Compiler.x64/Instructions/PXor.cs +++ b/Source/Mosa.Compiler.x64/Instructions/PXor.cs @@ -17,7 +17,7 @@ internal PXor() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Pause.cs b/Source/Mosa.Compiler.x64/Instructions/Pause.cs index cf158bdd0f..04d2a18f4b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Pause.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Pause.cs @@ -17,7 +17,7 @@ internal Pause() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Pextrd32.cs b/Source/Mosa.Compiler.x64/Instructions/Pextrd32.cs index 74883f3389..05e72c76be 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Pextrd32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Pextrd32.cs @@ -17,7 +17,7 @@ internal Pextrd32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Pextrd64.cs b/Source/Mosa.Compiler.x64/Instructions/Pextrd64.cs index 996c07dc4c..eb2541f078 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Pextrd64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Pextrd64.cs @@ -17,7 +17,7 @@ internal Pextrd64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Pop64.cs b/Source/Mosa.Compiler.x64/Instructions/Pop64.cs index 623d09f39e..496e5a9254 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Pop64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Pop64.cs @@ -17,7 +17,7 @@ internal Pop64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Popad.cs b/Source/Mosa.Compiler.x64/Instructions/Popad.cs index a7f2baada4..b245a7f455 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Popad.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Popad.cs @@ -17,7 +17,7 @@ internal Popad() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Push64.cs b/Source/Mosa.Compiler.x64/Instructions/Push64.cs index 455fdf6017..365f98419e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Push64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Push64.cs @@ -17,7 +17,7 @@ internal Push64() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Pushad.cs b/Source/Mosa.Compiler.x64/Instructions/Pushad.cs index b7fc97e119..82cf4365d6 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Pushad.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Pushad.cs @@ -17,7 +17,7 @@ internal Pushad() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Rcr32.cs b/Source/Mosa.Compiler.x64/Instructions/Rcr32.cs index 307d6b10b8..1928611b4e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Rcr32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Rcr32.cs @@ -23,7 +23,7 @@ internal Rcr32() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Rcr64.cs b/Source/Mosa.Compiler.x64/Instructions/Rcr64.cs index f4afcfb53d..4f6ab885d8 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Rcr64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Rcr64.cs @@ -23,7 +23,7 @@ internal Rcr64() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/RdMSR.cs b/Source/Mosa.Compiler.x64/Instructions/RdMSR.cs index 4b78ef12c2..aab2aa7fb6 100644 --- a/Source/Mosa.Compiler.x64/Instructions/RdMSR.cs +++ b/Source/Mosa.Compiler.x64/Instructions/RdMSR.cs @@ -17,7 +17,7 @@ internal RdMSR() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Ret.cs b/Source/Mosa.Compiler.x64/Instructions/Ret.cs index cbc119795d..3caf583b46 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Ret.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Ret.cs @@ -21,7 +21,7 @@ internal Ret() public override bool IsReturn => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Roundsd.cs b/Source/Mosa.Compiler.x64/Instructions/Roundsd.cs index aa0849478a..5d4c3d8506 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Roundsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Roundsd.cs @@ -17,7 +17,7 @@ internal Roundsd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Roundss.cs b/Source/Mosa.Compiler.x64/Instructions/Roundss.cs index 062e7fd789..d8f50b5499 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Roundss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Roundss.cs @@ -17,7 +17,7 @@ internal Roundss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sar32.cs b/Source/Mosa.Compiler.x64/Instructions/Sar32.cs index 5723127b7a..53821cae9f 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sar32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sar32.cs @@ -27,7 +27,7 @@ internal Sar32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sar64.cs b/Source/Mosa.Compiler.x64/Instructions/Sar64.cs index ff21f9471f..1472804680 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sar64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sar64.cs @@ -27,7 +27,7 @@ internal Sar64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sbb32.cs b/Source/Mosa.Compiler.x64/Instructions/Sbb32.cs index d999f6e80e..8cfff12b10 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sbb32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sbb32.cs @@ -31,7 +31,7 @@ internal Sbb32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sbb64.cs b/Source/Mosa.Compiler.x64/Instructions/Sbb64.cs index 542cc5807a..8b2f03bab8 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sbb64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sbb64.cs @@ -31,7 +31,7 @@ internal Sbb64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Setcc.cs b/Source/Mosa.Compiler.x64/Instructions/Setcc.cs index e0d9ce58ec..4162a410de 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Setcc.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Setcc.cs @@ -31,7 +31,7 @@ internal Setcc() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shl32.cs b/Source/Mosa.Compiler.x64/Instructions/Shl32.cs index 1cc2c453d3..ab54545f45 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shl32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shl32.cs @@ -27,7 +27,7 @@ internal Shl32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shl64.cs b/Source/Mosa.Compiler.x64/Instructions/Shl64.cs index bcc35c180c..6d1fefd7fe 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shl64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shl64.cs @@ -27,7 +27,7 @@ internal Shl64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shld32.cs b/Source/Mosa.Compiler.x64/Instructions/Shld32.cs index 154a7f2f44..59b350df01 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shld32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shld32.cs @@ -27,7 +27,7 @@ internal Shld32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shld64.cs b/Source/Mosa.Compiler.x64/Instructions/Shld64.cs index e309732a2e..e0c966ebb9 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shld64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shld64.cs @@ -27,7 +27,7 @@ internal Shld64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shr32.cs b/Source/Mosa.Compiler.x64/Instructions/Shr32.cs index f493153ce5..8fae987959 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shr32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shr32.cs @@ -27,7 +27,7 @@ internal Shr32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shr64.cs b/Source/Mosa.Compiler.x64/Instructions/Shr64.cs index 8ba8f8d098..7961dddf1c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shr64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shr64.cs @@ -27,7 +27,7 @@ internal Shr64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shrd32.cs b/Source/Mosa.Compiler.x64/Instructions/Shrd32.cs index 777cf7a704..7a5d5540e8 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shrd32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shrd32.cs @@ -27,7 +27,7 @@ internal Shrd32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Shrd64.cs b/Source/Mosa.Compiler.x64/Instructions/Shrd64.cs index cde70de773..906213b616 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Shrd64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Shrd64.cs @@ -27,7 +27,7 @@ internal Shrd64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sqrtsd.cs b/Source/Mosa.Compiler.x64/Instructions/Sqrtsd.cs index 5e16d30411..c258774c80 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sqrtsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sqrtsd.cs @@ -19,7 +19,7 @@ internal Sqrtsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sqrtss.cs b/Source/Mosa.Compiler.x64/Instructions/Sqrtss.cs index 6523d7429a..baa0379926 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sqrtss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sqrtss.cs @@ -19,7 +19,7 @@ internal Sqrtss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sti.cs b/Source/Mosa.Compiler.x64/Instructions/Sti.cs index 56fbf09a15..ef33f0c11d 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sti.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sti.cs @@ -19,7 +19,7 @@ internal Sti() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sub32.cs b/Source/Mosa.Compiler.x64/Instructions/Sub32.cs index 19d4e4b5b0..a5f6f5ac41 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sub32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sub32.cs @@ -27,7 +27,7 @@ internal Sub32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Sub64.cs b/Source/Mosa.Compiler.x64/Instructions/Sub64.cs index 1a6e5ef203..336a7ba411 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Sub64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Sub64.cs @@ -27,7 +27,7 @@ internal Sub64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Subsd.cs b/Source/Mosa.Compiler.x64/Instructions/Subsd.cs index f3f6bf7fe4..efa38ba35e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Subsd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Subsd.cs @@ -19,7 +19,7 @@ internal Subsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Subss.cs b/Source/Mosa.Compiler.x64/Instructions/Subss.cs index d03e27808d..8816a309d3 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Subss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Subss.cs @@ -19,7 +19,7 @@ internal Subss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Test32.cs b/Source/Mosa.Compiler.x64/Instructions/Test32.cs index f4fe0ee164..639118f6b9 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Test32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Test32.cs @@ -31,7 +31,7 @@ internal Test32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Test64.cs b/Source/Mosa.Compiler.x64/Instructions/Test64.cs index 97f1e20b93..0be064cb1e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Test64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Test64.cs @@ -31,7 +31,7 @@ internal Test64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Ucomisd.cs b/Source/Mosa.Compiler.x64/Instructions/Ucomisd.cs index ddc4d8320d..8e702bab9b 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Ucomisd.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Ucomisd.cs @@ -17,7 +17,7 @@ internal Ucomisd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Ucomiss.cs b/Source/Mosa.Compiler.x64/Instructions/Ucomiss.cs index bc13a25b22..41e3890666 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Ucomiss.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Ucomiss.cs @@ -17,7 +17,7 @@ internal Ucomiss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/WrMSR.cs b/Source/Mosa.Compiler.x64/Instructions/WrMSR.cs index 099712b628..a0c706bae2 100644 --- a/Source/Mosa.Compiler.x64/Instructions/WrMSR.cs +++ b/Source/Mosa.Compiler.x64/Instructions/WrMSR.cs @@ -17,7 +17,7 @@ internal WrMSR() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/XAddLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/XAddLoad32.cs index ca732b38cd..23a2115df3 100644 --- a/Source/Mosa.Compiler.x64/Instructions/XAddLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/XAddLoad32.cs @@ -29,7 +29,7 @@ internal XAddLoad32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/XAddLoad64.cs b/Source/Mosa.Compiler.x64/Instructions/XAddLoad64.cs index 6ff6203e0e..ffe5356ce6 100644 --- a/Source/Mosa.Compiler.x64/Instructions/XAddLoad64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/XAddLoad64.cs @@ -29,7 +29,7 @@ internal XAddLoad64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/XChg32.cs b/Source/Mosa.Compiler.x64/Instructions/XChg32.cs index 8749fad567..990d84875c 100644 --- a/Source/Mosa.Compiler.x64/Instructions/XChg32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/XChg32.cs @@ -19,7 +19,7 @@ internal XChg32() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/XChg64.cs b/Source/Mosa.Compiler.x64/Instructions/XChg64.cs index fe1054c915..d1bc87ce95 100644 --- a/Source/Mosa.Compiler.x64/Instructions/XChg64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/XChg64.cs @@ -19,7 +19,7 @@ internal XChg64() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/XChgLoad32.cs b/Source/Mosa.Compiler.x64/Instructions/XChgLoad32.cs index 8a7a4b7ab4..bf966ae8db 100644 --- a/Source/Mosa.Compiler.x64/Instructions/XChgLoad32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/XChgLoad32.cs @@ -19,7 +19,7 @@ internal XChgLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/XChgLoad64.cs b/Source/Mosa.Compiler.x64/Instructions/XChgLoad64.cs index 3bac614f31..9870f37653 100644 --- a/Source/Mosa.Compiler.x64/Instructions/XChgLoad64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/XChgLoad64.cs @@ -19,7 +19,7 @@ internal XChgLoad64() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x64/Instructions/Xor32.cs b/Source/Mosa.Compiler.x64/Instructions/Xor32.cs index c2bb0407a0..3f503a444e 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Xor32.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Xor32.cs @@ -33,7 +33,7 @@ internal Xor32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Instructions/Xor64.cs b/Source/Mosa.Compiler.x64/Instructions/Xor64.cs index aed7b4aa80..8bdd783969 100644 --- a/Source/Mosa.Compiler.x64/Instructions/Xor64.cs +++ b/Source/Mosa.Compiler.x64/Instructions/Xor64.cs @@ -33,7 +33,7 @@ internal Xor64() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/AllocateStackSpace.cs b/Source/Mosa.Compiler.x64/Intrinsic/AllocateStackSpace.cs index 5a933d12d4..1660fefa1b 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/AllocateStackSpace.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/AllocateStackSpace.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::AllocateStackSpace")] - private static void AllocateStackSpace(Context context, TransformContext transformContext) + private static void AllocateStackSpace(Context context, Transform transform) { Operand result = context.Result; Operand size = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Blsr32.cs b/Source/Mosa.Compiler.x64/Intrinsic/Blsr32.cs index 9e5863ca2f..2655f553ef 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Blsr32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Blsr32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Blsr32")] - private static void Blsr32(Context context, TransformContext transformContext) + private static void Blsr32(Context context, Transform transform) { context.SetInstruction(X64.Blsr32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Blsr64.cs b/Source/Mosa.Compiler.x64/Intrinsic/Blsr64.cs index e556f270ba..69206c0fdc 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Blsr64.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Blsr64.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Blsr64")] - private static void Blsr64(Context context, TransformContext transformContext) + private static void Blsr64(Context context, Transform transform) { context.SetInstruction(X64.Blsr64, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/BochsDebug.cs b/Source/Mosa.Compiler.x64/Intrinsic/BochsDebug.cs index 220cfda2f2..0e3b9226f3 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/BochsDebug.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/BochsDebug.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::BochsDebug")] - private static void BochsDebug(Context context, TransformContext transformContext) + private static void BochsDebug(Context context, Transform transform) { context.SetInstruction(X64.BochsDebug); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Call.cs b/Source/Mosa.Compiler.x64/Intrinsic/Call.cs index 4fa6493567..5887d47970 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Call.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Call.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Call")] - private static void Call(Context context, TransformContext transformContext) + private static void Call(Context context, Transform transform) { context.SetInstruction(X64.Call, null, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Cli.cs b/Source/Mosa.Compiler.x64/Intrinsic/Cli.cs index 001ef3a04a..06065d1270 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Cli.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Cli.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Cli")] - private static void Cli(Context context, TransformContext transformContext) + private static void Cli(Context context, Transform transform) { context.SetInstruction(X64.Cli); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/CmpXChgLoad64.cs b/Source/Mosa.Compiler.x64/Intrinsic/CmpXChgLoad64.cs index a0a96fcdd5..8accf835fd 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/CmpXChgLoad64.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/CmpXChgLoad64.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::CmpXChgLoad64")] - private static void CmpXChgLoad64(Context context, TransformContext transformContext) + private static void CmpXChgLoad64(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; @@ -18,7 +18,7 @@ private static void CmpXChgLoad64(Context context, TransformContext transformCon var result = context.Result; var rax = Operand.CreateCPURegister64(CPURegister.RAX); - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); context.SetInstruction(X64.Mov64, rax, comparand); context.AppendInstruction(X64.Mov64, v1, value); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRAX.cs b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRAX.cs index 937e1db9e6..f3b5d5b675 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRAX.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRAX.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::CpuIdRAX")] - private static void CpuIdRAX(Context context, TransformContext transformContext) + private static void CpuIdRAX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRBX.cs b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRBX.cs index c76dc30199..92515f0eb0 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRBX.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRBX.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::CpuIdRBX")] - private static void CpuIdRBX(Context context, TransformContext transformContext) + private static void CpuIdRBX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRCX.cs b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRCX.cs index 2824b1b3a1..a1eb6ee983 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRCX.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRCX.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::CpuIdRCX")] - private static void CpuIdRCX(Context context, TransformContext transformContext) + private static void CpuIdRCX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRDX.cs b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRDX.cs index 892e17ce54..439cf29bdb 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRDX.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/CpuIdRDX.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::CpuIdRDX")] - private static void CpuIdRDX(Context context, TransformContext transformContext) + private static void CpuIdRDX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Div.cs b/Source/Mosa.Compiler.x64/Intrinsic/Div.cs index 8af2e46bca..cdb9293700 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Div.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Div.cs @@ -10,14 +10,14 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Div")] - private static void Div(Context context, TransformContext transformContext) + private static void Div(Context context, Transform transform) { var n = context.Operand1; var d = context.Operand2; var result = context.Result; - var result2 = transformContext.VirtualRegisters.Allocate64(); + var result2 = transform.VirtualRegisters.Allocate64(); - transformContext.SplitOperand(n, out Operand op0L, out Operand op0H); + transform.SplitOperand(n, out Operand op0L, out Operand op0H); context.SetInstruction2(X64.Div64, result2, result, op0H, op0L, d); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/FrameCall.cs b/Source/Mosa.Compiler.x64/Intrinsic/FrameCall.cs index 7158c9a707..acf6176284 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/FrameCall.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/FrameCall.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::FrameCall")] - private static void FrameCall(Context context, TransformContext transformContext) + private static void FrameCall(Context context, Transform transform) { context.SetInstruction(X64.Call, null, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetR8.cs b/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetR8.cs index 99dd2fe35b..3888b99f4c 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetR8.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetR8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::FrameCallRetR8")] - private static void FrameCallRetR8(Context context, TransformContext transformContext) + private static void FrameCallRetR8(Context context, Transform transform) { var result = context.Result; var methodAddress = context.Operand1; @@ -19,7 +19,7 @@ private static void FrameCallRetR8(Context context, TransformContext transformCo var edx = Operand.CreateCPURegister64(CPURegister.RDX); var xmm0 = Operand.CreateCPURegister64(CPURegister.XMM0); - transformContext.SplitOperand(result, out Operand op0L, out Operand op0H); + transform.SplitOperand(result, out Operand op0L, out Operand op0H); context.SetInstruction(X64.Call, null, methodAddress); context.AppendInstruction(IRInstruction.Gen, xmm0); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetU8.cs b/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetU8.cs index 8d7696d8d6..c9d75d0050 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetU8.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/FrameCallRetU8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::FrameCallRetU8")] - private static void FrameCallRetU8(Context context, TransformContext transformContext) + private static void FrameCallRetU8(Context context, Transform transform) { var result = context.Result; var methodAddress = context.Operand1; @@ -18,7 +18,7 @@ private static void FrameCallRetU8(Context context, TransformContext transformCo var eax = Operand.CreateCPURegister64(CPURegister.RAX); var edx = Operand.CreateCPURegister64(CPURegister.RDX); - transformContext.SplitOperand(result, out Operand op0L, out Operand op0H); + transform.SplitOperand(result, out Operand op0L, out Operand op0H); context.SetInstruction(X64.Call, null, methodAddress); context.AppendInstruction(IRInstruction.Gen, eax); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/FrameJump.cs b/Source/Mosa.Compiler.x64/Intrinsic/FrameJump.cs index 6d04c3490e..af30ffdbf9 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/FrameJump.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/FrameJump.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::FrameJump")] - private static void FrameJump(Context context, TransformContext transformContext) + private static void FrameJump(Context context, Transform transform) { var v0 = context.Operand1; var v1 = context.Operand2; @@ -28,7 +28,7 @@ private static void FrameJump(Context context, TransformContext transformContext context.SetInstruction(X64.Mov64, rax, v0); context.AppendInstruction(X64.Mov64, rbx, v1); context.AppendInstruction(X64.Mov64, rcx, v2); - context.AppendInstruction(X64.Mov64, transformContext.Compiler.ExceptionRegister, v3); + context.AppendInstruction(X64.Mov64, transform.Compiler.ExceptionRegister, v3); // Update the frame and stack registers context.AppendInstruction(X64.Mov64, rbp, rcx); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Get16.cs b/Source/Mosa.Compiler.x64/Intrinsic/Get16.cs index 367afa94f2..f760a90812 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Get16.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Get16.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Get16")] - private static void Get16(Context context, TransformContext transformContext) + private static void Get16(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad16, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Get32.cs b/Source/Mosa.Compiler.x64/Intrinsic/Get32.cs index 34738e9e10..b9f25c2c5e 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Get32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Get32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Get32")] - private static void Get32(Context context, TransformContext transformContext) + private static void Get32(Context context, Transform transform) { context.SetInstruction(X64.MovLoad32, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Get64.cs b/Source/Mosa.Compiler.x64/Intrinsic/Get64.cs index 9e4bb8a5e4..1e21192334 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Get64.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Get64.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Get64")] - private static void Get64(Context context, TransformContext transformContext) + private static void Get64(Context context, Transform transform) { context.SetInstruction(X64.MovLoad64, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Get8.cs b/Source/Mosa.Compiler.x64/Intrinsic/Get8.cs index 1292886780..d69beb6547 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Get8.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Get8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Get8")] - private static void Get8(Context context, TransformContext transformContext) + private static void Get8(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad8, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetCR0.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetCR0.cs index e3ad8c2850..f520dbc1f2 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetCR0.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetCR0.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetCR0")] - private static void GetCR0(Context context, TransformContext transformContext) + private static void GetCR0(Context context, Transform transform) { context.SetInstruction(X64.MovCRLoad64, context.Result, Operand.CreateCPURegister64(CPURegister.CR0)); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetCR2.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetCR2.cs index dfb60f4a6b..0dfe76361b 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetCR2.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetCR2.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetCR2")] - private static void GetCR2(Context context, TransformContext transformContext) + private static void GetCR2(Context context, Transform transform) { context.SetInstruction(X64.MovCRLoad64, context.Result, Operand.CreateCPURegister64(CPURegister.CR2)); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetCR3.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetCR3.cs index 6e7cddf04a..069e2f78a1 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetCR3.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetCR3.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetCR3")] - private static void GetCR3(Context context, TransformContext transformContext) + private static void GetCR3(Context context, Transform transform) { context.SetInstruction(X64.MovCRLoad64, context.Result, Operand.CreateCPURegister64(CPURegister.CR3)); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetCR4.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetCR4.cs index 2f12b3a408..0843f5eed8 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetCR4.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetCR4.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetCR4")] - private static void GetCR4(Context context, TransformContext transformContext) + private static void GetCR4(Context context, Transform transform) { context.SetInstruction(X64.MovCRLoad64, context.Result, Operand.CreateCPURegister64(CPURegister.CR4)); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetCS.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetCS.cs index 29f92bf343..adb190cab5 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetCS.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetCS.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetCS")] - private static void GetCS(Context context, TransformContext transformContext) + private static void GetCS(Context context, Transform transform) { context.SetInstruction(X64.MovLoadSeg64, context.Result, Operand.CreateCPURegister64(CPURegister.CS)); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetFS.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetFS.cs index 54b2dc24a1..df0df7d063 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetFS.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetFS.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetFS")] - private static void GetFS(Context context, TransformContext transformContext) + private static void GetFS(Context context, Transform transform) { context.SetInstruction(X64.MovLoadSeg64, context.Result, Operand.CreateCPURegister64(CPURegister.FS)); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetIDTJumpLocation.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetIDTJumpLocation.cs index 0308e8a964..9f71097168 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetIDTJumpLocation.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetIDTJumpLocation.cs @@ -12,7 +12,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetIDTJumpLocation")] - private static void GetIDTJumpLocation(Context context, TransformContext transformContext) + private static void GetIDTJumpLocation(Context context, Transform transform) { var operand = context.Operand1; @@ -32,15 +32,15 @@ private static void GetIDTJumpLocation(Context context, TransformContext transfo int irq = (int)operand.ConstantSigned64; // Find the method - var method = transformContext.TypeSystem.DefaultLinkerType.FindMethodByName("InterruptISR" + irq); + var method = transform.TypeSystem.DefaultLinkerType.FindMethodByName("InterruptISR" + irq); if (method == null) { throw new CompilerException(); } - context.SetInstruction(IRInstruction.Move64, context.Result, Operand.CreateLabel(method, transformContext.Is32BitPlatform)); + context.SetInstruction(IRInstruction.Move64, context.Result, Operand.CreateLabel(method, transform.Is32BitPlatform)); - transformContext.MethodScanner.MethodInvoked(method, transformContext.Method); + transform.MethodScanner.MethodInvoked(method, transform.Method); } } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetIRQHandler.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetIRQHandler.cs index 1adcc2c662..37e73df41c 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetIRQHandler.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetIRQHandler.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetIRQHandler")] - private static void GetIRQHandler(Context context, TransformContext transformContext) + private static void GetIRQHandler(Context context, Transform transform) { } } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRAX.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRAX.cs index 5a4666c371..6444b4bfbd 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRAX.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRAX.cs @@ -11,9 +11,9 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetMultibootRAX")] - private static void GetMultibootRAX(Context context, TransformContext transformContext) + private static void GetMultibootRAX(Context context, Transform transform) { - var MultibootEAX = Operand.CreateLabel(BaseMultibootStage.MultibootEAX, transformContext.Is32BitPlatform); + var MultibootEAX = Operand.CreateLabel(BaseMultibootStage.MultibootEAX, transform.Is32BitPlatform); context.SetInstruction(IRInstruction.Load64, context.Result, MultibootEAX, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRBX.cs b/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRBX.cs index fb0a5fca39..c6055e0d8c 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRBX.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/GetMultibootRBX.cs @@ -11,9 +11,9 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::GetMultibootRBX")] - private static void GetMultibootRBX(Context context, TransformContext transformContext) + private static void GetMultibootRBX(Context context, Transform transform) { - var MultibootEBX = Operand.CreateLabel(BaseMultibootStage.MultibootEBX, transformContext.Is32BitPlatform); + var MultibootEBX = Operand.CreateLabel(BaseMultibootStage.MultibootEBX, transform.Is32BitPlatform); context.SetInstruction(IRInstruction.Load64, context.Result, MultibootEBX, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Hlt.cs b/Source/Mosa.Compiler.x64/Intrinsic/Hlt.cs index a30f84bc54..b78c787d88 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Hlt.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Hlt.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Hlt")] - private static void Hlt(Context context, TransformContext transformContext) + private static void Hlt(Context context, Transform transform) { context.SetInstruction(X64.Hlt); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/IRQs.cs b/Source/Mosa.Compiler.x64/Intrinsic/IRQs.cs index 22f47467fb..84e8e25f1d 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/IRQs.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/IRQs.cs @@ -11,9 +11,9 @@ internal static partial class IntrinsicMethods { private static readonly string DefaultInterruptMethodName = "Mosa.Kernel.X64.IDT::ProcessInterrupt"; - private static void InsertIRQ(int irq, Context context, TransformContext transformContext) + private static void InsertIRQ(int irq, Context context, Transform transform) { - var interruptMethodName = transformContext.Compiler.MosaSettings.Settings.GetValue("X64.InterruptMethodName", DefaultInterruptMethodName); + var interruptMethodName = transform.Compiler.MosaSettings.Settings.GetValue("X64.InterruptMethodName", DefaultInterruptMethodName); if (string.IsNullOrEmpty(interruptMethodName)) { @@ -28,7 +28,7 @@ private static void InsertIRQ(int irq, Context context, TransformContext transfo var typeFullname = ar[0]; var methodName = ar[1]; - var type = transformContext.TypeSystem.GetTypeByName(typeFullname); + var type = transform.TypeSystem.GetTypeByName(typeFullname); if (type == null) return; @@ -38,9 +38,9 @@ private static void InsertIRQ(int irq, Context context, TransformContext transfo if (method == null) return; - transformContext.MethodScanner.MethodInvoked(method, transformContext.Method); + transform.MethodScanner.MethodInvoked(method, transform.Method); - var interrupt = Operand.CreateLabel(method, transformContext.Is32BitPlatform); + var interrupt = Operand.CreateLabel(method, transform.Is32BitPlatform); var esp = Operand.CreateCPURegister32(CPURegister.RSP); @@ -61,1538 +61,1538 @@ private static void InsertIRQ(int irq, Context context, TransformContext transfo } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ0")] - private static void IRQ0(Context context, TransformContext transformContext) + private static void IRQ0(Context context, Transform transform) { - InsertIRQ(0, context, transformContext); + InsertIRQ(0, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ1")] - private static void IRQ1(Context context, TransformContext transformContext) + private static void IRQ1(Context context, Transform transform) { - InsertIRQ(1, context, transformContext); + InsertIRQ(1, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ2")] - private static void IRQ2(Context context, TransformContext transformContext) + private static void IRQ2(Context context, Transform transform) { - InsertIRQ(2, context, transformContext); + InsertIRQ(2, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ3")] - private static void IRQ3(Context context, TransformContext transformContext) + private static void IRQ3(Context context, Transform transform) { - InsertIRQ(3, context, transformContext); + InsertIRQ(3, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ4")] - private static void IRQ4(Context context, TransformContext transformContext) + private static void IRQ4(Context context, Transform transform) { - InsertIRQ(4, context, transformContext); + InsertIRQ(4, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ5")] - private static void IRQ5(Context context, TransformContext transformContext) + private static void IRQ5(Context context, Transform transform) { - InsertIRQ(5, context, transformContext); + InsertIRQ(5, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ6")] - private static void IRQ6(Context context, TransformContext transformContext) + private static void IRQ6(Context context, Transform transform) { - InsertIRQ(6, context, transformContext); + InsertIRQ(6, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ7")] - private static void IRQ7(Context context, TransformContext transformContext) + private static void IRQ7(Context context, Transform transform) { - InsertIRQ(7, context, transformContext); + InsertIRQ(7, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ8")] - private static void IRQ8(Context context, TransformContext transformContext) + private static void IRQ8(Context context, Transform transform) { - InsertIRQ(8, context, transformContext); + InsertIRQ(8, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ9")] - private static void IRQ9(Context context, TransformContext transformContext) + private static void IRQ9(Context context, Transform transform) { - InsertIRQ(9, context, transformContext); + InsertIRQ(9, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ10")] - private static void IRQ10(Context context, TransformContext transformContext) + private static void IRQ10(Context context, Transform transform) { - InsertIRQ(10, context, transformContext); + InsertIRQ(10, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ11")] - private static void IRQ11(Context context, TransformContext transformContext) + private static void IRQ11(Context context, Transform transform) { - InsertIRQ(11, context, transformContext); + InsertIRQ(11, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ12")] - private static void IRQ12(Context context, TransformContext transformContext) + private static void IRQ12(Context context, Transform transform) { - InsertIRQ(12, context, transformContext); + InsertIRQ(12, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ13")] - private static void IRQ13(Context context, TransformContext transformContext) + private static void IRQ13(Context context, Transform transform) { - InsertIRQ(13, context, transformContext); + InsertIRQ(13, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ14")] - private static void IRQ14(Context context, TransformContext transformContext) + private static void IRQ14(Context context, Transform transform) { - InsertIRQ(14, context, transformContext); + InsertIRQ(14, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ15")] - private static void IRQ15(Context context, TransformContext transformContext) + private static void IRQ15(Context context, Transform transform) { - InsertIRQ(15, context, transformContext); + InsertIRQ(15, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ16")] - private static void IRQ16(Context context, TransformContext transformContext) + private static void IRQ16(Context context, Transform transform) { - InsertIRQ(16, context, transformContext); + InsertIRQ(16, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ17")] - private static void IRQ17(Context context, TransformContext transformContext) + private static void IRQ17(Context context, Transform transform) { - InsertIRQ(17, context, transformContext); + InsertIRQ(17, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ18")] - private static void IRQ18(Context context, TransformContext transformContext) + private static void IRQ18(Context context, Transform transform) { - InsertIRQ(18, context, transformContext); + InsertIRQ(18, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ19")] - private static void IRQ19(Context context, TransformContext transformContext) + private static void IRQ19(Context context, Transform transform) { - InsertIRQ(19, context, transformContext); + InsertIRQ(19, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ20")] - private static void IRQ20(Context context, TransformContext transformContext) + private static void IRQ20(Context context, Transform transform) { - InsertIRQ(20, context, transformContext); + InsertIRQ(20, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ21")] - private static void IRQ21(Context context, TransformContext transformContext) + private static void IRQ21(Context context, Transform transform) { - InsertIRQ(21, context, transformContext); + InsertIRQ(21, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ22")] - private static void IRQ22(Context context, TransformContext transformContext) + private static void IRQ22(Context context, Transform transform) { - InsertIRQ(22, context, transformContext); + InsertIRQ(22, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ23")] - private static void IRQ23(Context context, TransformContext transformContext) + private static void IRQ23(Context context, Transform transform) { - InsertIRQ(23, context, transformContext); + InsertIRQ(23, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ24")] - private static void IRQ24(Context context, TransformContext transformContext) + private static void IRQ24(Context context, Transform transform) { - InsertIRQ(24, context, transformContext); + InsertIRQ(24, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ25")] - private static void IRQ25(Context context, TransformContext transformContext) + private static void IRQ25(Context context, Transform transform) { - InsertIRQ(25, context, transformContext); + InsertIRQ(25, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ26")] - private static void IRQ26(Context context, TransformContext transformContext) + private static void IRQ26(Context context, Transform transform) { - InsertIRQ(26, context, transformContext); + InsertIRQ(26, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ27")] - private static void IRQ27(Context context, TransformContext transformContext) + private static void IRQ27(Context context, Transform transform) { - InsertIRQ(27, context, transformContext); + InsertIRQ(27, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ28")] - private static void IRQ28(Context context, TransformContext transformContext) + private static void IRQ28(Context context, Transform transform) { - InsertIRQ(28, context, transformContext); + InsertIRQ(28, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ29")] - private static void IRQ29(Context context, TransformContext transformContext) + private static void IRQ29(Context context, Transform transform) { - InsertIRQ(29, context, transformContext); + InsertIRQ(29, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ30")] - private static void IRQ30(Context context, TransformContext transformContext) + private static void IRQ30(Context context, Transform transform) { - InsertIRQ(30, context, transformContext); + InsertIRQ(30, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ31")] - private static void IRQ31(Context context, TransformContext transformContext) + private static void IRQ31(Context context, Transform transform) { - InsertIRQ(31, context, transformContext); + InsertIRQ(31, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ32")] - private static void IRQ32(Context context, TransformContext transformContext) + private static void IRQ32(Context context, Transform transform) { - InsertIRQ(32, context, transformContext); + InsertIRQ(32, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ33")] - private static void IRQ33(Context context, TransformContext transformContext) + private static void IRQ33(Context context, Transform transform) { - InsertIRQ(33, context, transformContext); + InsertIRQ(33, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ34")] - private static void IRQ34(Context context, TransformContext transformContext) + private static void IRQ34(Context context, Transform transform) { - InsertIRQ(34, context, transformContext); + InsertIRQ(34, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ35")] - private static void IRQ35(Context context, TransformContext transformContext) + private static void IRQ35(Context context, Transform transform) { - InsertIRQ(35, context, transformContext); + InsertIRQ(35, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ36")] - private static void IRQ36(Context context, TransformContext transformContext) + private static void IRQ36(Context context, Transform transform) { - InsertIRQ(36, context, transformContext); + InsertIRQ(36, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ37")] - private static void IRQ37(Context context, TransformContext transformContext) + private static void IRQ37(Context context, Transform transform) { - InsertIRQ(37, context, transformContext); + InsertIRQ(37, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ38")] - private static void IRQ38(Context context, TransformContext transformContext) + private static void IRQ38(Context context, Transform transform) { - InsertIRQ(38, context, transformContext); + InsertIRQ(38, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ39")] - private static void IRQ39(Context context, TransformContext transformContext) + private static void IRQ39(Context context, Transform transform) { - InsertIRQ(39, context, transformContext); + InsertIRQ(39, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ40")] - private static void IRQ40(Context context, TransformContext transformContext) + private static void IRQ40(Context context, Transform transform) { - InsertIRQ(40, context, transformContext); + InsertIRQ(40, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ41")] - private static void IRQ41(Context context, TransformContext transformContext) + private static void IRQ41(Context context, Transform transform) { - InsertIRQ(41, context, transformContext); + InsertIRQ(41, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ42")] - private static void IRQ42(Context context, TransformContext transformContext) + private static void IRQ42(Context context, Transform transform) { - InsertIRQ(42, context, transformContext); + InsertIRQ(42, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ43")] - private static void IRQ43(Context context, TransformContext transformContext) + private static void IRQ43(Context context, Transform transform) { - InsertIRQ(43, context, transformContext); + InsertIRQ(43, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ44")] - private static void IRQ44(Context context, TransformContext transformContext) + private static void IRQ44(Context context, Transform transform) { - InsertIRQ(44, context, transformContext); + InsertIRQ(44, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ45")] - private static void IRQ45(Context context, TransformContext transformContext) + private static void IRQ45(Context context, Transform transform) { - InsertIRQ(45, context, transformContext); + InsertIRQ(45, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ46")] - private static void IRQ46(Context context, TransformContext transformContext) + private static void IRQ46(Context context, Transform transform) { - InsertIRQ(46, context, transformContext); + InsertIRQ(46, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ47")] - private static void IRQ47(Context context, TransformContext transformContext) + private static void IRQ47(Context context, Transform transform) { - InsertIRQ(47, context, transformContext); + InsertIRQ(47, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ48")] - private static void IRQ48(Context context, TransformContext transformContext) + private static void IRQ48(Context context, Transform transform) { - InsertIRQ(48, context, transformContext); + InsertIRQ(48, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ49")] - private static void IRQ49(Context context, TransformContext transformContext) + private static void IRQ49(Context context, Transform transform) { - InsertIRQ(49, context, transformContext); + InsertIRQ(49, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ50")] - private static void IRQ50(Context context, TransformContext transformContext) + private static void IRQ50(Context context, Transform transform) { - InsertIRQ(50, context, transformContext); + InsertIRQ(50, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ51")] - private static void IRQ51(Context context, TransformContext transformContext) + private static void IRQ51(Context context, Transform transform) { - InsertIRQ(51, context, transformContext); + InsertIRQ(51, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ52")] - private static void IRQ52(Context context, TransformContext transformContext) + private static void IRQ52(Context context, Transform transform) { - InsertIRQ(52, context, transformContext); + InsertIRQ(52, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ53")] - private static void IRQ53(Context context, TransformContext transformContext) + private static void IRQ53(Context context, Transform transform) { - InsertIRQ(53, context, transformContext); + InsertIRQ(53, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ54")] - private static void IRQ54(Context context, TransformContext transformContext) + private static void IRQ54(Context context, Transform transform) { - InsertIRQ(54, context, transformContext); + InsertIRQ(54, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ55")] - private static void IRQ55(Context context, TransformContext transformContext) + private static void IRQ55(Context context, Transform transform) { - InsertIRQ(55, context, transformContext); + InsertIRQ(55, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ56")] - private static void IRQ56(Context context, TransformContext transformContext) + private static void IRQ56(Context context, Transform transform) { - InsertIRQ(56, context, transformContext); + InsertIRQ(56, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ57")] - private static void IRQ57(Context context, TransformContext transformContext) + private static void IRQ57(Context context, Transform transform) { - InsertIRQ(57, context, transformContext); + InsertIRQ(57, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ58")] - private static void IRQ58(Context context, TransformContext transformContext) + private static void IRQ58(Context context, Transform transform) { - InsertIRQ(58, context, transformContext); + InsertIRQ(58, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ59")] - private static void IRQ59(Context context, TransformContext transformContext) + private static void IRQ59(Context context, Transform transform) { - InsertIRQ(59, context, transformContext); + InsertIRQ(59, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ60")] - private static void IRQ60(Context context, TransformContext transformContext) + private static void IRQ60(Context context, Transform transform) { - InsertIRQ(60, context, transformContext); + InsertIRQ(60, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ61")] - private static void IRQ61(Context context, TransformContext transformContext) + private static void IRQ61(Context context, Transform transform) { - InsertIRQ(61, context, transformContext); + InsertIRQ(61, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ62")] - private static void IRQ62(Context context, TransformContext transformContext) + private static void IRQ62(Context context, Transform transform) { - InsertIRQ(62, context, transformContext); + InsertIRQ(62, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ63")] - private static void IRQ63(Context context, TransformContext transformContext) + private static void IRQ63(Context context, Transform transform) { - InsertIRQ(63, context, transformContext); + InsertIRQ(63, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ64")] - private static void IRQ64(Context context, TransformContext transformContext) + private static void IRQ64(Context context, Transform transform) { - InsertIRQ(64, context, transformContext); + InsertIRQ(64, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ65")] - private static void IRQ65(Context context, TransformContext transformContext) + private static void IRQ65(Context context, Transform transform) { - InsertIRQ(65, context, transformContext); + InsertIRQ(65, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ66")] - private static void IRQ66(Context context, TransformContext transformContext) + private static void IRQ66(Context context, Transform transform) { - InsertIRQ(66, context, transformContext); + InsertIRQ(66, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ67")] - private static void IRQ67(Context context, TransformContext transformContext) + private static void IRQ67(Context context, Transform transform) { - InsertIRQ(67, context, transformContext); + InsertIRQ(67, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ68")] - private static void IRQ68(Context context, TransformContext transformContext) + private static void IRQ68(Context context, Transform transform) { - InsertIRQ(68, context, transformContext); + InsertIRQ(68, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ69")] - private static void IRQ69(Context context, TransformContext transformContext) + private static void IRQ69(Context context, Transform transform) { - InsertIRQ(69, context, transformContext); + InsertIRQ(69, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ70")] - private static void IRQ70(Context context, TransformContext transformContext) + private static void IRQ70(Context context, Transform transform) { - InsertIRQ(70, context, transformContext); + InsertIRQ(70, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ71")] - private static void IRQ71(Context context, TransformContext transformContext) + private static void IRQ71(Context context, Transform transform) { - InsertIRQ(71, context, transformContext); + InsertIRQ(71, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ72")] - private static void IRQ72(Context context, TransformContext transformContext) + private static void IRQ72(Context context, Transform transform) { - InsertIRQ(72, context, transformContext); + InsertIRQ(72, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ73")] - private static void IRQ73(Context context, TransformContext transformContext) + private static void IRQ73(Context context, Transform transform) { - InsertIRQ(73, context, transformContext); + InsertIRQ(73, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ74")] - private static void IRQ74(Context context, TransformContext transformContext) + private static void IRQ74(Context context, Transform transform) { - InsertIRQ(74, context, transformContext); + InsertIRQ(74, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ75")] - private static void IRQ75(Context context, TransformContext transformContext) + private static void IRQ75(Context context, Transform transform) { - InsertIRQ(75, context, transformContext); + InsertIRQ(75, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ76")] - private static void IRQ76(Context context, TransformContext transformContext) + private static void IRQ76(Context context, Transform transform) { - InsertIRQ(76, context, transformContext); + InsertIRQ(76, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ77")] - private static void IRQ77(Context context, TransformContext transformContext) + private static void IRQ77(Context context, Transform transform) { - InsertIRQ(77, context, transformContext); + InsertIRQ(77, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ78")] - private static void IRQ78(Context context, TransformContext transformContext) + private static void IRQ78(Context context, Transform transform) { - InsertIRQ(78, context, transformContext); + InsertIRQ(78, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ79")] - private static void IRQ79(Context context, TransformContext transformContext) + private static void IRQ79(Context context, Transform transform) { - InsertIRQ(79, context, transformContext); + InsertIRQ(79, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ80")] - private static void IRQ80(Context context, TransformContext transformContext) + private static void IRQ80(Context context, Transform transform) { - InsertIRQ(80, context, transformContext); + InsertIRQ(80, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ81")] - private static void IRQ81(Context context, TransformContext transformContext) + private static void IRQ81(Context context, Transform transform) { - InsertIRQ(81, context, transformContext); + InsertIRQ(81, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ82")] - private static void IRQ82(Context context, TransformContext transformContext) + private static void IRQ82(Context context, Transform transform) { - InsertIRQ(82, context, transformContext); + InsertIRQ(82, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ83")] - private static void IRQ83(Context context, TransformContext transformContext) + private static void IRQ83(Context context, Transform transform) { - InsertIRQ(83, context, transformContext); + InsertIRQ(83, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ84")] - private static void IRQ84(Context context, TransformContext transformContext) + private static void IRQ84(Context context, Transform transform) { - InsertIRQ(84, context, transformContext); + InsertIRQ(84, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ85")] - private static void IRQ85(Context context, TransformContext transformContext) + private static void IRQ85(Context context, Transform transform) { - InsertIRQ(85, context, transformContext); + InsertIRQ(85, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ86")] - private static void IRQ86(Context context, TransformContext transformContext) + private static void IRQ86(Context context, Transform transform) { - InsertIRQ(86, context, transformContext); + InsertIRQ(86, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ87")] - private static void IRQ87(Context context, TransformContext transformContext) + private static void IRQ87(Context context, Transform transform) { - InsertIRQ(87, context, transformContext); + InsertIRQ(87, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ88")] - private static void IRQ88(Context context, TransformContext transformContext) + private static void IRQ88(Context context, Transform transform) { - InsertIRQ(88, context, transformContext); + InsertIRQ(88, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ89")] - private static void IRQ89(Context context, TransformContext transformContext) + private static void IRQ89(Context context, Transform transform) { - InsertIRQ(89, context, transformContext); + InsertIRQ(89, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ90")] - private static void IRQ90(Context context, TransformContext transformContext) + private static void IRQ90(Context context, Transform transform) { - InsertIRQ(90, context, transformContext); + InsertIRQ(90, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ91")] - private static void IRQ91(Context context, TransformContext transformContext) + private static void IRQ91(Context context, Transform transform) { - InsertIRQ(91, context, transformContext); + InsertIRQ(91, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ92")] - private static void IRQ92(Context context, TransformContext transformContext) + private static void IRQ92(Context context, Transform transform) { - InsertIRQ(92, context, transformContext); + InsertIRQ(92, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ93")] - private static void IRQ93(Context context, TransformContext transformContext) + private static void IRQ93(Context context, Transform transform) { - InsertIRQ(93, context, transformContext); + InsertIRQ(93, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ94")] - private static void IRQ94(Context context, TransformContext transformContext) + private static void IRQ94(Context context, Transform transform) { - InsertIRQ(94, context, transformContext); + InsertIRQ(94, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ95")] - private static void IRQ95(Context context, TransformContext transformContext) + private static void IRQ95(Context context, Transform transform) { - InsertIRQ(95, context, transformContext); + InsertIRQ(95, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ96")] - private static void IRQ96(Context context, TransformContext transformContext) + private static void IRQ96(Context context, Transform transform) { - InsertIRQ(96, context, transformContext); + InsertIRQ(96, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ97")] - private static void IRQ97(Context context, TransformContext transformContext) + private static void IRQ97(Context context, Transform transform) { - InsertIRQ(97, context, transformContext); + InsertIRQ(97, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ98")] - private static void IRQ98(Context context, TransformContext transformContext) + private static void IRQ98(Context context, Transform transform) { - InsertIRQ(98, context, transformContext); + InsertIRQ(98, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ99")] - private static void IRQ99(Context context, TransformContext transformContext) + private static void IRQ99(Context context, Transform transform) { - InsertIRQ(99, context, transformContext); + InsertIRQ(99, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ100")] - private static void IRQ100(Context context, TransformContext transformContext) + private static void IRQ100(Context context, Transform transform) { - InsertIRQ(100, context, transformContext); + InsertIRQ(100, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ101")] - private static void IRQ101(Context context, TransformContext transformContext) + private static void IRQ101(Context context, Transform transform) { - InsertIRQ(101, context, transformContext); + InsertIRQ(101, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ102")] - private static void IRQ102(Context context, TransformContext transformContext) + private static void IRQ102(Context context, Transform transform) { - InsertIRQ(102, context, transformContext); + InsertIRQ(102, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ103")] - private static void IRQ103(Context context, TransformContext transformContext) + private static void IRQ103(Context context, Transform transform) { - InsertIRQ(103, context, transformContext); + InsertIRQ(103, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ104")] - private static void IRQ104(Context context, TransformContext transformContext) + private static void IRQ104(Context context, Transform transform) { - InsertIRQ(104, context, transformContext); + InsertIRQ(104, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ105")] - private static void IRQ105(Context context, TransformContext transformContext) + private static void IRQ105(Context context, Transform transform) { - InsertIRQ(105, context, transformContext); + InsertIRQ(105, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ106")] - private static void IRQ106(Context context, TransformContext transformContext) + private static void IRQ106(Context context, Transform transform) { - InsertIRQ(106, context, transformContext); + InsertIRQ(106, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ107")] - private static void IRQ107(Context context, TransformContext transformContext) + private static void IRQ107(Context context, Transform transform) { - InsertIRQ(107, context, transformContext); + InsertIRQ(107, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ108")] - private static void IRQ108(Context context, TransformContext transformContext) + private static void IRQ108(Context context, Transform transform) { - InsertIRQ(108, context, transformContext); + InsertIRQ(108, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ109")] - private static void IRQ109(Context context, TransformContext transformContext) + private static void IRQ109(Context context, Transform transform) { - InsertIRQ(109, context, transformContext); + InsertIRQ(109, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ110")] - private static void IRQ110(Context context, TransformContext transformContext) + private static void IRQ110(Context context, Transform transform) { - InsertIRQ(110, context, transformContext); + InsertIRQ(110, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ111")] - private static void IRQ111(Context context, TransformContext transformContext) + private static void IRQ111(Context context, Transform transform) { - InsertIRQ(111, context, transformContext); + InsertIRQ(111, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ112")] - private static void IRQ112(Context context, TransformContext transformContext) + private static void IRQ112(Context context, Transform transform) { - InsertIRQ(112, context, transformContext); + InsertIRQ(112, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ113")] - private static void IRQ113(Context context, TransformContext transformContext) + private static void IRQ113(Context context, Transform transform) { - InsertIRQ(113, context, transformContext); + InsertIRQ(113, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ114")] - private static void IRQ114(Context context, TransformContext transformContext) + private static void IRQ114(Context context, Transform transform) { - InsertIRQ(114, context, transformContext); + InsertIRQ(114, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ115")] - private static void IRQ115(Context context, TransformContext transformContext) + private static void IRQ115(Context context, Transform transform) { - InsertIRQ(115, context, transformContext); + InsertIRQ(115, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ116")] - private static void IRQ116(Context context, TransformContext transformContext) + private static void IRQ116(Context context, Transform transform) { - InsertIRQ(116, context, transformContext); + InsertIRQ(116, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ117")] - private static void IRQ117(Context context, TransformContext transformContext) + private static void IRQ117(Context context, Transform transform) { - InsertIRQ(117, context, transformContext); + InsertIRQ(117, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ118")] - private static void IRQ118(Context context, TransformContext transformContext) + private static void IRQ118(Context context, Transform transform) { - InsertIRQ(118, context, transformContext); + InsertIRQ(118, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ119")] - private static void IRQ119(Context context, TransformContext transformContext) + private static void IRQ119(Context context, Transform transform) { - InsertIRQ(119, context, transformContext); + InsertIRQ(119, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ120")] - private static void IRQ120(Context context, TransformContext transformContext) + private static void IRQ120(Context context, Transform transform) { - InsertIRQ(120, context, transformContext); + InsertIRQ(120, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ121")] - private static void IRQ121(Context context, TransformContext transformContext) + private static void IRQ121(Context context, Transform transform) { - InsertIRQ(121, context, transformContext); + InsertIRQ(121, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ122")] - private static void IRQ122(Context context, TransformContext transformContext) + private static void IRQ122(Context context, Transform transform) { - InsertIRQ(122, context, transformContext); + InsertIRQ(122, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ123")] - private static void IRQ123(Context context, TransformContext transformContext) + private static void IRQ123(Context context, Transform transform) { - InsertIRQ(123, context, transformContext); + InsertIRQ(123, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ124")] - private static void IRQ124(Context context, TransformContext transformContext) + private static void IRQ124(Context context, Transform transform) { - InsertIRQ(124, context, transformContext); + InsertIRQ(124, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ125")] - private static void IRQ125(Context context, TransformContext transformContext) + private static void IRQ125(Context context, Transform transform) { - InsertIRQ(125, context, transformContext); + InsertIRQ(125, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ126")] - private static void IRQ126(Context context, TransformContext transformContext) + private static void IRQ126(Context context, Transform transform) { - InsertIRQ(126, context, transformContext); + InsertIRQ(126, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ127")] - private static void IRQ127(Context context, TransformContext transformContext) + private static void IRQ127(Context context, Transform transform) { - InsertIRQ(127, context, transformContext); + InsertIRQ(127, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ128")] - private static void IRQ128(Context context, TransformContext transformContext) + private static void IRQ128(Context context, Transform transform) { - InsertIRQ(128, context, transformContext); + InsertIRQ(128, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ129")] - private static void IRQ129(Context context, TransformContext transformContext) + private static void IRQ129(Context context, Transform transform) { - InsertIRQ(129, context, transformContext); + InsertIRQ(129, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ130")] - private static void IRQ130(Context context, TransformContext transformContext) + private static void IRQ130(Context context, Transform transform) { - InsertIRQ(130, context, transformContext); + InsertIRQ(130, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ131")] - private static void IRQ131(Context context, TransformContext transformContext) + private static void IRQ131(Context context, Transform transform) { - InsertIRQ(131, context, transformContext); + InsertIRQ(131, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ132")] - private static void IRQ132(Context context, TransformContext transformContext) + private static void IRQ132(Context context, Transform transform) { - InsertIRQ(132, context, transformContext); + InsertIRQ(132, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ133")] - private static void IRQ133(Context context, TransformContext transformContext) + private static void IRQ133(Context context, Transform transform) { - InsertIRQ(133, context, transformContext); + InsertIRQ(133, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ134")] - private static void IRQ134(Context context, TransformContext transformContext) + private static void IRQ134(Context context, Transform transform) { - InsertIRQ(134, context, transformContext); + InsertIRQ(134, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ135")] - private static void IRQ135(Context context, TransformContext transformContext) + private static void IRQ135(Context context, Transform transform) { - InsertIRQ(135, context, transformContext); + InsertIRQ(135, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ136")] - private static void IRQ136(Context context, TransformContext transformContext) + private static void IRQ136(Context context, Transform transform) { - InsertIRQ(136, context, transformContext); + InsertIRQ(136, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ137")] - private static void IRQ137(Context context, TransformContext transformContext) + private static void IRQ137(Context context, Transform transform) { - InsertIRQ(137, context, transformContext); + InsertIRQ(137, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ138")] - private static void IRQ138(Context context, TransformContext transformContext) + private static void IRQ138(Context context, Transform transform) { - InsertIRQ(138, context, transformContext); + InsertIRQ(138, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ139")] - private static void IRQ139(Context context, TransformContext transformContext) + private static void IRQ139(Context context, Transform transform) { - InsertIRQ(139, context, transformContext); + InsertIRQ(139, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ140")] - private static void IRQ140(Context context, TransformContext transformContext) + private static void IRQ140(Context context, Transform transform) { - InsertIRQ(140, context, transformContext); + InsertIRQ(140, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ141")] - private static void IRQ141(Context context, TransformContext transformContext) + private static void IRQ141(Context context, Transform transform) { - InsertIRQ(141, context, transformContext); + InsertIRQ(141, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ142")] - private static void IRQ142(Context context, TransformContext transformContext) + private static void IRQ142(Context context, Transform transform) { - InsertIRQ(142, context, transformContext); + InsertIRQ(142, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ143")] - private static void IRQ143(Context context, TransformContext transformContext) + private static void IRQ143(Context context, Transform transform) { - InsertIRQ(143, context, transformContext); + InsertIRQ(143, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ144")] - private static void IRQ144(Context context, TransformContext transformContext) + private static void IRQ144(Context context, Transform transform) { - InsertIRQ(144, context, transformContext); + InsertIRQ(144, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ145")] - private static void IRQ145(Context context, TransformContext transformContext) + private static void IRQ145(Context context, Transform transform) { - InsertIRQ(145, context, transformContext); + InsertIRQ(145, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ146")] - private static void IRQ146(Context context, TransformContext transformContext) + private static void IRQ146(Context context, Transform transform) { - InsertIRQ(146, context, transformContext); + InsertIRQ(146, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ147")] - private static void IRQ147(Context context, TransformContext transformContext) + private static void IRQ147(Context context, Transform transform) { - InsertIRQ(147, context, transformContext); + InsertIRQ(147, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ148")] - private static void IRQ148(Context context, TransformContext transformContext) + private static void IRQ148(Context context, Transform transform) { - InsertIRQ(148, context, transformContext); + InsertIRQ(148, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ149")] - private static void IRQ149(Context context, TransformContext transformContext) + private static void IRQ149(Context context, Transform transform) { - InsertIRQ(149, context, transformContext); + InsertIRQ(149, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ150")] - private static void IRQ150(Context context, TransformContext transformContext) + private static void IRQ150(Context context, Transform transform) { - InsertIRQ(150, context, transformContext); + InsertIRQ(150, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ151")] - private static void IRQ151(Context context, TransformContext transformContext) + private static void IRQ151(Context context, Transform transform) { - InsertIRQ(151, context, transformContext); + InsertIRQ(151, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ152")] - private static void IRQ152(Context context, TransformContext transformContext) + private static void IRQ152(Context context, Transform transform) { - InsertIRQ(152, context, transformContext); + InsertIRQ(152, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ153")] - private static void IRQ153(Context context, TransformContext transformContext) + private static void IRQ153(Context context, Transform transform) { - InsertIRQ(153, context, transformContext); + InsertIRQ(153, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ154")] - private static void IRQ154(Context context, TransformContext transformContext) + private static void IRQ154(Context context, Transform transform) { - InsertIRQ(154, context, transformContext); + InsertIRQ(154, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ155")] - private static void IRQ155(Context context, TransformContext transformContext) + private static void IRQ155(Context context, Transform transform) { - InsertIRQ(155, context, transformContext); + InsertIRQ(155, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ156")] - private static void IRQ156(Context context, TransformContext transformContext) + private static void IRQ156(Context context, Transform transform) { - InsertIRQ(156, context, transformContext); + InsertIRQ(156, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ157")] - private static void IRQ157(Context context, TransformContext transformContext) + private static void IRQ157(Context context, Transform transform) { - InsertIRQ(157, context, transformContext); + InsertIRQ(157, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ158")] - private static void IRQ158(Context context, TransformContext transformContext) + private static void IRQ158(Context context, Transform transform) { - InsertIRQ(158, context, transformContext); + InsertIRQ(158, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ159")] - private static void IRQ159(Context context, TransformContext transformContext) + private static void IRQ159(Context context, Transform transform) { - InsertIRQ(159, context, transformContext); + InsertIRQ(159, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ160")] - private static void IRQ160(Context context, TransformContext transformContext) + private static void IRQ160(Context context, Transform transform) { - InsertIRQ(160, context, transformContext); + InsertIRQ(160, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ161")] - private static void IRQ161(Context context, TransformContext transformContext) + private static void IRQ161(Context context, Transform transform) { - InsertIRQ(161, context, transformContext); + InsertIRQ(161, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ162")] - private static void IRQ162(Context context, TransformContext transformContext) + private static void IRQ162(Context context, Transform transform) { - InsertIRQ(162, context, transformContext); + InsertIRQ(162, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ163")] - private static void IRQ163(Context context, TransformContext transformContext) + private static void IRQ163(Context context, Transform transform) { - InsertIRQ(163, context, transformContext); + InsertIRQ(163, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ164")] - private static void IRQ164(Context context, TransformContext transformContext) + private static void IRQ164(Context context, Transform transform) { - InsertIRQ(164, context, transformContext); + InsertIRQ(164, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ165")] - private static void IRQ165(Context context, TransformContext transformContext) + private static void IRQ165(Context context, Transform transform) { - InsertIRQ(165, context, transformContext); + InsertIRQ(165, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ166")] - private static void IRQ166(Context context, TransformContext transformContext) + private static void IRQ166(Context context, Transform transform) { - InsertIRQ(166, context, transformContext); + InsertIRQ(166, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ167")] - private static void IRQ167(Context context, TransformContext transformContext) + private static void IRQ167(Context context, Transform transform) { - InsertIRQ(167, context, transformContext); + InsertIRQ(167, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ168")] - private static void IRQ168(Context context, TransformContext transformContext) + private static void IRQ168(Context context, Transform transform) { - InsertIRQ(168, context, transformContext); + InsertIRQ(168, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ169")] - private static void IRQ169(Context context, TransformContext transformContext) + private static void IRQ169(Context context, Transform transform) { - InsertIRQ(169, context, transformContext); + InsertIRQ(169, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ170")] - private static void IRQ170(Context context, TransformContext transformContext) + private static void IRQ170(Context context, Transform transform) { - InsertIRQ(170, context, transformContext); + InsertIRQ(170, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ171")] - private static void IRQ171(Context context, TransformContext transformContext) + private static void IRQ171(Context context, Transform transform) { - InsertIRQ(171, context, transformContext); + InsertIRQ(171, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ172")] - private static void IRQ172(Context context, TransformContext transformContext) + private static void IRQ172(Context context, Transform transform) { - InsertIRQ(172, context, transformContext); + InsertIRQ(172, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ173")] - private static void IRQ173(Context context, TransformContext transformContext) + private static void IRQ173(Context context, Transform transform) { - InsertIRQ(173, context, transformContext); + InsertIRQ(173, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ174")] - private static void IRQ174(Context context, TransformContext transformContext) + private static void IRQ174(Context context, Transform transform) { - InsertIRQ(174, context, transformContext); + InsertIRQ(174, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ175")] - private static void IRQ175(Context context, TransformContext transformContext) + private static void IRQ175(Context context, Transform transform) { - InsertIRQ(175, context, transformContext); + InsertIRQ(175, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ176")] - private static void IRQ176(Context context, TransformContext transformContext) + private static void IRQ176(Context context, Transform transform) { - InsertIRQ(176, context, transformContext); + InsertIRQ(176, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ177")] - private static void IRQ177(Context context, TransformContext transformContext) + private static void IRQ177(Context context, Transform transform) { - InsertIRQ(177, context, transformContext); + InsertIRQ(177, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ178")] - private static void IRQ178(Context context, TransformContext transformContext) + private static void IRQ178(Context context, Transform transform) { - InsertIRQ(178, context, transformContext); + InsertIRQ(178, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ179")] - private static void IRQ179(Context context, TransformContext transformContext) + private static void IRQ179(Context context, Transform transform) { - InsertIRQ(179, context, transformContext); + InsertIRQ(179, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ180")] - private static void IRQ180(Context context, TransformContext transformContext) + private static void IRQ180(Context context, Transform transform) { - InsertIRQ(180, context, transformContext); + InsertIRQ(180, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ181")] - private static void IRQ181(Context context, TransformContext transformContext) + private static void IRQ181(Context context, Transform transform) { - InsertIRQ(181, context, transformContext); + InsertIRQ(181, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ182")] - private static void IRQ182(Context context, TransformContext transformContext) + private static void IRQ182(Context context, Transform transform) { - InsertIRQ(182, context, transformContext); + InsertIRQ(182, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ183")] - private static void IRQ183(Context context, TransformContext transformContext) + private static void IRQ183(Context context, Transform transform) { - InsertIRQ(183, context, transformContext); + InsertIRQ(183, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ184")] - private static void IRQ184(Context context, TransformContext transformContext) + private static void IRQ184(Context context, Transform transform) { - InsertIRQ(184, context, transformContext); + InsertIRQ(184, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ185")] - private static void IRQ185(Context context, TransformContext transformContext) + private static void IRQ185(Context context, Transform transform) { - InsertIRQ(185, context, transformContext); + InsertIRQ(185, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ186")] - private static void IRQ186(Context context, TransformContext transformContext) + private static void IRQ186(Context context, Transform transform) { - InsertIRQ(186, context, transformContext); + InsertIRQ(186, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ187")] - private static void IRQ187(Context context, TransformContext transformContext) + private static void IRQ187(Context context, Transform transform) { - InsertIRQ(187, context, transformContext); + InsertIRQ(187, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ188")] - private static void IRQ188(Context context, TransformContext transformContext) + private static void IRQ188(Context context, Transform transform) { - InsertIRQ(188, context, transformContext); + InsertIRQ(188, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ189")] - private static void IRQ189(Context context, TransformContext transformContext) + private static void IRQ189(Context context, Transform transform) { - InsertIRQ(189, context, transformContext); + InsertIRQ(189, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ190")] - private static void IRQ190(Context context, TransformContext transformContext) + private static void IRQ190(Context context, Transform transform) { - InsertIRQ(190, context, transformContext); + InsertIRQ(190, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ191")] - private static void IRQ191(Context context, TransformContext transformContext) + private static void IRQ191(Context context, Transform transform) { - InsertIRQ(191, context, transformContext); + InsertIRQ(191, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ192")] - private static void IRQ192(Context context, TransformContext transformContext) + private static void IRQ192(Context context, Transform transform) { - InsertIRQ(192, context, transformContext); + InsertIRQ(192, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ193")] - private static void IRQ193(Context context, TransformContext transformContext) + private static void IRQ193(Context context, Transform transform) { - InsertIRQ(193, context, transformContext); + InsertIRQ(193, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ194")] - private static void IRQ194(Context context, TransformContext transformContext) + private static void IRQ194(Context context, Transform transform) { - InsertIRQ(194, context, transformContext); + InsertIRQ(194, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ195")] - private static void IRQ195(Context context, TransformContext transformContext) + private static void IRQ195(Context context, Transform transform) { - InsertIRQ(195, context, transformContext); + InsertIRQ(195, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ196")] - private static void IRQ196(Context context, TransformContext transformContext) + private static void IRQ196(Context context, Transform transform) { - InsertIRQ(196, context, transformContext); + InsertIRQ(196, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ197")] - private static void IRQ197(Context context, TransformContext transformContext) + private static void IRQ197(Context context, Transform transform) { - InsertIRQ(197, context, transformContext); + InsertIRQ(197, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ198")] - private static void IRQ198(Context context, TransformContext transformContext) + private static void IRQ198(Context context, Transform transform) { - InsertIRQ(198, context, transformContext); + InsertIRQ(198, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ199")] - private static void IRQ199(Context context, TransformContext transformContext) + private static void IRQ199(Context context, Transform transform) { - InsertIRQ(199, context, transformContext); + InsertIRQ(199, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ200")] - private static void IRQ200(Context context, TransformContext transformContext) + private static void IRQ200(Context context, Transform transform) { - InsertIRQ(200, context, transformContext); + InsertIRQ(200, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ201")] - private static void IRQ201(Context context, TransformContext transformContext) + private static void IRQ201(Context context, Transform transform) { - InsertIRQ(201, context, transformContext); + InsertIRQ(201, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ202")] - private static void IRQ202(Context context, TransformContext transformContext) + private static void IRQ202(Context context, Transform transform) { - InsertIRQ(202, context, transformContext); + InsertIRQ(202, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ203")] - private static void IRQ203(Context context, TransformContext transformContext) + private static void IRQ203(Context context, Transform transform) { - InsertIRQ(203, context, transformContext); + InsertIRQ(203, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ204")] - private static void IRQ204(Context context, TransformContext transformContext) + private static void IRQ204(Context context, Transform transform) { - InsertIRQ(204, context, transformContext); + InsertIRQ(204, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ205")] - private static void IRQ205(Context context, TransformContext transformContext) + private static void IRQ205(Context context, Transform transform) { - InsertIRQ(205, context, transformContext); + InsertIRQ(205, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ206")] - private static void IRQ206(Context context, TransformContext transformContext) + private static void IRQ206(Context context, Transform transform) { - InsertIRQ(206, context, transformContext); + InsertIRQ(206, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ207")] - private static void IRQ207(Context context, TransformContext transformContext) + private static void IRQ207(Context context, Transform transform) { - InsertIRQ(207, context, transformContext); + InsertIRQ(207, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ208")] - private static void IRQ208(Context context, TransformContext transformContext) + private static void IRQ208(Context context, Transform transform) { - InsertIRQ(208, context, transformContext); + InsertIRQ(208, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ209")] - private static void IRQ209(Context context, TransformContext transformContext) + private static void IRQ209(Context context, Transform transform) { - InsertIRQ(209, context, transformContext); + InsertIRQ(209, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ210")] - private static void IRQ210(Context context, TransformContext transformContext) + private static void IRQ210(Context context, Transform transform) { - InsertIRQ(210, context, transformContext); + InsertIRQ(210, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ211")] - private static void IRQ211(Context context, TransformContext transformContext) + private static void IRQ211(Context context, Transform transform) { - InsertIRQ(211, context, transformContext); + InsertIRQ(211, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ212")] - private static void IRQ212(Context context, TransformContext transformContext) + private static void IRQ212(Context context, Transform transform) { - InsertIRQ(212, context, transformContext); + InsertIRQ(212, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ213")] - private static void IRQ213(Context context, TransformContext transformContext) + private static void IRQ213(Context context, Transform transform) { - InsertIRQ(213, context, transformContext); + InsertIRQ(213, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ214")] - private static void IRQ214(Context context, TransformContext transformContext) + private static void IRQ214(Context context, Transform transform) { - InsertIRQ(214, context, transformContext); + InsertIRQ(214, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ215")] - private static void IRQ215(Context context, TransformContext transformContext) + private static void IRQ215(Context context, Transform transform) { - InsertIRQ(215, context, transformContext); + InsertIRQ(215, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ216")] - private static void IRQ216(Context context, TransformContext transformContext) + private static void IRQ216(Context context, Transform transform) { - InsertIRQ(216, context, transformContext); + InsertIRQ(216, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ217")] - private static void IRQ217(Context context, TransformContext transformContext) + private static void IRQ217(Context context, Transform transform) { - InsertIRQ(217, context, transformContext); + InsertIRQ(217, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ218")] - private static void IRQ218(Context context, TransformContext transformContext) + private static void IRQ218(Context context, Transform transform) { - InsertIRQ(218, context, transformContext); + InsertIRQ(218, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ219")] - private static void IRQ219(Context context, TransformContext transformContext) + private static void IRQ219(Context context, Transform transform) { - InsertIRQ(219, context, transformContext); + InsertIRQ(219, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ220")] - private static void IRQ220(Context context, TransformContext transformContext) + private static void IRQ220(Context context, Transform transform) { - InsertIRQ(220, context, transformContext); + InsertIRQ(220, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ221")] - private static void IRQ221(Context context, TransformContext transformContext) + private static void IRQ221(Context context, Transform transform) { - InsertIRQ(221, context, transformContext); + InsertIRQ(221, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ222")] - private static void IRQ222(Context context, TransformContext transformContext) + private static void IRQ222(Context context, Transform transform) { - InsertIRQ(222, context, transformContext); + InsertIRQ(222, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ223")] - private static void IRQ223(Context context, TransformContext transformContext) + private static void IRQ223(Context context, Transform transform) { - InsertIRQ(223, context, transformContext); + InsertIRQ(223, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ224")] - private static void IRQ224(Context context, TransformContext transformContext) + private static void IRQ224(Context context, Transform transform) { - InsertIRQ(224, context, transformContext); + InsertIRQ(224, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ225")] - private static void IRQ225(Context context, TransformContext transformContext) + private static void IRQ225(Context context, Transform transform) { - InsertIRQ(225, context, transformContext); + InsertIRQ(225, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ226")] - private static void IRQ226(Context context, TransformContext transformContext) + private static void IRQ226(Context context, Transform transform) { - InsertIRQ(226, context, transformContext); + InsertIRQ(226, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ227")] - private static void IRQ227(Context context, TransformContext transformContext) + private static void IRQ227(Context context, Transform transform) { - InsertIRQ(227, context, transformContext); + InsertIRQ(227, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ228")] - private static void IRQ228(Context context, TransformContext transformContext) + private static void IRQ228(Context context, Transform transform) { - InsertIRQ(228, context, transformContext); + InsertIRQ(228, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ229")] - private static void IRQ229(Context context, TransformContext transformContext) + private static void IRQ229(Context context, Transform transform) { - InsertIRQ(229, context, transformContext); + InsertIRQ(229, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ230")] - private static void IRQ230(Context context, TransformContext transformContext) + private static void IRQ230(Context context, Transform transform) { - InsertIRQ(230, context, transformContext); + InsertIRQ(230, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ231")] - private static void IRQ231(Context context, TransformContext transformContext) + private static void IRQ231(Context context, Transform transform) { - InsertIRQ(231, context, transformContext); + InsertIRQ(231, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ232")] - private static void IRQ232(Context context, TransformContext transformContext) + private static void IRQ232(Context context, Transform transform) { - InsertIRQ(232, context, transformContext); + InsertIRQ(232, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ233")] - private static void IRQ233(Context context, TransformContext transformContext) + private static void IRQ233(Context context, Transform transform) { - InsertIRQ(233, context, transformContext); + InsertIRQ(233, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ234")] - private static void IRQ234(Context context, TransformContext transformContext) + private static void IRQ234(Context context, Transform transform) { - InsertIRQ(234, context, transformContext); + InsertIRQ(234, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ235")] - private static void IRQ235(Context context, TransformContext transformContext) + private static void IRQ235(Context context, Transform transform) { - InsertIRQ(235, context, transformContext); + InsertIRQ(235, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ236")] - private static void IRQ236(Context context, TransformContext transformContext) + private static void IRQ236(Context context, Transform transform) { - InsertIRQ(236, context, transformContext); + InsertIRQ(236, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ237")] - private static void IRQ237(Context context, TransformContext transformContext) + private static void IRQ237(Context context, Transform transform) { - InsertIRQ(237, context, transformContext); + InsertIRQ(237, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ238")] - private static void IRQ238(Context context, TransformContext transformContext) + private static void IRQ238(Context context, Transform transform) { - InsertIRQ(238, context, transformContext); + InsertIRQ(238, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ239")] - private static void IRQ239(Context context, TransformContext transformContext) + private static void IRQ239(Context context, Transform transform) { - InsertIRQ(239, context, transformContext); + InsertIRQ(239, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ240")] - private static void IRQ240(Context context, TransformContext transformContext) + private static void IRQ240(Context context, Transform transform) { - InsertIRQ(240, context, transformContext); + InsertIRQ(240, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ241")] - private static void IRQ241(Context context, TransformContext transformContext) + private static void IRQ241(Context context, Transform transform) { - InsertIRQ(241, context, transformContext); + InsertIRQ(241, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ242")] - private static void IRQ242(Context context, TransformContext transformContext) + private static void IRQ242(Context context, Transform transform) { - InsertIRQ(242, context, transformContext); + InsertIRQ(242, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ243")] - private static void IRQ243(Context context, TransformContext transformContext) + private static void IRQ243(Context context, Transform transform) { - InsertIRQ(243, context, transformContext); + InsertIRQ(243, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ244")] - private static void IRQ244(Context context, TransformContext transformContext) + private static void IRQ244(Context context, Transform transform) { - InsertIRQ(244, context, transformContext); + InsertIRQ(244, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ245")] - private static void IRQ245(Context context, TransformContext transformContext) + private static void IRQ245(Context context, Transform transform) { - InsertIRQ(245, context, transformContext); + InsertIRQ(245, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ246")] - private static void IRQ246(Context context, TransformContext transformContext) + private static void IRQ246(Context context, Transform transform) { - InsertIRQ(246, context, transformContext); + InsertIRQ(246, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ247")] - private static void IRQ247(Context context, TransformContext transformContext) + private static void IRQ247(Context context, Transform transform) { - InsertIRQ(247, context, transformContext); + InsertIRQ(247, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ248")] - private static void IRQ248(Context context, TransformContext transformContext) + private static void IRQ248(Context context, Transform transform) { - InsertIRQ(248, context, transformContext); + InsertIRQ(248, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ249")] - private static void IRQ249(Context context, TransformContext transformContext) + private static void IRQ249(Context context, Transform transform) { - InsertIRQ(249, context, transformContext); + InsertIRQ(249, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ250")] - private static void IRQ250(Context context, TransformContext transformContext) + private static void IRQ250(Context context, Transform transform) { - InsertIRQ(250, context, transformContext); + InsertIRQ(250, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ251")] - private static void IRQ251(Context context, TransformContext transformContext) + private static void IRQ251(Context context, Transform transform) { - InsertIRQ(251, context, transformContext); + InsertIRQ(251, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ252")] - private static void IRQ252(Context context, TransformContext transformContext) + private static void IRQ252(Context context, Transform transform) { - InsertIRQ(252, context, transformContext); + InsertIRQ(252, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ253")] - private static void IRQ253(Context context, TransformContext transformContext) + private static void IRQ253(Context context, Transform transform) { - InsertIRQ(253, context, transformContext); + InsertIRQ(253, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ254")] - private static void IRQ254(Context context, TransformContext transformContext) + private static void IRQ254(Context context, Transform transform) { - InsertIRQ(254, context, transformContext); + InsertIRQ(254, context, transform); } [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::IRQ255")] - private static void IRQ255(Context context, TransformContext transformContext) + private static void IRQ255(Context context, Transform transform) { - InsertIRQ(255, context, transformContext); + InsertIRQ(255, context, transform); } } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/In16.cs b/Source/Mosa.Compiler.x64/Intrinsic/In16.cs index e5cf1c2f76..9ac98232a1 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/In16.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/In16.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::In16")] - private static void In16(Context context, TransformContext transformContext) + private static void In16(Context context, Transform transform) { - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/In32.cs b/Source/Mosa.Compiler.x64/Intrinsic/In32.cs index 14f1c8b2ea..32681a0237 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/In32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/In32.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::In32")] - private static void In32(Context context, TransformContext transformContext) + private static void In32(Context context, Transform transform) { - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/In8.cs b/Source/Mosa.Compiler.x64/Intrinsic/In8.cs index a0d64ed897..b6d5a202d7 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/In8.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/In8.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::In8")] - private static void In8(Context context, TransformContext transformContext) + private static void In8(Context context, Transform transform) { - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Int.cs b/Source/Mosa.Compiler.x64/Intrinsic/Int.cs index 4c1f8b7757..c0694a694a 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Int.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Int.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Int")] - private static void Int(Context context, TransformContext transformContext) + private static void Int(Context context, Transform transform) { Helper.FoldOperand1ToConstant(context); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/InterruptReturn.cs b/Source/Mosa.Compiler.x64/Intrinsic/InterruptReturn.cs index d4531f9250..58cd08f8bc 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/InterruptReturn.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/InterruptReturn.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::InterruptReturn")] - private static void InterruptReturn(Context context, TransformContext transformContext) + private static void InterruptReturn(Context context, Transform transform) { Operand v0 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Invlpg.cs b/Source/Mosa.Compiler.x64/Intrinsic/Invlpg.cs index 0bb04cdadb..6546599635 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Invlpg.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Invlpg.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Invlpg")] - private static void Invlpg(Context context, TransformContext transformContext) + private static void Invlpg(Context context, Transform transform) { //Debug.Assert(context.Operand1.IsConstant); context.SetInstruction(X64.Invlpg, null, context.Operand1); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Jmp.cs b/Source/Mosa.Compiler.x64/Intrinsic/Jmp.cs index b6170d5ae0..106d0458c4 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Jmp.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Jmp.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Jmp")] - private static void Jmp(Context context, TransformContext transformContext) + private static void Jmp(Context context, Transform transform) { context.SetInstruction(X64.JmpExternal, null, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Lgdt.cs b/Source/Mosa.Compiler.x64/Intrinsic/Lgdt.cs index bb9b3a2b70..5f45c62a5b 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Lgdt.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Lgdt.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Lgdt")] - private static void Lgdt(Context context, TransformContext transformContext) + private static void Lgdt(Context context, Transform transform) { context.SetInstruction(X64.Lgdt, null, context.Operand1); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Lidt.cs b/Source/Mosa.Compiler.x64/Intrinsic/Lidt.cs index 2b79910be4..c3a7f04651 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Lidt.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Lidt.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Lidt")] - private static void Lidt(Context context, TransformContext transformContext) + private static void Lidt(Context context, Transform transform) { //Helper.FoldOperand1ToConstant(context); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Memclr256.cs b/Source/Mosa.Compiler.x64/Intrinsic/Memclr256.cs index 52fb174f99..76c4d703f4 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Memclr256.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Memclr256.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Memclr256")] - private static void Memclr256(Context context, TransformContext transformContext) + private static void Memclr256(Context context, Transform transform) { var dest = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Memcpy256.cs b/Source/Mosa.Compiler.x64/Intrinsic/Memcpy256.cs index 390921ee44..d398c16f51 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Memcpy256.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Memcpy256.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Memcpy256")] - private static void Memcpy256(Context context, TransformContext transformContext) + private static void Memcpy256(Context context, Transform transform) { var dest = context.Operand1; var src = context.Operand2; - var v0 = transformContext.VirtualRegisters.Allocate64(); - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v0 = transform.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); var offset16 = Operand.Constant64_16; context.SetInstruction(X64.MovupsLoad, v0, dest, Operand.Constant64_0); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Nop.cs b/Source/Mosa.Compiler.x64/Intrinsic/Nop.cs index 83beafe182..eaa23dc7dc 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Nop.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Nop.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Nop")] - private static void Nop(Context context, TransformContext transformContext) + private static void Nop(Context context, Transform transform) { context.SetInstruction(X64.Nop); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Out16.cs b/Source/Mosa.Compiler.x64/Intrinsic/Out16.cs index 6d02db962c..ee6de40722 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Out16.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Out16.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Out16")] - private static void Out16(Context context, TransformContext transformContext) + private static void Out16(Context context, Transform transform) { context.SetInstruction(X64.Out16, null, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Out32.cs b/Source/Mosa.Compiler.x64/Intrinsic/Out32.cs index 1015a76a5b..9445f3fadc 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Out32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Out32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Out32")] - private static void Out32(Context context, TransformContext transformContext) + private static void Out32(Context context, Transform transform) { context.SetInstruction(X64.Out32, null, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Out8.cs b/Source/Mosa.Compiler.x64/Intrinsic/Out8.cs index 073124e0f2..a5328ede74 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Out8.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Out8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Out8")] - private static void Out8(Context context, TransformContext transformContext) + private static void Out8(Context context, Transform transform) { context.SetInstruction(X64.Out8, null, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Pause.cs b/Source/Mosa.Compiler.x64/Intrinsic/Pause.cs index 3b498ee147..af051b348a 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Pause.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Pause.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Pause")] - private static void Pause(Context context, TransformContext transformContext) + private static void Pause(Context context, Transform transform) { context.SetInstruction(X64.Pause); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/RdMSR.cs b/Source/Mosa.Compiler.x64/Intrinsic/RdMSR.cs index 56d6d06368..ed00f94a68 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/RdMSR.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/RdMSR.cs @@ -10,12 +10,12 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::RdMSR")] - private static void RdMSR(Context context, TransformContext transformContext) + private static void RdMSR(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; - transformContext.SplitOperand(result, out Operand resultLow, out Operand resultHigh); + transform.SplitOperand(result, out Operand resultLow, out Operand resultHigh); var EAX = Operand.CreateCPURegister64(CPURegister.RAX); var EDX = Operand.CreateCPURegister64(CPURegister.RDX); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Remainder.cs b/Source/Mosa.Compiler.x64/Intrinsic/Remainder.cs index 4fa2119793..f61649f0c1 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Remainder.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Remainder.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Remainder")] - private static void Remainder(Context context, TransformContext transformContext) + private static void Remainder(Context context, Transform transform) { var result = context.Result; var dividend = context.Operand1; @@ -18,9 +18,9 @@ private static void Remainder(Context context, TransformContext transformContext if (result.IsR8) { - var xmm1 = transformContext.VirtualRegisters.AllocateR8(); - var xmm2 = transformContext.VirtualRegisters.AllocateR8(); - var xmm3 = transformContext.VirtualRegisters.AllocateR8(); + var xmm1 = transform.VirtualRegisters.AllocateR8(); + var xmm2 = transform.VirtualRegisters.AllocateR8(); + var xmm3 = transform.VirtualRegisters.AllocateR8(); context.SetInstruction(X64.Divsd, xmm1, dividend, divisor); context.AppendInstruction(X64.Roundsd, xmm2, xmm1, Operand.Constant64_3); @@ -29,9 +29,9 @@ private static void Remainder(Context context, TransformContext transformContext } else { - var xmm1 = transformContext.VirtualRegisters.AllocateR4(); - var xmm2 = transformContext.VirtualRegisters.AllocateR4(); - var xmm3 = transformContext.VirtualRegisters.AllocateR4(); + var xmm1 = transform.VirtualRegisters.AllocateR4(); + var xmm2 = transform.VirtualRegisters.AllocateR4(); + var xmm3 = transform.VirtualRegisters.AllocateR4(); context.SetInstruction(X64.Divss, xmm1, dividend, divisor); context.AppendInstruction(X64.Roundss, xmm2, xmm1, Operand.Constant64_3); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Negative.cs b/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Negative.cs index 447ad2440c..b2103081e5 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Negative.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Negative.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Roundsd2Negative")] - private static void Roundsd2Negative(Context context, TransformContext transformContext) + private static void Roundsd2Negative(Context context, Transform transform) { context.SetInstruction(X64.Roundsd, context.Result, context.Operand1, Operand.Constant64_1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Positive.cs b/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Positive.cs index a2f0c699eb..a7074c79ba 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Positive.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Roundsd2Positive.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Roundsd2Positive")] - private static void Roundsd2Positive(Context context, TransformContext transformContext) + private static void Roundsd2Positive(Context context, Transform transform) { context.SetInstruction(X64.Roundsd, context.Result, context.Operand1, Operand.Constant64_2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Negative.cs b/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Negative.cs index cb99bd9a14..d14fda845b 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Negative.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Negative.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Roundss2Negative")] - private static void Roundss2Negative(Context context, TransformContext transformContext) + private static void Roundss2Negative(Context context, Transform transform) { context.SetInstruction(X64.Roundss, context.Result, context.Operand1, Operand.Constant64_1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Positive.cs b/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Positive.cs index 470062ce2c..88ead30d44 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Positive.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Roundss2Positive.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Roundss2Positive")] - private static void Roundss2Positive(Context context, TransformContext transformContext) + private static void Roundss2Positive(Context context, Transform transform) { context.SetInstruction(X64.Roundss, context.Result, context.Operand1, Operand.Constant64_2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Set16.cs b/Source/Mosa.Compiler.x64/Intrinsic/Set16.cs index 23ae972599..b68bb435b4 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Set16.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Set16.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Set16")] - private static void Set16(Context context, TransformContext transformContext) + private static void Set16(Context context, Transform transform) { context.SetInstruction(X64.MovStore16, null, context.Operand1, Operand.Constant32_0, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Set32.cs b/Source/Mosa.Compiler.x64/Intrinsic/Set32.cs index 4e31dfddde..055bcb82a1 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Set32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Set32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Set32")] - private static void Set32(Context context, TransformContext transformContext) + private static void Set32(Context context, Transform transform) { context.SetInstruction(X64.MovStore32, null, context.Operand1, Operand.Constant32_0, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Set8.cs b/Source/Mosa.Compiler.x64/Intrinsic/Set8.cs index b330313a1b..9afadcde0d 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Set8.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Set8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Set8")] - private static void Set8(Context context, TransformContext transformContext) + private static void Set8(Context context, Transform transform) { context.SetInstruction(X64.MovStore8, null, context.Operand1, Operand.Constant32_0, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/SetCR0.cs b/Source/Mosa.Compiler.x64/Intrinsic/SetCR0.cs index cf5a2e36ed..37cb377759 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/SetCR0.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/SetCR0.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::SetCR0")] - private static void SetCR0(Context context, TransformContext transformContext) + private static void SetCR0(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/SetCR2.cs b/Source/Mosa.Compiler.x64/Intrinsic/SetCR2.cs index 35359d9f70..770b57f39e 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/SetCR2.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/SetCR2.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::SetCR2")] - private static void SetCR2(Context context, TransformContext transformContext) + private static void SetCR2(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/SetCR3.cs b/Source/Mosa.Compiler.x64/Intrinsic/SetCR3.cs index f9341241e1..8b38536108 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/SetCR3.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/SetCR3.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::SetCR3")] - private static void SetCR3(Context context, TransformContext transformContext) + private static void SetCR3(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/SetCR4.cs b/Source/Mosa.Compiler.x64/Intrinsic/SetCR4.cs index ff7e755ab6..60cf80f5c0 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/SetCR4.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/SetCR4.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::SetCR4")] - private static void SetCR4(Context context, TransformContext transformContext) + private static void SetCR4(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/SetFS.cs b/Source/Mosa.Compiler.x64/Intrinsic/SetFS.cs index dd6289ec93..c9326d09b5 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/SetFS.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/SetFS.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::SetFS")] - private static void SetFS(Context context, TransformContext transformContext) + private static void SetFS(Context context, Transform transform) { context.SetInstruction(X64.MovStoreSeg64, Operand.CreateCPURegister64(CPURegister.FS), context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/SetSegments.cs b/Source/Mosa.Compiler.x64/Intrinsic/SetSegments.cs index 7422efb3a2..24c9b69056 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/SetSegments.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/SetSegments.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::SetSegments")] - private static void SetSegments(Context context, TransformContext transformContext) + private static void SetSegments(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Sqrtsd.cs b/Source/Mosa.Compiler.x64/Intrinsic/Sqrtsd.cs index 12cfb748a8..f66b43be4e 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Sqrtsd.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Sqrtsd.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Sqrtsd")] - private static void Sqrtsd(Context context, TransformContext transformContext) + private static void Sqrtsd(Context context, Transform transform) { context.SetInstruction(X64.Sqrtsd, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Sqrtss.cs b/Source/Mosa.Compiler.x64/Intrinsic/Sqrtss.cs index 7bc5bb7a0a..27931fb942 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Sqrtss.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Sqrtss.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Sqrtss")] - private static void Sqrtss(Context context, TransformContext transformContext) + private static void Sqrtss(Context context, Transform transform) { context.SetInstruction(X64.Sqrtss, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/Sti.cs b/Source/Mosa.Compiler.x64/Intrinsic/Sti.cs index fe57d13e74..9e25327744 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/Sti.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/Sti.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::Sti")] - private static void Sti(Context context, TransformContext transformContext) + private static void Sti(Context context, Transform transform) { context.SetInstruction(X64.Sti); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/WrMSR.cs b/Source/Mosa.Compiler.x64/Intrinsic/WrMSR.cs index 233ba8d19c..e10497408e 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/WrMSR.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/WrMSR.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::WrMSR")] - private static void WrMSR(Context context, TransformContext transformContext) + private static void WrMSR(Context context, Transform transform) { - transformContext.SplitOperand(context.Operand2, out Operand resultLow, out Operand resultHigh); + transform.SplitOperand(context.Operand2, out Operand resultLow, out Operand resultHigh); context.SetInstruction(X64.WrMSR, null, context.Operand1, resultLow, resultHigh); } diff --git a/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad32.cs b/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad32.cs index b0c2e62e7f..f48fe25e0e 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad32.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::XAddLoad32")] - private static void XAddLoad32(Context context, TransformContext transformContext) + private static void XAddLoad32(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; var result = context.Result; - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); context.SetInstruction(X64.Mov32, v1, value); context.AppendInstruction(X64.Lock); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad64.cs b/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad64.cs index a7e54d746e..89fa3102bb 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad64.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/XAddLoad64.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::XAddLoad64")] - private static void XAddLoad64(Context context, TransformContext transformContext) + private static void XAddLoad64(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; var result = context.Result; - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); context.SetInstruction(X64.Mov64, v1, value); context.AppendInstruction(X64.Lock); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad32.cs b/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad32.cs index 65dfaf45a9..f6031b84b7 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad32.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad32.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::XChgLoad32")] - private static void XChgLoad32(Context context, TransformContext transformContext) + private static void XChgLoad32(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; var result = context.Result; - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); context.SetInstruction(X64.Mov32, v1, value); context.AppendInstruction(X64.Lock); diff --git a/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad64.cs b/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad64.cs index 455df28ec9..8e5c6e80d1 100644 --- a/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad64.cs +++ b/Source/Mosa.Compiler.x64/Intrinsic/XChgLoad64.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x64.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x64.Intrinsic::XChgLoad64")] - private static void XChgLoad64(Context context, TransformContext transformContext) + private static void XChgLoad64(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; var result = context.Result; - var v1 = transformContext.VirtualRegisters.Allocate64(); + var v1 = transform.VirtualRegisters.Allocate64(); context.SetInstruction(X64.Mov64, v1, value); context.AppendInstruction(X64.Lock); diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc32.cs index f96e626da6..d063984a02 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc32.cs @@ -14,7 +14,7 @@ public Adc32() : base(X64.Adc32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc64.cs index ad1911bd48..0c7a1895c1 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Adc64.cs @@ -14,7 +14,7 @@ public Adc64() : base(X64.Adc64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add32.cs index 4b47503710..022c0f4874 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add32.cs @@ -14,7 +14,7 @@ public Add32() : base(X64.Add32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add64.cs index f2d365aa2d..752b19f50a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Add64.cs @@ -14,7 +14,7 @@ public Add64() : base(X64.Add64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addsd.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addsd.cs index dece61416d..617e539c7e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addsd.cs @@ -14,7 +14,7 @@ public Addsd() : base(X64.Addsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Movsd); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addss.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addss.cs index bf2d41f688..267769c69f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Addss.cs @@ -14,7 +14,7 @@ public Addss() : base(X64.Addss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Movss); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/And32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/And32.cs index f9969eaf86..2f42d54a85 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/And32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/And32.cs @@ -14,12 +14,12 @@ public And32() : base(X64.And32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !IsAddressMode(context); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/And64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/And64.cs index 9f979fa72d..84b14e0041 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/And64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/And64.cs @@ -14,7 +14,7 @@ public And64() : base(X64.And64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/BaseAddressModeTransform.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/BaseAddressModeTransform.cs index d28064a661..7fdec21512 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/BaseAddressModeTransform.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/BaseAddressModeTransform.cs @@ -12,7 +12,7 @@ public BaseAddressModeTransform(BaseInstruction instruction, TransformType type, #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !IsAddressMode(context); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr32.cs index e4827f1ab7..b88860be5c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr32.cs @@ -14,7 +14,7 @@ public Btr32() : base(X64.Btr32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr64.cs index 338193da45..1c1bb8ff2e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Btr64.cs @@ -14,7 +14,7 @@ public Btr64() : base(X64.Btr64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts32.cs index 7c2809a79c..c7c8252719 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts32.cs @@ -14,7 +14,7 @@ public Bts32() : base(X64.Bts32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts64.cs index d4f7f39df3..68c3402f5f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Bts64.cs @@ -14,7 +14,7 @@ public Bts64() : base(X64.Bts64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec32.cs index 742189a03e..4d966ef455 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec32.cs @@ -14,7 +14,7 @@ public Dec32() : base(X64.Dec32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec64.cs index 8fb5967840..34dd7737ba 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Dec64.cs @@ -14,7 +14,7 @@ public Dec64() : base(X64.Dec64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divsd.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divsd.cs index 5e26881e1a..2464aa3040 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divsd.cs @@ -14,7 +14,7 @@ public Divsd() : base(X64.Divsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Movsd); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divss.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divss.cs index 30df8a1cb7..7eada132e0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Divss.cs @@ -14,7 +14,7 @@ public Divss() : base(X64.Divss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Movss); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul32.cs index 49841e039e..b3484ae347 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul32.cs @@ -14,7 +14,7 @@ public IMul32() : base(X64.IMul32, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul64.cs index 2885b2fd0b..187a134061 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/IMul64.cs @@ -14,7 +14,7 @@ public IMul64() : base(X64.IMul64, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulsd.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulsd.cs index 0ceb6d967c..9d78f841f3 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulsd.cs @@ -14,7 +14,7 @@ public Mulsd() : base(X64.Mulsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Movsd); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulss.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulss.cs index cdf573a140..d35dd379f6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Mulss.cs @@ -14,7 +14,7 @@ public Mulss() : base(X64.Mulss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Movss); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg32.cs index ffa794f33e..a3ccdce29f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg32.cs @@ -14,7 +14,7 @@ public Neg32() : base(X64.Adc32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg64.cs index 721d631df9..34f9e87534 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Neg64.cs @@ -14,7 +14,7 @@ public Neg64() : base(X64.Adc64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not32.cs index 62a28a45dd..87d64a8975 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not32.cs @@ -14,7 +14,7 @@ public Not32() : base(X64.Not32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not64.cs index e6553ecd91..4f0f903388 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Not64.cs @@ -14,7 +14,7 @@ public Not64() : base(X64.Not64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or32.cs index f80b241d43..46f7afea3d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or32.cs @@ -14,7 +14,7 @@ public Or32() : base(X64.Or32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or64.cs index e453f826d2..6ca2737820 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Or64.cs @@ -14,7 +14,7 @@ public Or64() : base(X64.Or64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr32.cs index 123cfe5d6d..52a396cd67 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr32.cs @@ -14,7 +14,7 @@ public Rcr32() : base(X64.Rcr32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr64.cs index 5911e81eed..40d35de410 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Rcr64.cs @@ -14,7 +14,7 @@ public Rcr64() : base(X64.Rcr64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundsd.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundsd.cs index 040cfd7194..d940d7cb9f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundsd.cs @@ -14,7 +14,7 @@ public Roundsd() : base(X64.Roundsd, TransformType.Manual | TransformType.Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Movsd); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundss.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundss.cs index 62da504c32..e304dba39e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Roundss.cs @@ -14,7 +14,7 @@ public Roundss() : base(X64.Roundss, TransformType.Manual | TransformType.Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Movss); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar32.cs index 54264c8780..8120179988 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar32.cs @@ -14,7 +14,7 @@ public Sar32() : base(X64.Sar32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar64.cs index 399656ec09..e1968e637b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sar64.cs @@ -14,7 +14,7 @@ public Sar64() : base(X64.Sar64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb32.cs index 8be6de8f00..4101f692ee 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb32.cs @@ -14,7 +14,7 @@ public Sbb32() : base(X64.Sbb32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb64.cs index 7dd2d0753d..5e39c77f7e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sbb64.cs @@ -14,7 +14,7 @@ public Sbb64() : base(X64.Sbb64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl32.cs index b29a6167c0..b697dacc95 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl32.cs @@ -14,7 +14,7 @@ public Shl32() : base(X64.Shl32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl64.cs index 96e795013c..db0fdb5ad4 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shl64.cs @@ -14,7 +14,7 @@ public Shl64() : base(X64.Shl64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld32.cs index 907adc24dd..f62aec013b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld32.cs @@ -14,7 +14,7 @@ public Shld32() : base(X64.Shld32, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld64.cs index 833e6a1441..1b43059c27 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shld64.cs @@ -14,7 +14,7 @@ public Shld64() : base(X64.Shld64, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr32.cs index 288c3b1769..12a525cabc 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr32.cs @@ -14,7 +14,7 @@ public Shr32() : base(X64.Shr32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr64.cs index de07baf593..21e6ffa0f0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shr64.cs @@ -14,7 +14,7 @@ public Shr64() : base(X64.Shr64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd32.cs index 714c6c655a..94a1f91e25 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd32.cs @@ -14,7 +14,7 @@ public Shrd32() : base(X64.Shrd32, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd64.cs index f860dae11a..2f0d03f87d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Shrd64.cs @@ -14,7 +14,7 @@ public Shrd64() : base(X64.Shrd64, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub32.cs index e7bb98c4e4..c937736407 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub32.cs @@ -14,7 +14,7 @@ public Sub32() : base(X64.Sub32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub64.cs index b76bd1b753..22aa7bb075 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Sub64.cs @@ -14,7 +14,7 @@ public Sub64() : base(X64.Sub64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subsd.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subsd.cs index e23aad9d84..c6cdb5984e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subsd.cs @@ -14,7 +14,7 @@ public Subsd() : base(X64.Subsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subss.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subss.cs index 99dabb2f63..8ed4b19eae 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Subss.cs @@ -14,7 +14,7 @@ public Subss() : base(X64.Subss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor32.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor32.cs index 14faac3600..9d388acfee 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor32.cs @@ -14,7 +14,7 @@ public Xor32() : base(X64.Xor32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor64.cs b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor64.cs index 04eda0f22b..c6e7a253f1 100644 --- a/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/AddressMode/Xor64.cs @@ -14,7 +14,7 @@ public Xor64() : base(X64.Xor64, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/BaseX64Transform.cs b/Source/Mosa.Compiler.x64/Transforms/BaseX64Transform.cs index 4634683dba..95ffd1788b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/BaseX64Transform.cs +++ b/Source/Mosa.Compiler.x64/Transforms/BaseX64Transform.cs @@ -12,7 +12,7 @@ public BaseX64Transform(BaseInstruction instruction, TransformType type, bool lo #region Helpers - public static Operand MoveConstantToFloatRegister(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToFloatRegister(Transform transform, Context context, Operand operand) { if (!operand.IsConstant) return operand; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq32.cs index 9e0d425420..2bfc01c19b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq32.cs @@ -14,7 +14,7 @@ public Cdq32() : base(X64.Cdq32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq64.cs index 1d8157a3b0..ec81b06a07 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Cdq64.cs @@ -14,7 +14,7 @@ public Cdq64() : base(X64.Cdq64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div32.cs index aaf6951ff8..e639cf56ab 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div32.cs @@ -14,7 +14,7 @@ public Div32() : base(X64.Div32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div64.cs index c6d7bba4a5..27cc30fc21 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Div64.cs @@ -14,7 +14,7 @@ public Div64() : base(X64.Div64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv32.cs index 4903fe1e98..0174a4719f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv32.cs @@ -14,7 +14,7 @@ public IDiv32() : base(X64.IDiv32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv64.cs index 7458d02e58..3e5d036a3f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IDiv64.cs @@ -14,7 +14,7 @@ public IDiv64() : base(X64.IDiv64, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul32Constant.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul32Constant.cs index 5bd62a818b..8fb2745949 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul32Constant.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul32Constant.cs @@ -14,12 +14,12 @@ public IMul32Constant() : base(X64.IMul32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand2.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul64Constant.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul64Constant.cs index f313bfd005..e6ae74eb8b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul64Constant.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/IMul64Constant.cs @@ -14,12 +14,12 @@ public IMul64Constant() : base(X64.IMul64, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand2.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In16.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In16.cs index 91ad122b79..ef70b78a80 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In16.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In16.cs @@ -14,7 +14,7 @@ public In16() : base(X64.In16, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) && (context.Operand1.Register == CPURegister.RDX || context.Operand1.IsConstant)); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In32.cs index 6b413ffc76..8b21fd0153 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In32.cs @@ -14,7 +14,7 @@ public In32() : base(X64.In32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) && (context.Operand1.Register == CPURegister.RDX || context.Operand1.IsConstant)); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In8.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In8.cs index 0a46e20eb9..d644078d87 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/In8.cs @@ -14,7 +14,7 @@ public In8() : base(X64.In8, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) && (context.Operand1.Register == CPURegister.RDX || context.Operand1.IsConstant)); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg32.cs index 2a9ee07e16..5dd1bf1dad 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg32.cs @@ -14,12 +14,12 @@ public MovStoreSeg32() : base(X64.MovStoreSeg32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg64.cs index a54063f30c..12385e2586 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/MovStoreSeg64.cs @@ -14,12 +14,12 @@ public MovStoreSeg64() : base(X64.MovStoreSeg64, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul32.cs index f41ff1b03c..c7107f778f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul32.cs @@ -15,7 +15,7 @@ public Mul32() : base(X64.Mul32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul64.cs index e61482110b..f0c2e504a3 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Mul64.cs @@ -15,7 +15,7 @@ public Mul64() : base(X64.Mul64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out16.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out16.cs index a094aaec11..d8395263d1 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out16.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out16.cs @@ -14,7 +14,7 @@ public Out16() : base(X64.Out16, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) && context.Operand2.Register == CPURegister.RAX); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { // TRANSFORM: OUT <= rdx, rax && OUT <= imm8, rax diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out32.cs index ca7c996a3b..bb55e19a55 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out32.cs @@ -14,7 +14,7 @@ public Out32() : base(X64.Out32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) && context.Operand2.Register == CPURegister.RAX); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { // TRANSFORM: OUT <= rdx, rax && OUT <= imm8, rax diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out8.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out8.cs index 9866279b51..baeb45a1f1 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Out8.cs @@ -14,7 +14,7 @@ public Out8() : base(X64.Out8, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) && context.Operand2.Register == CPURegister.RAX); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { // TRANSFORM: OUT <= rdx, rax && OUT <= imm8, rax diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr32.cs index 77a3ba62ec..93a907a49d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr32.cs @@ -14,7 +14,7 @@ public Rcr32() : base(X64.Rcr32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr64.cs index bb4f15791f..6c608736aa 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Rcr64.cs @@ -14,7 +14,7 @@ public Rcr64() : base(X64.Rcr64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/RdMSR.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/RdMSR.cs index 0111e36351..8d4391cf59 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/RdMSR.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/RdMSR.cs @@ -14,7 +14,7 @@ public RdMSR() : base(X64.RdMSR, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) && context.Operand1.Register == CPURegister.RCX); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar32.cs index 7831183205..cd907700c0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar32.cs @@ -14,7 +14,7 @@ public Sar32() : base(X64.Sar32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar64.cs index e408c2ddd6..56d21ac69e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Sar64.cs @@ -14,7 +14,7 @@ public Sar64() : base(X64.Sar64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl32.cs index 862ccc2a71..3022947b86 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl32.cs @@ -14,7 +14,7 @@ public Shl32() : base(X64.Shl32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl64.cs index e56076e4d7..edb3a1b622 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shl64.cs @@ -14,7 +14,7 @@ public Shl64() : base(X64.Shl64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld32.cs index e720047ac4..e2ef8d4f6d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld32.cs @@ -14,7 +14,7 @@ public Shld32() : base(X64.Shld32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand3.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld64.cs index a0e88a6543..7902eae411 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shld64.cs @@ -14,7 +14,7 @@ public Shld64() : base(X64.Shld64, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand3.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr32.cs index 292aa2f668..1cb8f38ef9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr32.cs @@ -14,7 +14,7 @@ public Shr32() : base(X64.Shr32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr64.cs index 69242fde78..18829cdfa4 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shr64.cs @@ -14,7 +14,7 @@ public Shr64() : base(X64.Shr64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd32.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd32.cs index cc103293f5..ace16ead9e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd32.cs @@ -14,7 +14,7 @@ public Shrd32() : base(X64.Shrd32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand3.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd64.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd64.cs index 9408e36e1f..dd1e926df6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/Shrd64.cs @@ -14,7 +14,7 @@ public Shrd64() : base(X64.Shrd64, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand3.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/WrMSR.cs b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/WrMSR.cs index a5ab1e4589..2714f0b8de 100644 --- a/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/WrMSR.cs +++ b/Source/Mosa.Compiler.x64/Transforms/FixedRegisters/WrMSR.cs @@ -14,7 +14,7 @@ public WrMSR() : base(X64.WrMSR, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -24,7 +24,7 @@ public override bool Match(Context context, TransformContext transform) && context.Operand2.Register == CPURegister.RDX); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Add32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Add32.cs index e5986d50f6..6b23645387 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Add32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Add32.cs @@ -14,7 +14,7 @@ public Add32() : base(IRInstruction.Add32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Add32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Add64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Add64.cs index 4a8a3ba27c..02564f214b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Add64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Add64.cs @@ -14,7 +14,7 @@ public Add64() : base(IRInstruction.Add64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Add64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn32.cs index c0e93a65a1..ca64a5c6a9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn32.cs @@ -14,7 +14,7 @@ public AddCarryIn32() : base(IRInstruction.AddCarryIn32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn64.cs index 3653fdfb0e..8f2f3f6d73 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryIn64.cs @@ -14,7 +14,7 @@ public AddCarryIn64() : base(IRInstruction.AddCarryIn64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut32.cs index cf4d6e1564..4f127cf4d8 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut32.cs @@ -14,7 +14,7 @@ public AddCarryOut32() : base(IRInstruction.AddCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut64.cs index 3f4e7a8450..48ebfd756e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddCarryOut64.cs @@ -14,7 +14,7 @@ public AddCarryOut64() : base(IRInstruction.AddCarryOut64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddManagedPointer.cs index 818197381e..59ac2fea6f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddManagedPointer.cs @@ -14,7 +14,7 @@ public AddManagedPointer() : base(IRInstruction.AddManagedPointer, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Add32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut32.cs index df1e03e6d0..d99f9e7866 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut32.cs @@ -14,7 +14,7 @@ public AddOverflowOut32() : base(IRInstruction.AddOverflowOut32, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut64.cs index 3e65bf10f0..16c7a12600 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddOverflowOut64.cs @@ -14,7 +14,7 @@ public AddOverflowOut64() : base(IRInstruction.AddOverflowOut64, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddR4.cs index 78ee923b6b..03c2130857 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddR4.cs @@ -14,7 +14,7 @@ public AddR4() : base(IRInstruction.AddR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddR8.cs index 55b504c342..0486c06c6c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddR8.cs @@ -14,7 +14,7 @@ public AddR8() : base(IRInstruction.AddR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/AddressOf.cs b/Source/Mosa.Compiler.x64/Transforms/IR/AddressOf.cs index 32ff5b2ab3..fc36607464 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/AddressOf.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/AddressOf.cs @@ -15,7 +15,7 @@ public AddressOf() : base(IRInstruction.AddressOf, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsOnStack || context.Operand1.IsStaticField); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/And32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/And32.cs index 0d31c89625..20805a0a6b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/And32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/And32.cs @@ -14,7 +14,7 @@ public And32() : base(IRInstruction.And32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.And32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/And64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/And64.cs index 5953cf091f..175e82e855 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/And64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/And64.cs @@ -14,7 +14,7 @@ public And64() : base(IRInstruction.And64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.And64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight32.cs index e12b4ee751..ea6295107c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight32.cs @@ -14,7 +14,7 @@ public ArithShiftRight32() : base(IRInstruction.ArithShiftRight32, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Sar32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight64.cs index 2c5a0ad814..03356adadb 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ArithShiftRight64.cs @@ -14,7 +14,7 @@ public ArithShiftRight64() : base(IRInstruction.ArithShiftRight64, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Sar64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/BaseIRTransform.cs b/Source/Mosa.Compiler.x64/Transforms/IR/BaseIRTransform.cs index ac80fd55e1..e6ec2e856d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/BaseIRTransform.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/BaseIRTransform.cs @@ -12,7 +12,7 @@ public BaseIRTransform(BaseInstruction instruction, TransformType type, bool log #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/BitCopy32ToR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/BitCopy32ToR4.cs index bcdca597b5..a1ae798588 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/BitCopy32ToR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/BitCopy32ToR4.cs @@ -14,7 +14,7 @@ public BitCopy32ToR4() : base(IRInstruction.BitCopy32ToR4, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //context.ReplaceInstruction(X64.Movdi32ss); // TODO } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/BitCopyR4To32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/BitCopyR4To32.cs index 542b93e7a9..d16d381cc2 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/BitCopyR4To32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/BitCopyR4To32.cs @@ -14,7 +14,7 @@ public BitCopyR4To32() : base(IRInstruction.BitCopyR4To32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Branch32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Branch32.cs index 8161a4c47d..72b128ede7 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Branch32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Branch32.cs @@ -14,9 +14,9 @@ public Branch32() : base(IRInstruction.Branch32, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Branch64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Branch64.cs index c6bc0e7269..f34dd92e3d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Branch64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Branch64.cs @@ -14,9 +14,9 @@ public Branch64() : base(IRInstruction.Branch64, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/BranchManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/BranchManagedPointer.cs index f802fc9330..d8bb5b78b4 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/BranchManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/BranchManagedPointer.cs @@ -14,9 +14,9 @@ public BranchManagedPointer() : base(IRInstruction.BranchManagedPointer, Transfo { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/BranchObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/BranchObject.cs index d2f66d0a5d..ad582ce2d9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/BranchObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/BranchObject.cs @@ -14,9 +14,9 @@ public BranchObject() : base(IRInstruction.BranchObject, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/CallDirect.cs b/Source/Mosa.Compiler.x64/Transforms/IR/CallDirect.cs index 4cf00bca55..c3357a541b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/CallDirect.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/CallDirect.cs @@ -14,7 +14,7 @@ public CallDirect() : base(IRInstruction.CallDirect, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Call); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x32.cs index c5b9af0ab0..02afdca8e6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x32.cs @@ -14,7 +14,7 @@ public Compare32x32() : base(IRInstruction.Compare32x32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var resultOperand = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x64.cs index 2ce624b1c5..5096332f57 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Compare32x64.cs @@ -14,7 +14,7 @@ public Compare32x64() : base(IRInstruction.Compare32x64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var resultOperand = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x32.cs index 53f67b0fc7..236cf7de03 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x32.cs @@ -14,7 +14,7 @@ public Compare64x32() : base(IRInstruction.Compare64x32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var resultOperand = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x64.cs index ebc6698433..ab97fdb8f6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Compare64x64.cs @@ -14,7 +14,7 @@ public Compare64x64() : base(IRInstruction.Compare64x64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var resultOperand = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/CompareManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/CompareManagedPointer.cs index edacf50221..9b1059ec9f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/CompareManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/CompareManagedPointer.cs @@ -14,7 +14,7 @@ public CompareManagedPointer() : base(IRInstruction.CompareManagedPointer, Trans { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/CompareObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/CompareObject.cs index 036a8e3571..6e6bef5eb5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/CompareObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/CompareObject.cs @@ -14,7 +14,7 @@ public CompareObject() : base(IRInstruction.CompareObject, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/CompareR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/CompareR4.cs index 26e0218f1c..d2f55bec3c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/CompareR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/CompareR4.cs @@ -14,7 +14,7 @@ public CompareR4() : base(IRInstruction.CompareR4, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //FloatCompare(context, X64.Ucomiss); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/CompareR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/CompareR8.cs index a72ccbf009..aff8704293 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/CompareR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/CompareR8.cs @@ -14,7 +14,7 @@ public CompareR8() : base(IRInstruction.CompareR8, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //FloatCompare(context, X64.Ucomisd); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR4.cs index f568380ec1..a24630ec63 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR4.cs @@ -15,7 +15,7 @@ public ConvertI32ToR4() : base(IRInstruction.ConvertI32ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR8.cs index d91c91af18..93ed1db576 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI32ToR8.cs @@ -15,7 +15,7 @@ public ConvertI32ToR8() : base(IRInstruction.ConvertI32ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); context.ReplaceInstruction(X64.Cvtsi2sd32); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR4.cs index 6edb43c0f2..776d8770f6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR4.cs @@ -14,7 +14,7 @@ public ConvertI64ToR4() : base(IRInstruction.ConvertI64ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Cvtsi2ss64, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR8.cs index 5df1d271bc..dec6c4dfaa 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertI64ToR8.cs @@ -14,7 +14,7 @@ public ConvertI64ToR8() : base(IRInstruction.ConvertI64ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Cvtsi2sd64, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI32.cs index 5db9f5ed58..5a1f1709e7 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI32.cs @@ -14,7 +14,7 @@ public ConvertR4ToI32() : base(IRInstruction.ConvertR4ToI32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI64.cs index 4cfb7253a6..992d429cae 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToI64.cs @@ -14,7 +14,7 @@ public ConvertR4ToI64() : base(IRInstruction.ConvertR4ToI64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Cvttss2si64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToR8.cs index 5105ece3c9..464cd77a08 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToR8.cs @@ -14,7 +14,7 @@ public ConvertR4ToR8() : base(IRInstruction.ConvertR4ToR8, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU32.cs index 973c3b29e3..a5d754f1aa 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU32.cs @@ -14,7 +14,7 @@ public ConvertR4ToU32() : base(IRInstruction.ConvertR4ToU32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU64.cs index 403ea4a266..326f9bf03d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR4ToU64.cs @@ -14,7 +14,7 @@ public ConvertR4ToU64() : base(IRInstruction.ConvertR4ToI64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //context.ReplaceInstruction(X64.Cvttss2si64); // } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI32.cs index 0ca0af9040..ccf3403b3f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI32.cs @@ -14,7 +14,7 @@ public ConvertR8ToI32() : base(IRInstruction.ConvertR8ToI32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI64.cs index f6a9897ef9..2a29f94a32 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToI64.cs @@ -15,7 +15,7 @@ public ConvertR8ToI64() : base(IRInstruction.ConvertR8ToI64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsInteger && !context.Result.IsFloatingPoint); context.ReplaceInstruction(X64.Cvttss2si64); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToR4.cs index 7d38460d96..b52b8494a0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToR4.cs @@ -15,7 +15,7 @@ public ConvertR8ToR4() : base(IRInstruction.ConvertR8ToR4, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsFloatingPoint && context.Result.IsFloatingPoint); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToU32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToU32.cs index db20c102b7..61fe0469e6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToU32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertR8ToU32.cs @@ -14,7 +14,7 @@ public ConvertR8ToU32() : base(IRInstruction.ConvertR8ToU32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR4.cs index 8a0d4a7b5a..c2ea051356 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR4.cs @@ -14,7 +14,7 @@ public ConvertU32ToR4() : base(IRInstruction.ConvertU32ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR8.cs index 7d0e01e438..6c94ad2b3d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ConvertU32ToR8.cs @@ -14,7 +14,7 @@ public ConvertU32ToR8() : base(IRInstruction.ConvertU32ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/DivR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/DivR4.cs index 65f008abb3..67485293ca 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/DivR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/DivR4.cs @@ -14,7 +14,7 @@ public DivR4() : base(IRInstruction.DivR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/DivR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/DivR8.cs index 857dd54d06..6a120d6819 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/DivR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/DivR8.cs @@ -14,7 +14,7 @@ public DivR8() : base(IRInstruction.DivR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned32.cs index ea1e2299e0..069f91e12f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned32.cs @@ -14,7 +14,7 @@ public DivSigned32() : base(IRInstruction.DivSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned64.cs index 4b3222b0d3..4a6fae3a34 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/DivSigned64.cs @@ -14,7 +14,7 @@ public DivSigned64() : base(IRInstruction.DivSigned64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned32.cs index 9db0c97dfe..54bef4dd64 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned32.cs @@ -14,7 +14,7 @@ public DivUnsigned32() : base(IRInstruction.DivUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned64.cs index 2998bd6897..725f875f2c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/DivUnsigned64.cs @@ -14,7 +14,7 @@ public DivUnsigned64() : base(IRInstruction.DivUnsigned64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse32.cs index 486eefa2d4..edbd99477a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse32.cs @@ -14,7 +14,7 @@ public IfThenElse32() : base(IRInstruction.IfThenElse32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse64.cs index 337bc2e1c6..1076c006f2 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/IfThenElse64.cs @@ -14,7 +14,7 @@ public IfThenElse64() : base(IRInstruction.IfThenElse64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Operand1; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Jmp.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Jmp.cs index 06c5a5d47f..6d077f50e9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Jmp.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Jmp.cs @@ -14,7 +14,7 @@ public Jmp() : base(IRInstruction.Jmp, TransformType.Manual | TransformType.Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Jmp); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Load32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Load32.cs index 7a2eacb1b6..ee59d6d051 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Load32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Load32.cs @@ -15,7 +15,7 @@ public Load32() : base(IRInstruction.Load32, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Load64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Load64.cs index 743f7ebbb8..0ba95b85aa 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Load64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Load64.cs @@ -15,7 +15,7 @@ public Load64() : base(IRInstruction.Load64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadManagedPointer.cs index acbdf3f8c6..1b33ab817d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadManagedPointer.cs @@ -15,7 +15,7 @@ public LoadManagedPointer() : base(IRInstruction.LoadManagedPointer, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadObject.cs index 4658ec3e7a..51bb0c594e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadObject.cs @@ -15,7 +15,7 @@ public LoadObject() : base(IRInstruction.LoadObject, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam32.cs index 3c8289fe73..bff5e9db91 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam32.cs @@ -14,7 +14,7 @@ public LoadParam32() : base(IRInstruction.LoadParam32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam64.cs index 1a58a35d3a..47c61251e3 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParam64.cs @@ -14,7 +14,7 @@ public LoadParam64() : base(IRInstruction.LoadParam64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovLoad64, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamManagedPointer.cs index 5fa7363ebe..afda6596b9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamManagedPointer.cs @@ -14,7 +14,7 @@ public LoadParamManagedPointer() : base(IRInstruction.LoadParamManagedPointer, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamObject.cs index f6b321a092..7222da5dda 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamObject.cs @@ -14,7 +14,7 @@ public LoadParamObject() : base(IRInstruction.LoadParamObject, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovLoad64, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR4.cs index 1d9769ac48..6b5ea8c2e5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR4.cs @@ -15,7 +15,7 @@ public LoadParamR4() : base(IRInstruction.LoadParamR4, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR8.cs index c49d46e911..64fdd291cd 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamR8.cs @@ -15,7 +15,7 @@ public LoadParamR8() : base(IRInstruction.LoadParamR8, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x32.cs index 80d290dd0a..98865fa134 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x32.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x32() : base(IRInstruction.LoadParamSignExtend16x32, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovsxLoad16, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x64.cs index e7bc0e3a5b..cf93f437d9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend16x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x64() : base(IRInstruction.LoadParamSignExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovsxLoad16, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend32x64.cs index 39d22f2ba8..9450bb6524 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend32x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend32x64() : base(IRInstruction.LoadParamSignExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovsxLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x32.cs index f3cbd9bde6..9c1316a785 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x32.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x32() : base(IRInstruction.LoadParamSignExtend8x32, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovsxLoad8, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x64.cs index 50077d5d67..b068681123 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamSignExtend8x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x64() : base(IRInstruction.LoadParamSignExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovsxLoad8, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x32.cs index 36ce688f42..87b2aeff38 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x32.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x32() : base(IRInstruction.LoadParamZeroExtend16x32, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad16, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x64.cs index 7ee45bc662..f6594377b0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend16x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x64() : base(IRInstruction.LoadParamZeroExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad16, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend32x64.cs index 033785572f..68379b2659 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend32x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend32x64() : base(IRInstruction.LoadParamZeroExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x32.cs index 34003dbcaa..e20d063326 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x32.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x32() : base(IRInstruction.LoadParamZeroExtend8x32, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad8, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x64.cs index 5d15174693..5e877d855e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadParamZeroExtend8x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x64() : base(IRInstruction.LoadParamZeroExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovzxLoad8, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadR4.cs index 14089271ba..eaab3aa798 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadR4.cs @@ -15,7 +15,7 @@ public LoadR4() : base(IRInstruction.LoadR4, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadR8.cs index 2d312bd65b..4a4a8d2167 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadR8.cs @@ -15,7 +15,7 @@ public LoadR8() : base(IRInstruction.LoadR8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x32.cs index 9b65acab3f..da37cccc6a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x32.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32() : base(IRInstruction.LoadSignExtend16x32, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x64.cs index 49d42bc893..51367e5c0c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend16x64.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x64() : base(IRInstruction.LoadSignExtend16x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.MovsxLoad16); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend32x64.cs index 3623eef929..d098a2842a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend32x64.cs @@ -14,7 +14,7 @@ public LoadSignExtend32x64() : base(IRInstruction.LoadSignExtend32x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x32.cs index 26248752a0..0b60a5ffc2 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x32.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32() : base(IRInstruction.LoadSignExtend8x32, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x64.cs index 14649ce106..9761832b3d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadSignExtend8x64.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x64() : base(IRInstruction.LoadSignExtend8x64, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.MovsxLoad8); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x32.cs index 6a12c3f545..f61eb12f5f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32() : base(IRInstruction.LoadZeroExtend16x32, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x64.cs index 6eeeb3a389..1253b45fde 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend16x64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x64() : base(IRInstruction.LoadZeroExtend16x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.MovzxLoad16); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend32x64.cs index e727daf8e6..9c2987336d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend32x64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend32x64() : base(IRInstruction.LoadZeroExtend32x64, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.MovzxLoad32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x32.cs index 94b38b7f8b..55b7604b0f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32() : base(IRInstruction.LoadZeroExtend8x32, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x64.cs index 09f76d7a21..82dd60d1f6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/LoadZeroExtend8x64.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x64() : base(IRInstruction.LoadZeroExtend8x64, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.MovzxLoad8); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Move32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Move32.cs index ef8c470865..702c538076 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Move32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Move32.cs @@ -14,7 +14,7 @@ public Move32() : base(IRInstruction.Move32, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Move64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Move64.cs index 7bde1c425e..4890ab5219 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Move64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Move64.cs @@ -14,7 +14,7 @@ public Move64() : base(IRInstruction.Move64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MoveManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MoveManagedPointer.cs index 0481e8003f..01301f3dd1 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MoveManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MoveManagedPointer.cs @@ -14,7 +14,7 @@ public MoveManagedPointer() : base(IRInstruction.MoveManagedPointer, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MoveObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MoveObject.cs index 1cbe1d2963..76089ca3c9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MoveObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MoveObject.cs @@ -14,7 +14,7 @@ public MoveObject() : base(IRInstruction.MoveObject, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MoveR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MoveR4.cs index 87eb3938f1..e8cacfe694 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MoveR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MoveR4.cs @@ -14,7 +14,7 @@ public MoveR4() : base(IRInstruction.MoveR4, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MoveR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MoveR8.cs index c896595cc1..90b6c94168 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MoveR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MoveR8.cs @@ -14,7 +14,7 @@ public MoveR8() : base(IRInstruction.MoveR8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulCarryOut32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulCarryOut32.cs index 702586a603..4944842adc 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulCarryOut32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulCarryOut32.cs @@ -14,7 +14,7 @@ public MulCarryOut32() : base(IRInstruction.MulCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulHs32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulHs32.cs index ab5fe1e8fd..78ff9d3fdc 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulHs32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulHs32.cs @@ -14,7 +14,7 @@ public MulHs32() : base(IRInstruction.MulHu32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulHs64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulHs64.cs index 1b8617af92..0f425437f7 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulHs64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulHs64.cs @@ -14,7 +14,7 @@ public MulHs64() : base(IRInstruction.MulHu64, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulHu32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulHu32.cs index 217bb69c49..666bc34e74 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulHu32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulHu32.cs @@ -14,7 +14,7 @@ public MulHu32() : base(IRInstruction.MulHu32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulHu64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulHu64.cs index b691052519..97f99049b6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulHu64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulHu64.cs @@ -14,7 +14,7 @@ public MulHu64() : base(IRInstruction.MulHu64, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulOverflowOut32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulOverflowOut32.cs index a676efa45f..4111e2fb96 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulOverflowOut32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulOverflowOut32.cs @@ -14,7 +14,7 @@ public MulOverflowOut32() : base(IRInstruction.MulOverflowOut32, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulR4.cs index 2a04598d14..a41e6d9525 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulR4.cs @@ -14,7 +14,7 @@ public MulR4() : base(IRInstruction.MulR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulR8.cs index 61b83b5b22..515ec7f7ac 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulR8.cs @@ -14,7 +14,7 @@ public MulR8() : base(IRInstruction.MulR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned32.cs index 85788f9d83..6ce5830195 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned32.cs @@ -14,7 +14,7 @@ public MulSigned32() : base(IRInstruction.MulSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction2(X64.Mul32, v1, context.Result, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned64.cs index 5c66f7e1bb..c4987df2c8 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulSigned64.cs @@ -14,7 +14,7 @@ public MulSigned64() : base(IRInstruction.MulSigned64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction2(X64.Mul64, v1, context.Result, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned32.cs index 627df220d9..64f604d917 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned32.cs @@ -14,7 +14,7 @@ public MulUnsigned32() : base(IRInstruction.MulUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction2(X64.Mul32, v1, context.Result, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned64.cs index 1faa4ff0cc..e7f1b40c3b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/MulUnsigned64.cs @@ -14,7 +14,7 @@ public MulUnsigned64() : base(IRInstruction.MulUnsigned64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction2(X64.Mul64, v1, context.Result, context.Operand1, context.Operand2); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Nop.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Nop.cs index 7614056315..ea6df602e8 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Nop.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Nop.cs @@ -14,7 +14,7 @@ public Nop() : base(IRInstruction.Nop, TransformType.Manual | TransformType.Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Nop); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Not32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Not32.cs index f5932353be..2e26322876 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Not32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Not32.cs @@ -14,7 +14,7 @@ public Not32() : base(IRInstruction.Not32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Not32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Not64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Not64.cs index c58eda7973..5a972d533d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Not64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Not64.cs @@ -14,7 +14,7 @@ public Not64() : base(IRInstruction.Not64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Mov64, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Or32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Or32.cs index 74602685d1..32bfe78289 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Or32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Or32.cs @@ -14,7 +14,7 @@ public Or32() : base(IRInstruction.Or32, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Or32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Or64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Or64.cs index 5d6028e1ea..3accf4e9e6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Or64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Or64.cs @@ -14,7 +14,7 @@ public Or64() : base(IRInstruction.Or64, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Or64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned32.cs index 33cf2c0284..1641d2fc3f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned32.cs @@ -14,7 +14,7 @@ public RemSigned32() : base(IRInstruction.RemSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned64.cs index d649812b36..8505f86e51 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/RemSigned64.cs @@ -14,7 +14,7 @@ public RemSigned64() : base(IRInstruction.RemSigned64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned32.cs index f69cae1eca..c669ad1ba3 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned32.cs @@ -14,7 +14,7 @@ public RemUnsigned32() : base(IRInstruction.RemUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned64.cs index 034e81a940..929df26771 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/RemUnsigned64.cs @@ -14,7 +14,7 @@ public RemUnsigned64() : base(IRInstruction.RemUnsigned64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft32.cs index 7132c23dea..4b03c6d54a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft32.cs @@ -14,7 +14,7 @@ public ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Shl32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft64.cs index b5bb4f66a6..d4ad46530d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftLeft64.cs @@ -14,7 +14,7 @@ public ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Shl64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight32.cs index 65734afd02..39b0444385 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight32.cs @@ -14,7 +14,7 @@ public ShiftRight32() : base(IRInstruction.ShiftRight32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Shr32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight64.cs index 6d3fa70d49..97a1c9f7d5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ShiftRight64.cs @@ -14,7 +14,7 @@ public ShiftRight64() : base(IRInstruction.ShiftRight64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Shr64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x32.cs index 682b757080..f09d010c7c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x32.cs @@ -14,7 +14,7 @@ public SignExtend16x32() : base(IRInstruction.SignExtend16x32, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movsx16To32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x64.cs index 6a1af08ff1..b9783192a0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend16x64.cs @@ -14,7 +14,7 @@ public SignExtend16x64() : base(IRInstruction.SignExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movsx16To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend32x64.cs index 42d05d45a0..310634f005 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend32x64.cs @@ -14,7 +14,7 @@ public SignExtend32x64() : base(IRInstruction.SignExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movsx32To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x32.cs index c9a3202c5f..906211981b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x32.cs @@ -14,7 +14,7 @@ public SignExtend8x32() : base(IRInstruction.SignExtend8x32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movsx8To32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x64.cs index 7544b8e68d..14cbe8a64d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SignExtend8x64.cs @@ -14,7 +14,7 @@ public SignExtend8x64() : base(IRInstruction.SignExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movsx8To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Store16.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Store16.cs index 6f54b75fb5..81ed253f39 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Store16.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Store16.cs @@ -14,7 +14,7 @@ public Store16() : base(IRInstruction.Store16, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Store32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Store32.cs index 51f95f5409..3856bbc456 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Store32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Store32.cs @@ -14,7 +14,7 @@ public Store32() : base(IRInstruction.Store32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Store64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Store64.cs index 5db31bd163..80b44fad9e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Store64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Store64.cs @@ -14,7 +14,7 @@ public Store64() : base(IRInstruction.Store64, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Store8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Store8.cs index 063d923891..d214f8b337 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Store8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Store8.cs @@ -14,7 +14,7 @@ public Store8() : base(IRInstruction.Store8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreManagedPointer.cs index a62389e142..10c9039356 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreManagedPointer.cs @@ -14,7 +14,7 @@ public StoreManagedPointer() : base(IRInstruction.StoreManagedPointer, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreObject.cs index 30d4e8c5f9..f3930ca6c6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreObject.cs @@ -14,7 +14,7 @@ public StoreObject() : base(IRInstruction.StoreObject, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam16.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam16.cs index e198518f76..7efd2b9ea0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam16.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam16.cs @@ -14,7 +14,7 @@ public StoreParam16() : base(IRInstruction.StoreParam16, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovStore16, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam32.cs index 949e2cd93d..af5174e794 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam32.cs @@ -14,7 +14,7 @@ public StoreParam32() : base(IRInstruction.StoreParam32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovStore32, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam64.cs index 7f5bb3d4f9..3fef8edab3 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam64.cs @@ -14,7 +14,7 @@ public StoreParam64() : base(IRInstruction.StoreParam64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovStore64, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam8.cs index 900d0f598c..8e8178d0f5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParam8.cs @@ -14,7 +14,7 @@ public StoreParam8() : base(IRInstruction.StoreParam8, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovStore8, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamManagedPointer.cs index 164436fc59..ef61f6e0cb 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamManagedPointer.cs @@ -14,7 +14,7 @@ public StoreParamManagedPointer() : base(IRInstruction.StoreParamManagedPointer, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovStore32, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamObject.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamObject.cs index d971cd4ca4..2d60b831ad 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamObject.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamObject.cs @@ -14,7 +14,7 @@ public StoreParamObject() : base(IRInstruction.StoreParamObject, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.MovStore64, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR4.cs index e99df48d2a..610e89f93d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR4.cs @@ -14,7 +14,7 @@ public StoreParamR4() : base(IRInstruction.StoreParamR4, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR8.cs index d2a15b4c58..cc3d3fb22f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreParamR8.cs @@ -14,7 +14,7 @@ public StoreParamR8() : base(IRInstruction.StoreParamR8, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreR4.cs index 47837bed24..fe134760ac 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreR4.cs @@ -14,7 +14,7 @@ public StoreR4() : base(IRInstruction.StoreR4, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/StoreR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/StoreR8.cs index be2efc5767..30d80bec53 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/StoreR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/StoreR8.cs @@ -14,7 +14,7 @@ public StoreR8() : base(IRInstruction.StoreR8, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Sub32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Sub32.cs index 6480a67fe1..bee1e7aafd 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Sub32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Sub32.cs @@ -14,7 +14,7 @@ public Sub32() : base(IRInstruction.Sub32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Sub32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Sub64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Sub64.cs index 270faa1aa0..ef99a12e0e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Sub64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Sub64.cs @@ -14,7 +14,7 @@ public Sub64() : base(IRInstruction.Sub64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Sub64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryIn32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryIn32.cs index 01a8f06d21..b14acfc8ef 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryIn32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryIn32.cs @@ -14,7 +14,7 @@ public SubCarryIn32() : base(IRInstruction.SubCarryIn32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut32.cs index d2ea18bfd4..244f1e4603 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut32.cs @@ -14,7 +14,7 @@ public SubCarryOut32() : base(IRInstruction.SubCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut64.cs index e416d5215c..f81c0c9a36 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubCarryOut64.cs @@ -14,7 +14,7 @@ public SubCarryOut64() : base(IRInstruction.SubCarryOut64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubManagedPointer.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubManagedPointer.cs index 654b2c45e4..5967a2bef7 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubManagedPointer.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubManagedPointer.cs @@ -14,7 +14,7 @@ public SubManagedPointer() : base(IRInstruction.SubManagedPointer, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Sub32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut32.cs index 6f94ef3017..25173d970c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut32.cs @@ -14,7 +14,7 @@ public SubOverflowOut32() : base(IRInstruction.SubOverflowOut32, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut64.cs index 30f7934ec4..c6f597b696 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubOverflowOut64.cs @@ -14,7 +14,7 @@ public SubOverflowOut64() : base(IRInstruction.SubOverflowOut64, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubR4.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubR4.cs index 7cc64ef3ec..682906cc9f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubR4.cs @@ -14,7 +14,7 @@ public SubR4() : base(IRInstruction.SubR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/SubR8.cs b/Source/Mosa.Compiler.x64/Transforms/IR/SubR8.cs index 5f0d06bfb0..47ca87df67 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/SubR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/SubR8.cs @@ -14,7 +14,7 @@ public SubR8() : base(IRInstruction.SubR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Truncate64x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Truncate64x32.cs index bdd5c1d55d..e01fe38a09 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Truncate64x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Truncate64x32.cs @@ -14,7 +14,7 @@ public Truncate64x32() : base(IRInstruction.Truncate64x32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movzx32To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Xor32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Xor32.cs index c87124a78f..3a863f2798 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Xor32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Xor32.cs @@ -14,7 +14,7 @@ public Xor32() : base(IRInstruction.Xor32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Xor32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/Xor64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/Xor64.cs index c0b9bb5343..57a61fe10e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/Xor64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/Xor64.cs @@ -14,7 +14,7 @@ public Xor64() : base(IRInstruction.Xor64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Xor64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x32.cs index c8e2652a43..fc5e4cb2a0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x32.cs @@ -14,7 +14,7 @@ public ZeroExtend16x32() : base(IRInstruction.ZeroExtend16x32, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movzx16To32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x64.cs index 74779a0cf5..d1bc12d2eb 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend16x64.cs @@ -14,7 +14,7 @@ public ZeroExtend16x64() : base(IRInstruction.ZeroExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movzx16To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend32x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend32x64.cs index 26e3541139..8b22a54cfb 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend32x64.cs @@ -14,7 +14,7 @@ public ZeroExtend32x64() : base(IRInstruction.ZeroExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movzx32To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x32.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x32.cs index 98c8948cc2..43751253c0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x32.cs @@ -14,7 +14,7 @@ public ZeroExtend8x32() : base(IRInstruction.ZeroExtend8x32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movzx8To32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x64.cs b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x64.cs index 813c0578d0..fb775501d0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/IR/ZeroExtend8x64.cs @@ -14,7 +14,7 @@ public ZeroExtend8x64() : base(IRInstruction.ZeroExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X64.Movzx8To64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc32.cs index 101e77270e..128484c387 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc32.cs @@ -18,7 +18,7 @@ public Adc32() : base(X64.Adc32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc64.cs index 48e327b464..dcfea134a5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Adc64.cs @@ -18,7 +18,7 @@ public Adc64() : base(X64.Adc64, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add32.cs index 13aa709b50..cc44271563 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add32.cs @@ -18,7 +18,7 @@ public Add32() : base(X64.Add32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add64.cs index 43d39cc46c..76b1419250 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Add64.cs @@ -18,7 +18,7 @@ public Add64() : base(X64.Add64, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addsd.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addsd.cs index 2756fc6b34..022c85415d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addsd.cs @@ -18,7 +18,7 @@ public Addsd() : base(X64.Addsd, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addss.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addss.cs index 72d7d80ec8..aa9410f998 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Addss.cs @@ -18,7 +18,7 @@ public Addss() : base(X64.Addss, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And32.cs index 3ee0a46e1c..03566a0944 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And32.cs @@ -18,7 +18,7 @@ public And32() : base(X64.And32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And64.cs index 4281169238..19f2909837 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/And64.cs @@ -18,7 +18,7 @@ public And64() : base(X64.And64, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul32.cs index 48bcd45a49..9b4740901d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul32.cs @@ -18,7 +18,7 @@ public IMul32() : base(X64.IMul32, TransformType.Auto | TransformType.Optimizati public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul64.cs index 5f69d9a018..8f4e164078 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/IMul64.cs @@ -18,7 +18,7 @@ public IMul64() : base(X64.IMul64, TransformType.Auto | TransformType.Optimizati public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulsd.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulsd.cs index 013ffa94e3..afbda09eee 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulsd.cs @@ -18,7 +18,7 @@ public Mulsd() : base(X64.Mulsd, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulss.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulss.cs index d442321f8d..e770d35bc1 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Mulss.cs @@ -18,7 +18,7 @@ public Mulss() : base(X64.Mulss, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or32.cs index dd9ab08c38..0e7af51d69 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or32.cs @@ -18,7 +18,7 @@ public Or32() : base(X64.Or32, TransformType.Auto | TransformType.Optimization) public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or64.cs index d752ef3a39..a4805826e9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Or64.cs @@ -18,7 +18,7 @@ public Or64() : base(X64.Or64, TransformType.Auto | TransformType.Optimization) public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor32.cs index 2c5f5ddaa5..d2dac3c1a8 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor32.cs @@ -18,7 +18,7 @@ public Xor32() : base(X64.Xor32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor64.cs index e47d2e8afc..12cd812abe 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Ordering/Xor64.cs @@ -18,7 +18,7 @@ public Xor64() : base(X64.Xor64, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs index a0d71bb96d..762d73aedf 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs @@ -16,7 +16,7 @@ public SubFromZero() : base(X64.Sub64, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs index 32a95a6d7d..6fb9d0ecd3 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs @@ -16,7 +16,7 @@ public And32Add32ToBlsr32() : base(X64.And32, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public And32Add32ToBlsr32_v1() : base(X64.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -114,7 +114,7 @@ public And32Add32ToBlsr32_v2() : base(X64.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -143,7 +143,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -163,7 +163,7 @@ public And32Add32ToBlsr32_v3() : base(X64.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -192,7 +192,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And64Add64ToBlsr64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And64Add64ToBlsr64.cs index 1a96c1260c..0365dc9d0e 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And64Add64ToBlsr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Specific/And64Add64ToBlsr64.cs @@ -16,7 +16,7 @@ public And64Add64ToBlsr64() : base(X64.And64, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public And64Add64ToBlsr64_v1() : base(X64.And64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -114,7 +114,7 @@ public And64Add64ToBlsr64_v2() : base(X64.And64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -143,7 +143,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -163,7 +163,7 @@ public And64Add64ToBlsr64_v3() : base(X64.And64, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -192,7 +192,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs index 9a3194262e..ffb5ee747f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs @@ -16,7 +16,7 @@ public Mov32Coalescing() : base(X64.Mov32, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov64Coalescing.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov64Coalescing.cs index 82520f63a7..b7c43c0b17 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov64Coalescing.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/Standard/Mov64Coalescing.cs @@ -16,7 +16,7 @@ public Mov64Coalescing() : base(X64.Mov64, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs index 556781478b..549ff7038c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs @@ -16,7 +16,7 @@ public Add32By1Not32() : base(X64.Add32, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add32By1Not32_v1() : base(X64.Add32, TransformType.Auto | TransformType.O { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -88,7 +88,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs index eae859d508..940afca75a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs @@ -16,7 +16,7 @@ public Add32ByZero() : base(X64.Add32, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64By1Not64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64By1Not64.cs index c328aea826..11455af411 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64By1Not64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64By1Not64.cs @@ -16,7 +16,7 @@ public Add64By1Not64() : base(X64.Add64, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add64By1Not64_v1() : base(X64.Add64, TransformType.Auto | TransformType.O { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -88,7 +88,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64ByZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64ByZero.cs index 88dff12b8b..31c4ae5bc6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64ByZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Add64ByZero.cs @@ -16,7 +16,7 @@ public Add64ByZero() : base(X64.Add64, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs index 5579fe092d..79953dbeca 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs @@ -16,7 +16,7 @@ public Inc32Not32() : base(X64.Inc32, TransformType.Auto | TransformType.Optimiz { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc64Not64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc64Not64.cs index c37d380087..3ab655ecdd 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc64Not64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Inc64Not64.cs @@ -16,7 +16,7 @@ public Inc64Not64() : base(X64.Inc64, TransformType.Auto | TransformType.Optimiz { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs index a2118cabea..ed032dd2b9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs @@ -16,7 +16,7 @@ public Sub32ByZero() : base(X64.Sub32, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs index ad06335a86..09edcb5558 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Auto/StrengthReduction/Sub64ByZero.cs @@ -16,7 +16,7 @@ public Sub64ByZero() : base(X64.Sub64, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Deadcode.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Deadcode.cs index cd43f89f81..3deb851d0f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Deadcode.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Deadcode.cs @@ -11,7 +11,7 @@ public Deadcode() : base(TransformType.Manual | TransformType.Optimization) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount != 1) return false; @@ -59,7 +59,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs index 92ad064779..4ff99d1fd0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs @@ -11,7 +11,7 @@ public Mov32Coalescing() : base(X64.Mov32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs index 4945b3dd81..eb4108ed18 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs @@ -11,7 +11,7 @@ public Mov32ConstantReuse() : base(X64.Mov32, TransformType.Manual | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = context.Node.PreviousNonEmpty; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Unless.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Unless.cs index 1e705fa33d..90fec5b86c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Unless.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov32Unless.cs @@ -11,7 +11,7 @@ public Mov32Unless() : base(X64.Mov32, TransformType.Manual | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Coalescing.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Coalescing.cs index 8fecb6956f..1b731c1a71 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Coalescing.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Coalescing.cs @@ -11,7 +11,7 @@ public Mov64Coalescing() : base(X64.Mov64, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64ConstantReuse.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64ConstantReuse.cs index e5f5b1128b..6b1d1f31b9 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64ConstantReuse.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64ConstantReuse.cs @@ -11,7 +11,7 @@ public Mov64ConstantReuse() : base(X64.Mov64, TransformType.Manual | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = context.Node.PreviousNonEmpty; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Unless.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Unless.cs index 12d90cbb78..4c210987a0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Unless.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Special/Mov64Unless.cs @@ -11,7 +11,7 @@ public Mov64Unless() : base(X64.Mov64, TransformType.Manual | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add32.cs index 7cc0d9f375..0572329c47 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add32.cs @@ -17,7 +17,7 @@ public Add32() : base(X64.Add32, TransformType.Manual | TransformType.Optimizati { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsCPURegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var next = context.Node.NextNonEmpty; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add64.cs index 077520f1c1..6bf2b6df8d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Stack/Add64.cs @@ -17,7 +17,7 @@ public Add64() : base(X64.Add64, TransformType.Manual | TransformType.Optimizati { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsCPURegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var next = context.Node.NextNonEmpty; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs index 2858976a9e..f3df4bf25d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs @@ -13,7 +13,7 @@ public Add32ToInc32() : base(X64.Add32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs index 1d1a8678f7..eeb2d73931 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs @@ -16,7 +16,7 @@ public Add32ToLea32() : base(X64.Add32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Lea32, context.Result, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add64ToLea64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add64ToLea64.cs index 985343a049..4b58f849af 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add64ToLea64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Add64ToLea64.cs @@ -16,7 +16,7 @@ public Add64ToLea64() : base(X64.Add64, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Lea64, context.Result, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs index 59ac71405f..f91e1f325a 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs @@ -11,7 +11,7 @@ public Cmp32ToTest32() : base(X64.Cmp32, TransformType.Manual | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Test32, null, context.Operand1, context.Operand1); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs index a8ceb2d51b..3c6ea69d70 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs @@ -11,7 +11,7 @@ public Cmp32ToZero() : base(X64.Cmp32, TransformType.Manual | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs index c82a3e9ffc..6a5b604854 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs @@ -13,7 +13,7 @@ public Lea32ToDec32() : base(X64.Lea32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs index 3a2bde5240..4912814618 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs @@ -13,7 +13,7 @@ public Lea32ToInc32() : base(X64.Lea32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs index 0c4496228f..e958e7d952 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs @@ -11,7 +11,7 @@ public Mov32ToXor32() : base(X64.Mov32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstantZero) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Xor32, context.Result, context.Result, context.Result); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov64ToXor64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov64ToXor64.cs index fd7d60b92c..2e4c3c2681 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov64ToXor64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Mov64ToXor64.cs @@ -11,7 +11,7 @@ public Mov64ToXor64() : base(X64.Mov64, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstantZero) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X64.Xor64, context.Result, context.Result, context.Result); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs index 015b37ef80..aa9fd0a290 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs @@ -13,7 +13,7 @@ public Sub32ToDec32() : base(X64.Sub32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs index 4ab45cc069..e151e66360 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs @@ -16,7 +16,7 @@ public Sub32ToLea32() : base(X64.Sub32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var constant = Operand.CreateConstant(-context.Operand2.ConstantSigned32); diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub64ToLea64.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub64ToLea64.cs index 5db5b1f5a2..7995602a0f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub64ToLea64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Sub64ToLea64.cs @@ -16,7 +16,7 @@ public Sub64ToLea64() : base(X64.Sub64, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var constant = Operand.CreateConstant(-context.Operand2.ConstantSigned32); diff --git a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs index ae1016ff20..d09ffeec2f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs @@ -11,7 +11,7 @@ public Test32ToZero() : base(X64.Test32, TransformType.Manual | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToI64.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToI64.cs index 852459d60e..2eab722e26 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToI64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToI64.cs @@ -16,12 +16,12 @@ public ConvertR4ToI64() : base(IRInstruction.ConvertR4ToI64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R4ToI8"); } diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToU64.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToU64.cs index 399c36c094..04a5361197 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToU64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR4ToU64.cs @@ -16,12 +16,12 @@ public ConvertR4ToU64() : base(IRInstruction.ConvertR4ToU64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R4ToU8"); } diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToI64.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToI64.cs index 2d7f169cd6..a1c4c807c7 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToI64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToI64.cs @@ -16,12 +16,12 @@ public ConvertR8ToI64() : base(IRInstruction.ConvertR8ToI64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R8ToI8"); } diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToU64.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToU64.cs index 64dcc8ce5a..7ff8a1ad98 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToU64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/ConvertR8ToU64.cs @@ -16,12 +16,12 @@ public ConvertR8ToU64() : base(IRInstruction.ConvertR8ToU64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R8ToU8"); } diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulCarryOut64.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulCarryOut64.cs index 05fb5aeab5..11e3fa8749 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulCarryOut64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulCarryOut64.cs @@ -17,12 +17,12 @@ public MulCarryOut64() : base(IRInstruction.MulCarryOut64, TransformType.Manual public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.GetMethod("Mosa.Runtime.Math.Multiplication", "Mul64Carry"); diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulOverflowOut64.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulOverflowOut64.cs index 5633646128..104f313e77 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulOverflowOut64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/MulOverflowOut64.cs @@ -17,12 +17,12 @@ public MulOverflowOut64() : base(IRInstruction.MulOverflowOut64, TransformType.M public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.GetMethod("Mosa.Runtime.Math.Multiplication", "Mul64Overflow"); diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR4.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR4.cs index 0cfda01562..11615cb229 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR4.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR4.cs @@ -15,12 +15,12 @@ public RemR4() : base(IRInstruction.RemR4, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); Debug.Assert(context.Operand1.IsR4); diff --git a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR8.cs b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR8.cs index 63cb600a45..f5078d5c1b 100644 --- a/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/RuntimeCall/RemR8.cs @@ -15,12 +15,12 @@ public RemR8() : base(IRInstruction.RemR8, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); Debug.Assert(context.Operand1.IsR8); diff --git a/Source/Mosa.Compiler.x64/Transforms/Stack/Epilogue.cs b/Source/Mosa.Compiler.x64/Transforms/Stack/Epilogue.cs index 939db0b272..45bbfa5c1d 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Stack/Epilogue.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Stack/Epilogue.cs @@ -14,12 +14,12 @@ public Epilogue() : base(IRInstruction.Epilogue, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.MethodCompiler.IsLocalStackFinalized; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); diff --git a/Source/Mosa.Compiler.x64/Transforms/Stack/Prologue.cs b/Source/Mosa.Compiler.x64/Transforms/Stack/Prologue.cs index cb1c08dac7..e6b4edbb32 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Stack/Prologue.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Stack/Prologue.cs @@ -14,12 +14,12 @@ public Prologue() : base(IRInstruction.Prologue, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.MethodCompiler.IsLocalStackFinalized; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (!transform.MethodCompiler.IsStackFrameRequired) return; diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr32.cs index 5d65639aa7..627de3196f 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr32.cs @@ -14,12 +14,12 @@ public Blsr32() : base(X64.Blsr32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr64.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr64.cs index 6abac5f693..921457a4fd 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Blsr64.cs @@ -14,12 +14,12 @@ public Blsr64() : base(X64.Blsr64, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov32.cs index 24e3647243..8d5d86605c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov32.cs @@ -14,7 +14,7 @@ public CMov32() : base(X64.CMov32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X64.Mov32); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov64.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov64.cs index 1a7ec0ee34..7f90f5d0e5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/CMov64.cs @@ -14,7 +14,7 @@ public CMov64() : base(X64.CMov64, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X64.Mov64); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp32.cs index f931f85107..31d659fd92 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp32.cs @@ -14,12 +14,12 @@ public Cmp32() : base(X64.Cmp32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var left = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp64.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp64.cs index 2988616f09..ec80983d5c 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Cmp64.cs @@ -14,12 +14,12 @@ public Cmp64() : base(X64.Cmp64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var left = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Lzcnt32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Lzcnt32.cs index cf199c7c48..8cc76fad51 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Lzcnt32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Lzcnt32.cs @@ -11,12 +11,12 @@ namespace Mosa.Compiler.x64.Transforms.Tweak; // { // } -// public override bool Match(Context context, TransformContext transform) +// public override bool Match(Context context, Transform transform) // { // return true; // } -// public override void Transform(Context context, TransformContext transform) +// public override void Transform(Context context, Transform transform) // { // transform.MoveOperand1ToVirtualRegister(context, X64.Mov32); // } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov32.cs index a0090c2385..c17d2dbe33 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov32.cs @@ -15,12 +15,12 @@ public Mov32() : base(X64.Mov32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov64.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov64.cs index fa0970f8ad..45962371ab 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Mov64.cs @@ -15,12 +15,12 @@ public Mov64() : base(X64.Mov64, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad16.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad16.cs index dca1a7d5f8..838f034bb8 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad16.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad16.cs @@ -15,12 +15,12 @@ public MovLoad16() : base(X64.MovLoad16, TransformType.Manual | TransformType.Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Result.Register == CPURegister.RSI || context.Result.Register == CPURegister.RDI; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad8.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad8.cs index c2ed07f759..e9b33d2c86 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovLoad8.cs @@ -15,12 +15,12 @@ public MovLoad8() : base(X64.MovLoad8, TransformType.Manual | TransformType.Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Result.Register == CPURegister.RSI || context.Result.Register == CPURegister.RDI; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore16.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore16.cs index 9a15ceae51..e0f77b3505 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore16.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore16.cs @@ -14,12 +14,12 @@ public MovStore16() : base(X64.MovStore16, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand3.IsCPURegister && (context.Operand3.Register == CPURegister.RSI || context.Operand3.Register == CPURegister.RDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var value = context.Operand3; var dest = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore8.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore8.cs index 3d14cb26b7..a35c8d1ddf 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore8.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/MovStore8.cs @@ -14,12 +14,12 @@ public MovStore8() : base(X64.MovStore8, TransformType.Manual | TransformType.Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand3.IsCPURegister && (context.Operand3.Register == CPURegister.RSI || context.Operand3.Register == CPURegister.RDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var value = context.Operand3; var dest = context.Operand1; diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movsd.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movsd.cs index a8cca01840..f2acdb1458 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movsd.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movsd.cs @@ -15,12 +15,12 @@ public Movsd() : base(X64.Movsd, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); Debug.Assert(context.Operand1.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movss.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movss.cs index d6d36c460b..eb77775bb5 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movss.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movss.cs @@ -15,12 +15,12 @@ public Movss() : base(X64.Movss, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); Debug.Assert(context.Operand1.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To32.cs index 73590f25f7..191d1bff86 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To32.cs @@ -15,12 +15,12 @@ public Movzx16To32() : base(X64.Movzx16To32, TransformType.Manual | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.Register != CPURegister.RSI && context.Operand1.Register != CPURegister.RDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To64.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To64.cs index 9d62260fe0..9afab590da 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx16To64.cs @@ -15,12 +15,12 @@ public Movzx16To64() : base(X64.Movzx16To64, TransformType.Manual | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.Register != CPURegister.RSI && context.Operand1.Register != CPURegister.RDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To32.cs index af7e07840e..e6d3720d91 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To32.cs @@ -15,12 +15,12 @@ public Movzx8To32() : base(X64.Movzx8To32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.Register != CPURegister.RSI && context.Operand1.Register != CPURegister.RDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To64.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To64.cs index 4aad41298b..5745f1e7b0 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To64.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Movzx8To64.cs @@ -15,12 +15,12 @@ public Movzx8To64() : base(X64.Movzx8To64, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !(context.Operand1.Register != CPURegister.RSI && context.Operand1.Register != CPURegister.RDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Nop.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Nop.cs index ae7849d13f..f601dc7e40 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Nop.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Nop.cs @@ -14,12 +14,12 @@ public Nop() : base(X64.Nop, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Popcnt32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Popcnt32.cs index 9f0fd18835..a8e2e1efc2 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Popcnt32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Popcnt32.cs @@ -11,12 +11,12 @@ namespace Mosa.Compiler.x64.Transforms.Tweak; // { // } -// public override bool Match(Context context, TransformContext transform) +// public override bool Match(Context context, Transform transform) // { // return true; // } -// public override void Transform(Context context, TransformContext transform) +// public override void Transform(Context context, Transform transform) // { // transform.MoveOperand1ToVirtualRegister(context, X64.Mov32); // } diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Setcc.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Setcc.cs index de5c7fa03f..c4b93448e6 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Setcc.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Setcc.cs @@ -15,12 +15,12 @@ public Setcc() : base(X64.Setcc, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Result.Register == CPURegister.RSI || context.Result.Register == CPURegister.RDI; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x64/Transforms/Tweak/Tzcnt32.cs b/Source/Mosa.Compiler.x64/Transforms/Tweak/Tzcnt32.cs index 5b80e36f50..7471762209 100644 --- a/Source/Mosa.Compiler.x64/Transforms/Tweak/Tzcnt32.cs +++ b/Source/Mosa.Compiler.x64/Transforms/Tweak/Tzcnt32.cs @@ -11,12 +11,12 @@ namespace Mosa.Compiler.x64.Transforms.Tweak; // { // } -// public override bool Match(Context context, TransformContext transform) +// public override bool Match(Context context, Transform transform) // { // return true; // } -// public override void Transform(Context context, TransformContext transform) +// public override void Transform(Context context, Transform transform) // { // transform.MoveOperand1ToVirtualRegister(context, X64.Mov32); // } diff --git a/Source/Mosa.Compiler.x86/Architecture.cs b/Source/Mosa.Compiler.x86/Architecture.cs index b8f8641928..eba552d2e6 100644 --- a/Source/Mosa.Compiler.x86/Architecture.cs +++ b/Source/Mosa.Compiler.x86/Architecture.cs @@ -280,7 +280,7 @@ public override bool IsInstructionMove(BaseInstruction instruction) /// The operand. /// /// true if [is parameter store] [the specified context]; otherwise, false. - public override bool IsParameterStore(InstructionNode node, out Operand operand) + public override bool IsParameterStore(Node node, out Operand operand) { operand = null; @@ -312,7 +312,7 @@ public override bool IsParameterStore(InstructionNode node, out Operand operand) /// The node. /// /// true if [is parameter load] [the specified context]; otherwise, false. - public override bool IsParameterLoad(InstructionNode node, out Operand operand) + public override bool IsParameterLoad(Node node, out Operand operand) { operand = null; diff --git a/Source/Mosa.Compiler.x86/GlobalSuppressions.cs b/Source/Mosa.Compiler.x86/GlobalSuppressions.cs index f3125f9e4a..80dcb969b8 100644 --- a/Source/Mosa.Compiler.x86/GlobalSuppressions.cs +++ b/Source/Mosa.Compiler.x86/GlobalSuppressions.cs @@ -5,5 +5,5 @@ // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "RCS1202:Avoid NullReferenceException.", Justification = "", Scope = "member", Target = "~M:Mosa.Compiler.x86.Instructions.Pop.EmitLegacy(Mosa.Compiler.Framework.InstructionNode,Mosa.Compiler.x86.X86CodeEmitter)")] -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "RCS1202:Avoid NullReferenceException.", Justification = "", Scope = "member", Target = "~M:Mosa.Compiler.x86.Instructions.Push.EmitLegacy(Mosa.Compiler.Framework.InstructionNode,Mosa.Compiler.x86.X86CodeEmitter)")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "RCS1202:Avoid NullReferenceException.", Justification = "", Scope = "member", Target = "~M:Mosa.Compiler.x86.Instructions.Pop.EmitLegacy(Mosa.Compiler.Framework.Node,Mosa.Compiler.x86.X86CodeEmitter)")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "RCS1202:Avoid NullReferenceException.", Justification = "", Scope = "member", Target = "~M:Mosa.Compiler.x86.Instructions.Push.EmitLegacy(Mosa.Compiler.Framework.Node,Mosa.Compiler.x86.X86CodeEmitter)")] diff --git a/Source/Mosa.Compiler.x86/Instructions/Adc32.cs b/Source/Mosa.Compiler.x86/Instructions/Adc32.cs index 9521904af4..aa81946e07 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Adc32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Adc32.cs @@ -31,7 +31,7 @@ internal Adc32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Add32.cs b/Source/Mosa.Compiler.x86/Instructions/Add32.cs index 9b2fe6ef36..d3668a5051 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Add32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Add32.cs @@ -29,7 +29,7 @@ internal Add32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/AddSD.cs b/Source/Mosa.Compiler.x86/Instructions/AddSD.cs index 81433025f4..2ca438beb1 100644 --- a/Source/Mosa.Compiler.x86/Instructions/AddSD.cs +++ b/Source/Mosa.Compiler.x86/Instructions/AddSD.cs @@ -19,7 +19,7 @@ internal Addsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/AddSS.cs b/Source/Mosa.Compiler.x86/Instructions/AddSS.cs index 787c10568a..ad0b625292 100644 --- a/Source/Mosa.Compiler.x86/Instructions/AddSS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/AddSS.cs @@ -19,7 +19,7 @@ internal Addss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/And32.cs b/Source/Mosa.Compiler.x86/Instructions/And32.cs index 7d6b17f8f3..55204a50b0 100644 --- a/Source/Mosa.Compiler.x86/Instructions/And32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/And32.cs @@ -33,7 +33,7 @@ internal And32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/AndN32.cs b/Source/Mosa.Compiler.x86/Instructions/AndN32.cs index e5564e5af5..b0996da9cd 100644 --- a/Source/Mosa.Compiler.x86/Instructions/AndN32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/AndN32.cs @@ -29,7 +29,7 @@ internal AndN32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Blsr32.cs b/Source/Mosa.Compiler.x86/Instructions/Blsr32.cs index cdd7f236f1..bf44a42b68 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Blsr32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Blsr32.cs @@ -33,7 +33,7 @@ internal Blsr32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/BochsDebug.cs b/Source/Mosa.Compiler.x86/Instructions/BochsDebug.cs index 742177e5ea..72170aced9 100644 --- a/Source/Mosa.Compiler.x86/Instructions/BochsDebug.cs +++ b/Source/Mosa.Compiler.x86/Instructions/BochsDebug.cs @@ -19,7 +19,7 @@ internal BochsDebug() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Branch.cs b/Source/Mosa.Compiler.x86/Instructions/Branch.cs index 807655634e..e247e947d1 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Branch.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Branch.cs @@ -35,7 +35,7 @@ internal Branch() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Break.cs b/Source/Mosa.Compiler.x86/Instructions/Break.cs index 3941b83246..bd7e0051b3 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Break.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Break.cs @@ -19,7 +19,7 @@ internal Break() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Bt32.cs b/Source/Mosa.Compiler.x86/Instructions/Bt32.cs index 6332fdf8b2..4788bd2361 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Bt32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Bt32.cs @@ -31,7 +31,7 @@ internal Bt32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Btr32.cs b/Source/Mosa.Compiler.x86/Instructions/Btr32.cs index 0b6bb0c27a..37dd2a806a 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Btr32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Btr32.cs @@ -31,7 +31,7 @@ internal Btr32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Bts32.cs b/Source/Mosa.Compiler.x86/Instructions/Bts32.cs index 75f68ff635..727c015a47 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Bts32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Bts32.cs @@ -31,7 +31,7 @@ internal Bts32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/CMov32.cs b/Source/Mosa.Compiler.x86/Instructions/CMov32.cs index 5109fbbf73..0c896663a4 100644 --- a/Source/Mosa.Compiler.x86/Instructions/CMov32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/CMov32.cs @@ -31,7 +31,7 @@ internal CMov32() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Call.cs b/Source/Mosa.Compiler.x86/Instructions/Call.cs index 92b185676b..79d95a67b9 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Call.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Call.cs @@ -41,7 +41,7 @@ internal Call() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cdq32.cs b/Source/Mosa.Compiler.x86/Instructions/Cdq32.cs index ecf468e8f7..64ed73868f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cdq32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cdq32.cs @@ -17,7 +17,7 @@ internal Cdq32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cli.cs b/Source/Mosa.Compiler.x86/Instructions/Cli.cs index 36ecce8f6a..dad1c37fa0 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cli.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cli.cs @@ -19,7 +19,7 @@ internal Cli() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cmp32.cs b/Source/Mosa.Compiler.x86/Instructions/Cmp32.cs index fea175634c..03a2eddeda 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cmp32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cmp32.cs @@ -37,7 +37,7 @@ internal Cmp32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/CmpXchgLoad32.cs b/Source/Mosa.Compiler.x86/Instructions/CmpXchgLoad32.cs index 8d1137ad57..61d928022b 100644 --- a/Source/Mosa.Compiler.x86/Instructions/CmpXchgLoad32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/CmpXchgLoad32.cs @@ -39,7 +39,7 @@ internal CmpXChgLoad32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 4); diff --git a/Source/Mosa.Compiler.x86/Instructions/Comisd.cs b/Source/Mosa.Compiler.x86/Instructions/Comisd.cs index c8df605c5e..1a7697d803 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Comisd.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Comisd.cs @@ -31,7 +31,7 @@ internal Comisd() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Comiss.cs b/Source/Mosa.Compiler.x86/Instructions/Comiss.cs index 48726c2c6a..94553214c4 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Comiss.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Comiss.cs @@ -31,7 +31,7 @@ internal Comiss() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/CpuId.cs b/Source/Mosa.Compiler.x86/Instructions/CpuId.cs index 7fe75382c8..b5952dc51d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/CpuId.cs +++ b/Source/Mosa.Compiler.x86/Instructions/CpuId.cs @@ -17,7 +17,7 @@ internal CpuId() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cvtsd2ss.cs b/Source/Mosa.Compiler.x86/Instructions/Cvtsd2ss.cs index abc20f9b88..6cb37f79e8 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cvtsd2ss.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cvtsd2ss.cs @@ -17,7 +17,7 @@ internal Cvtsd2ss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cvtsi2sd32.cs b/Source/Mosa.Compiler.x86/Instructions/Cvtsi2sd32.cs index df055e3d59..e001720475 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cvtsi2sd32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cvtsi2sd32.cs @@ -17,7 +17,7 @@ internal Cvtsi2sd32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cvtsi2ss32.cs b/Source/Mosa.Compiler.x86/Instructions/Cvtsi2ss32.cs index f4ae8cdc38..6d7cdb2f51 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cvtsi2ss32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cvtsi2ss32.cs @@ -17,7 +17,7 @@ internal Cvtsi2ss32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cvtss2sd.cs b/Source/Mosa.Compiler.x86/Instructions/Cvtss2sd.cs index c2a710b19b..beeecd4cfc 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cvtss2sd.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cvtss2sd.cs @@ -17,7 +17,7 @@ internal Cvtss2sd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cvttsd2si32.cs b/Source/Mosa.Compiler.x86/Instructions/Cvttsd2si32.cs index 539f57150a..1a0bc4fec1 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cvttsd2si32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cvttsd2si32.cs @@ -17,7 +17,7 @@ internal Cvttsd2si32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Cvttss2si32.cs b/Source/Mosa.Compiler.x86/Instructions/Cvttss2si32.cs index ff716adf73..d84a118839 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Cvttss2si32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Cvttss2si32.cs @@ -17,7 +17,7 @@ internal Cvttss2si32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Dec32.cs b/Source/Mosa.Compiler.x86/Instructions/Dec32.cs index 65e6127a20..c0e07c2b88 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Dec32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Dec32.cs @@ -25,7 +25,7 @@ internal Dec32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Div32.cs b/Source/Mosa.Compiler.x86/Instructions/Div32.cs index c8c5c61a7b..2014f9be7f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Div32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Div32.cs @@ -37,7 +37,7 @@ internal Div32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/DivSD.cs b/Source/Mosa.Compiler.x86/Instructions/DivSD.cs index c9e22724a4..1ca790ebef 100644 --- a/Source/Mosa.Compiler.x86/Instructions/DivSD.cs +++ b/Source/Mosa.Compiler.x86/Instructions/DivSD.cs @@ -17,7 +17,7 @@ internal Divsd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/DivSS.cs b/Source/Mosa.Compiler.x86/Instructions/DivSS.cs index 51c749d28c..1b75f2655c 100644 --- a/Source/Mosa.Compiler.x86/Instructions/DivSS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/DivSS.cs @@ -17,7 +17,7 @@ internal Divss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Hlt.cs b/Source/Mosa.Compiler.x86/Instructions/Hlt.cs index 169febd417..183afac144 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Hlt.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Hlt.cs @@ -19,7 +19,7 @@ internal Hlt() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/IDiv32.cs b/Source/Mosa.Compiler.x86/Instructions/IDiv32.cs index 395961be3b..ba130e6f92 100644 --- a/Source/Mosa.Compiler.x86/Instructions/IDiv32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/IDiv32.cs @@ -37,7 +37,7 @@ internal IDiv32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/IMul1o32.cs b/Source/Mosa.Compiler.x86/Instructions/IMul1o32.cs index 0083e20c23..0b7cc2bb52 100644 --- a/Source/Mosa.Compiler.x86/Instructions/IMul1o32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/IMul1o32.cs @@ -33,7 +33,7 @@ internal IMul1o32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/IMul32.cs b/Source/Mosa.Compiler.x86/Instructions/IMul32.cs index 3820ae716f..c6d712bd2d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/IMul32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/IMul32.cs @@ -33,7 +33,7 @@ internal IMul32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/IMul32o1.cs b/Source/Mosa.Compiler.x86/Instructions/IMul32o1.cs index 34119dfe5f..abc2c2531a 100644 --- a/Source/Mosa.Compiler.x86/Instructions/IMul32o1.cs +++ b/Source/Mosa.Compiler.x86/Instructions/IMul32o1.cs @@ -35,7 +35,7 @@ internal IMul32o1() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/IMul3o32.cs b/Source/Mosa.Compiler.x86/Instructions/IMul3o32.cs index 92ce150525..7d59ca2f24 100644 --- a/Source/Mosa.Compiler.x86/Instructions/IMul3o32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/IMul3o32.cs @@ -33,7 +33,7 @@ internal IMul3o32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/IRetd.cs b/Source/Mosa.Compiler.x86/Instructions/IRetd.cs index 0e9e66a81e..d168c327c2 100644 --- a/Source/Mosa.Compiler.x86/Instructions/IRetd.cs +++ b/Source/Mosa.Compiler.x86/Instructions/IRetd.cs @@ -43,7 +43,7 @@ internal IRetd() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/In16.cs b/Source/Mosa.Compiler.x86/Instructions/In16.cs index ecefadcd0d..a37400bfe8 100644 --- a/Source/Mosa.Compiler.x86/Instructions/In16.cs +++ b/Source/Mosa.Compiler.x86/Instructions/In16.cs @@ -21,7 +21,7 @@ internal In16() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/In32.cs b/Source/Mosa.Compiler.x86/Instructions/In32.cs index 17ff3a8702..52097b3297 100644 --- a/Source/Mosa.Compiler.x86/Instructions/In32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/In32.cs @@ -21,7 +21,7 @@ internal In32() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/In8.cs b/Source/Mosa.Compiler.x86/Instructions/In8.cs index 6444ba6c3a..0c3e2bd1d6 100644 --- a/Source/Mosa.Compiler.x86/Instructions/In8.cs +++ b/Source/Mosa.Compiler.x86/Instructions/In8.cs @@ -21,7 +21,7 @@ internal In8() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Inc32.cs b/Source/Mosa.Compiler.x86/Instructions/Inc32.cs index c0c1eea485..6789821e3f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Inc32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Inc32.cs @@ -25,7 +25,7 @@ internal Inc32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Int.cs b/Source/Mosa.Compiler.x86/Instructions/Int.cs index 0b879620c0..d469b063a9 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Int.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Int.cs @@ -39,7 +39,7 @@ internal Int() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Invlpg.cs b/Source/Mosa.Compiler.x86/Instructions/Invlpg.cs index f146f3804b..e6f340e77d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Invlpg.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Invlpg.cs @@ -19,7 +19,7 @@ internal Invlpg() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Jmp.cs b/Source/Mosa.Compiler.x86/Instructions/Jmp.cs index 2fb6e6fcce..c53018f8ca 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Jmp.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Jmp.cs @@ -41,7 +41,7 @@ internal Jmp() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/JmpExternal.cs b/Source/Mosa.Compiler.x86/Instructions/JmpExternal.cs index 85e91423bb..f6b9b1cee2 100644 --- a/Source/Mosa.Compiler.x86/Instructions/JmpExternal.cs +++ b/Source/Mosa.Compiler.x86/Instructions/JmpExternal.cs @@ -41,7 +41,7 @@ internal JmpExternal() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/JmpFar.cs b/Source/Mosa.Compiler.x86/Instructions/JmpFar.cs index 1883988e42..05b359a16d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/JmpFar.cs +++ b/Source/Mosa.Compiler.x86/Instructions/JmpFar.cs @@ -19,7 +19,7 @@ internal JmpFar() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Lea32.cs b/Source/Mosa.Compiler.x86/Instructions/Lea32.cs index 089b3a9c6a..2e7bf8fd3d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Lea32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Lea32.cs @@ -17,7 +17,7 @@ internal Lea32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Leave.cs b/Source/Mosa.Compiler.x86/Instructions/Leave.cs index fa4d5cf198..b519960af4 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Leave.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Leave.cs @@ -39,7 +39,7 @@ internal Leave() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Lgdt.cs b/Source/Mosa.Compiler.x86/Instructions/Lgdt.cs index 957bffffd1..89f50bd7ce 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Lgdt.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Lgdt.cs @@ -19,7 +19,7 @@ internal Lgdt() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Lidt.cs b/Source/Mosa.Compiler.x86/Instructions/Lidt.cs index 9777637783..850aed30b1 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Lidt.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Lidt.cs @@ -19,7 +19,7 @@ internal Lidt() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Lock.cs b/Source/Mosa.Compiler.x86/Instructions/Lock.cs index 61b1d51acb..1c33ce0649 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Lock.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Lock.cs @@ -19,7 +19,7 @@ internal Lock() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Lzcnt32.cs b/Source/Mosa.Compiler.x86/Instructions/Lzcnt32.cs index 2814f77c26..57047be70c 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Lzcnt32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Lzcnt32.cs @@ -35,7 +35,7 @@ internal Lzcnt32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Mov32.cs b/Source/Mosa.Compiler.x86/Instructions/Mov32.cs index e7ccb44d45..0c2359f58e 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Mov32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Mov32.cs @@ -17,7 +17,7 @@ internal Mov32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovAPS.cs b/Source/Mosa.Compiler.x86/Instructions/MovAPS.cs index 722a6c2408..8725f56bb7 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovAPS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovAPS.cs @@ -17,7 +17,7 @@ internal Movaps() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovCRLoad32.cs b/Source/Mosa.Compiler.x86/Instructions/MovCRLoad32.cs index 1a2413e9d2..4f4001daf8 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovCRLoad32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovCRLoad32.cs @@ -19,7 +19,7 @@ internal MovCRLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovCRStore32.cs b/Source/Mosa.Compiler.x86/Instructions/MovCRStore32.cs index 78ea2fdb8a..fffb97851b 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovCRStore32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovCRStore32.cs @@ -19,7 +19,7 @@ internal MovCRStore32() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovLoad16.cs b/Source/Mosa.Compiler.x86/Instructions/MovLoad16.cs index 2e976ed11a..067cbe4a0b 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovLoad16.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovLoad16.cs @@ -19,7 +19,7 @@ internal MovLoad16() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovLoad32.cs b/Source/Mosa.Compiler.x86/Instructions/MovLoad32.cs index 5b3ec0ae62..8fced445ee 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovLoad32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovLoad32.cs @@ -19,7 +19,7 @@ internal MovLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovLoad8.cs b/Source/Mosa.Compiler.x86/Instructions/MovLoad8.cs index eb7e0c537b..5c04dacb23 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovLoad8.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovLoad8.cs @@ -19,7 +19,7 @@ internal MovLoad8() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovLoadSeg32.cs b/Source/Mosa.Compiler.x86/Instructions/MovLoadSeg32.cs index f74323796a..e50e1e0faf 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovLoadSeg32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovLoadSeg32.cs @@ -17,7 +17,7 @@ internal MovLoadSeg32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovStore16.cs b/Source/Mosa.Compiler.x86/Instructions/MovStore16.cs index 3ad52ca40b..cf4f1ade55 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovStore16.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovStore16.cs @@ -19,7 +19,7 @@ internal MovStore16() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovStore32.cs b/Source/Mosa.Compiler.x86/Instructions/MovStore32.cs index 0f77fa9497..752c5d54df 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovStore32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovStore32.cs @@ -19,7 +19,7 @@ internal MovStore32() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovStore8.cs b/Source/Mosa.Compiler.x86/Instructions/MovStore8.cs index 4b3323045a..13d779ff59 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovStore8.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovStore8.cs @@ -19,7 +19,7 @@ internal MovStore8() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovStoreSeg32.cs b/Source/Mosa.Compiler.x86/Instructions/MovStoreSeg32.cs index 8c35683538..c4f9232f26 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovStoreSeg32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovStoreSeg32.cs @@ -17,7 +17,7 @@ internal MovStoreSeg32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovUPS.cs b/Source/Mosa.Compiler.x86/Instructions/MovUPS.cs index a00e7afb63..17e332b418 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovUPS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovUPS.cs @@ -17,7 +17,7 @@ internal Movups() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovapsLoad.cs b/Source/Mosa.Compiler.x86/Instructions/MovapsLoad.cs index a485a9892c..013ba7bb71 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovapsLoad.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovapsLoad.cs @@ -19,7 +19,7 @@ internal MovapsLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movdi32ss.cs b/Source/Mosa.Compiler.x86/Instructions/Movdi32ss.cs index 6cfe3cf5d4..20c634dc8e 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movdi32ss.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movdi32ss.cs @@ -17,7 +17,7 @@ internal Movdi32ss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movdssi32.cs b/Source/Mosa.Compiler.x86/Instructions/Movdssi32.cs index 8be4ac9cb3..831ee3e13f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movdssi32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movdssi32.cs @@ -17,7 +17,7 @@ internal Movdssi32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movsd.cs b/Source/Mosa.Compiler.x86/Instructions/Movsd.cs index 1eee576758..4534d72066 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movsd.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movsd.cs @@ -17,7 +17,7 @@ internal Movsd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovsdLoad.cs b/Source/Mosa.Compiler.x86/Instructions/MovsdLoad.cs index 47fb773de0..d9ed4ac7b4 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovsdLoad.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovsdLoad.cs @@ -19,7 +19,7 @@ internal MovsdLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovsdStore.cs b/Source/Mosa.Compiler.x86/Instructions/MovsdStore.cs index 5013d28446..544a4461ef 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovsdStore.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovsdStore.cs @@ -19,7 +19,7 @@ internal MovsdStore() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movss.cs b/Source/Mosa.Compiler.x86/Instructions/Movss.cs index f83cb29bd4..12d08f3a34 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movss.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movss.cs @@ -17,7 +17,7 @@ internal Movss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovssLoad.cs b/Source/Mosa.Compiler.x86/Instructions/MovssLoad.cs index 6349681a01..18fda3cc13 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovssLoad.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovssLoad.cs @@ -19,7 +19,7 @@ internal MovssLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovssStore.cs b/Source/Mosa.Compiler.x86/Instructions/MovssStore.cs index 1bf949c5ec..0154fb4652 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovssStore.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovssStore.cs @@ -19,7 +19,7 @@ internal MovssStore() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movsx16To32.cs b/Source/Mosa.Compiler.x86/Instructions/Movsx16To32.cs index e3f60d5199..6f14d345c8 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movsx16To32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movsx16To32.cs @@ -17,7 +17,7 @@ internal Movsx16To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movsx8To32.cs b/Source/Mosa.Compiler.x86/Instructions/Movsx8To32.cs index 0ff6505f19..e9257d2fa8 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movsx8To32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movsx8To32.cs @@ -17,7 +17,7 @@ internal Movsx8To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovsxLoad16.cs b/Source/Mosa.Compiler.x86/Instructions/MovsxLoad16.cs index 224bd9418f..687efed549 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovsxLoad16.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovsxLoad16.cs @@ -19,7 +19,7 @@ internal MovsxLoad16() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovsxLoad8.cs b/Source/Mosa.Compiler.x86/Instructions/MovsxLoad8.cs index 69d10d84b0..70fb196e76 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovsxLoad8.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovsxLoad8.cs @@ -19,7 +19,7 @@ internal MovsxLoad8() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovupsLoad.cs b/Source/Mosa.Compiler.x86/Instructions/MovupsLoad.cs index 16e25560d0..191db2a4ab 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovupsLoad.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovupsLoad.cs @@ -19,7 +19,7 @@ internal MovupsLoad() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovupsStore.cs b/Source/Mosa.Compiler.x86/Instructions/MovupsStore.cs index 7e61c36214..ac288cfde4 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovupsStore.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovupsStore.cs @@ -19,7 +19,7 @@ internal MovupsStore() public override bool IsMemoryWrite => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movzx16To32.cs b/Source/Mosa.Compiler.x86/Instructions/Movzx16To32.cs index 67b2c54633..46b6d108c9 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movzx16To32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movzx16To32.cs @@ -17,7 +17,7 @@ internal Movzx16To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Movzx8To32.cs b/Source/Mosa.Compiler.x86/Instructions/Movzx8To32.cs index 7308fc7bff..1ffe5592a3 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Movzx8To32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Movzx8To32.cs @@ -17,7 +17,7 @@ internal Movzx8To32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovzxLoad16.cs b/Source/Mosa.Compiler.x86/Instructions/MovzxLoad16.cs index e7e63f58b7..2509826841 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovzxLoad16.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovzxLoad16.cs @@ -19,7 +19,7 @@ internal MovzxLoad16() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MovzxLoad8.cs b/Source/Mosa.Compiler.x86/Instructions/MovzxLoad8.cs index f182ca4a28..0d197235a9 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MovzxLoad8.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MovzxLoad8.cs @@ -19,7 +19,7 @@ internal MovzxLoad8() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Mul32.cs b/Source/Mosa.Compiler.x86/Instructions/Mul32.cs index f946a2906c..88efb262c0 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Mul32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Mul32.cs @@ -35,7 +35,7 @@ internal Mul32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MulSD.cs b/Source/Mosa.Compiler.x86/Instructions/MulSD.cs index 2adfff958c..242c694de5 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MulSD.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MulSD.cs @@ -19,7 +19,7 @@ internal Mulsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/MulSS.cs b/Source/Mosa.Compiler.x86/Instructions/MulSS.cs index c6bc14158a..acc4e0e74e 100644 --- a/Source/Mosa.Compiler.x86/Instructions/MulSS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/MulSS.cs @@ -19,7 +19,7 @@ internal Mulss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Neg32.cs b/Source/Mosa.Compiler.x86/Instructions/Neg32.cs index 5c5311a4bc..0b769d36cd 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Neg32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Neg32.cs @@ -37,7 +37,7 @@ internal Neg32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Nop.cs b/Source/Mosa.Compiler.x86/Instructions/Nop.cs index 3fb48252e0..222253cb24 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Nop.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Nop.cs @@ -17,7 +17,7 @@ internal Nop() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Not32.cs b/Source/Mosa.Compiler.x86/Instructions/Not32.cs index f5912d5849..2c69ea85c4 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Not32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Not32.cs @@ -17,7 +17,7 @@ internal Not32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Or32.cs b/Source/Mosa.Compiler.x86/Instructions/Or32.cs index 6d9467cb9a..42195dd8a1 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Or32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Or32.cs @@ -33,7 +33,7 @@ internal Or32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Out16.cs b/Source/Mosa.Compiler.x86/Instructions/Out16.cs index afc2d9be8c..7cd9d06776 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Out16.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Out16.cs @@ -21,7 +21,7 @@ internal Out16() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Out32.cs b/Source/Mosa.Compiler.x86/Instructions/Out32.cs index 6189ee6583..384d98661a 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Out32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Out32.cs @@ -21,7 +21,7 @@ internal Out32() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Out8.cs b/Source/Mosa.Compiler.x86/Instructions/Out8.cs index e65b1ae240..6474a40ef6 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Out8.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Out8.cs @@ -21,7 +21,7 @@ internal Out8() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/PXor.cs b/Source/Mosa.Compiler.x86/Instructions/PXor.cs index afcc35f44d..863cd32c23 100644 --- a/Source/Mosa.Compiler.x86/Instructions/PXor.cs +++ b/Source/Mosa.Compiler.x86/Instructions/PXor.cs @@ -17,7 +17,7 @@ internal PXor() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Pause.cs b/Source/Mosa.Compiler.x86/Instructions/Pause.cs index 8d97f4c1cb..6fb64fcc2c 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Pause.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Pause.cs @@ -17,7 +17,7 @@ internal Pause() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Pextrd32.cs b/Source/Mosa.Compiler.x86/Instructions/Pextrd32.cs index 1978688e3b..b5625e01da 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Pextrd32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Pextrd32.cs @@ -17,7 +17,7 @@ internal Pextrd32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Pop32.cs b/Source/Mosa.Compiler.x86/Instructions/Pop32.cs index a2b581f189..ffc61f035c 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Pop32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Pop32.cs @@ -17,7 +17,7 @@ internal Pop32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Popad.cs b/Source/Mosa.Compiler.x86/Instructions/Popad.cs index e7ba663653..ce09cf2978 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Popad.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Popad.cs @@ -17,7 +17,7 @@ internal Popad() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Popcnt32.cs b/Source/Mosa.Compiler.x86/Instructions/Popcnt32.cs index 41a5957bb9..8a15b42f59 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Popcnt32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Popcnt32.cs @@ -39,7 +39,7 @@ internal Popcnt32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Push32.cs b/Source/Mosa.Compiler.x86/Instructions/Push32.cs index 39d3226c89..785190c48e 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Push32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Push32.cs @@ -17,7 +17,7 @@ internal Push32() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Pushad.cs b/Source/Mosa.Compiler.x86/Instructions/Pushad.cs index b57f222333..c8af48782f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Pushad.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Pushad.cs @@ -17,7 +17,7 @@ internal Pushad() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Rcr32.cs b/Source/Mosa.Compiler.x86/Instructions/Rcr32.cs index d5d33d219b..aec59796ae 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Rcr32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Rcr32.cs @@ -23,7 +23,7 @@ internal Rcr32() public override bool IsOverflowFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/RdMSR.cs b/Source/Mosa.Compiler.x86/Instructions/RdMSR.cs index 717e780b8c..6f3ed781bd 100644 --- a/Source/Mosa.Compiler.x86/Instructions/RdMSR.cs +++ b/Source/Mosa.Compiler.x86/Instructions/RdMSR.cs @@ -17,7 +17,7 @@ internal RdMSR() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Ret.cs b/Source/Mosa.Compiler.x86/Instructions/Ret.cs index 6acc10b57a..209cd25b2e 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Ret.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Ret.cs @@ -21,7 +21,7 @@ internal Ret() public override bool IsReturn => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/RoundSD.cs b/Source/Mosa.Compiler.x86/Instructions/RoundSD.cs index 02262df90c..0a3921055f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/RoundSD.cs +++ b/Source/Mosa.Compiler.x86/Instructions/RoundSD.cs @@ -17,7 +17,7 @@ internal Roundsd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/RoundSS.cs b/Source/Mosa.Compiler.x86/Instructions/RoundSS.cs index 2969dce73c..f1bb6f1e59 100644 --- a/Source/Mosa.Compiler.x86/Instructions/RoundSS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/RoundSS.cs @@ -17,7 +17,7 @@ internal Roundss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Sar32.cs b/Source/Mosa.Compiler.x86/Instructions/Sar32.cs index 75ed48bb70..ecb20128df 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Sar32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Sar32.cs @@ -27,7 +27,7 @@ internal Sar32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Sbb32.cs b/Source/Mosa.Compiler.x86/Instructions/Sbb32.cs index 9fa7617590..8c16dc313d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Sbb32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Sbb32.cs @@ -31,7 +31,7 @@ internal Sbb32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Setcc.cs b/Source/Mosa.Compiler.x86/Instructions/Setcc.cs index c8508e33fc..1e8d99b08a 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Setcc.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Setcc.cs @@ -31,7 +31,7 @@ internal Setcc() public override bool AreFlagUseConditional => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Shl32.cs b/Source/Mosa.Compiler.x86/Instructions/Shl32.cs index 7669d99a98..788d4680da 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Shl32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Shl32.cs @@ -27,7 +27,7 @@ internal Shl32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Shld32.cs b/Source/Mosa.Compiler.x86/Instructions/Shld32.cs index f19a409f1d..49316b6279 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Shld32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Shld32.cs @@ -27,7 +27,7 @@ internal Shld32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/Shr32.cs b/Source/Mosa.Compiler.x86/Instructions/Shr32.cs index 9da6da7a38..7a0e9b3225 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Shr32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Shr32.cs @@ -27,7 +27,7 @@ internal Shr32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Shrd32.cs b/Source/Mosa.Compiler.x86/Instructions/Shrd32.cs index 26cafaa8d7..d9c8adcf3f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Shrd32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Shrd32.cs @@ -27,7 +27,7 @@ internal Shrd32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/Sqrtsd.cs b/Source/Mosa.Compiler.x86/Instructions/Sqrtsd.cs index 0cf8a20307..71fe1ab15d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Sqrtsd.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Sqrtsd.cs @@ -19,7 +19,7 @@ internal Sqrtsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Sqrtss.cs b/Source/Mosa.Compiler.x86/Instructions/Sqrtss.cs index 653f9c5add..fc1186dcfb 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Sqrtss.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Sqrtss.cs @@ -19,7 +19,7 @@ internal Sqrtss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Sti.cs b/Source/Mosa.Compiler.x86/Instructions/Sti.cs index e9130b7c6f..f743d71a32 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Sti.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Sti.cs @@ -19,7 +19,7 @@ internal Sti() public override bool HasUnspecifiedSideEffect => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 0); diff --git a/Source/Mosa.Compiler.x86/Instructions/Stos.cs b/Source/Mosa.Compiler.x86/Instructions/Stos.cs index a8591ba18f..8bd43ce3b7 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Stos.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Stos.cs @@ -17,7 +17,7 @@ internal Stos() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Sub32.cs b/Source/Mosa.Compiler.x86/Instructions/Sub32.cs index 3bbd56dda3..97d400f42c 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Sub32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Sub32.cs @@ -27,7 +27,7 @@ internal Sub32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/SubSD.cs b/Source/Mosa.Compiler.x86/Instructions/SubSD.cs index 527dcb3d24..ca51fde0ec 100644 --- a/Source/Mosa.Compiler.x86/Instructions/SubSD.cs +++ b/Source/Mosa.Compiler.x86/Instructions/SubSD.cs @@ -19,7 +19,7 @@ internal Subsd() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/SubSS.cs b/Source/Mosa.Compiler.x86/Instructions/SubSS.cs index 830f66f7be..39e526ac91 100644 --- a/Source/Mosa.Compiler.x86/Instructions/SubSS.cs +++ b/Source/Mosa.Compiler.x86/Instructions/SubSS.cs @@ -19,7 +19,7 @@ internal Subss() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Test32.cs b/Source/Mosa.Compiler.x86/Instructions/Test32.cs index c7e5e35d55..19c52f0d5d 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Test32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Test32.cs @@ -31,7 +31,7 @@ internal Test32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Tzcnt32.cs b/Source/Mosa.Compiler.x86/Instructions/Tzcnt32.cs index 5c278fb20d..03692ac4c0 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Tzcnt32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Tzcnt32.cs @@ -35,7 +35,7 @@ internal Tzcnt32() public override bool IsParityFlagUndefined => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 1); diff --git a/Source/Mosa.Compiler.x86/Instructions/Ucomisd.cs b/Source/Mosa.Compiler.x86/Instructions/Ucomisd.cs index 384ea3b79e..d3b57b2767 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Ucomisd.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Ucomisd.cs @@ -17,7 +17,7 @@ internal Ucomisd() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Ucomiss.cs b/Source/Mosa.Compiler.x86/Instructions/Ucomiss.cs index afc87234ac..ddd816734f 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Ucomiss.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Ucomiss.cs @@ -17,7 +17,7 @@ internal Ucomiss() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/WrMSR.cs b/Source/Mosa.Compiler.x86/Instructions/WrMSR.cs index 4b35dcbf93..dbcc89708c 100644 --- a/Source/Mosa.Compiler.x86/Instructions/WrMSR.cs +++ b/Source/Mosa.Compiler.x86/Instructions/WrMSR.cs @@ -17,7 +17,7 @@ internal WrMSR() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 0); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/XAddLoad32.cs b/Source/Mosa.Compiler.x86/Instructions/XAddLoad32.cs index 5092ce7f39..3b3ea9e386 100644 --- a/Source/Mosa.Compiler.x86/Instructions/XAddLoad32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/XAddLoad32.cs @@ -29,7 +29,7 @@ internal XAddLoad32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/XChg32.cs b/Source/Mosa.Compiler.x86/Instructions/XChg32.cs index 121aa83c89..81107409ab 100644 --- a/Source/Mosa.Compiler.x86/Instructions/XChg32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/XChg32.cs @@ -19,7 +19,7 @@ internal XChg32() public override bool IsCommutative => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 2); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/XChgLoad32.cs b/Source/Mosa.Compiler.x86/Instructions/XChgLoad32.cs index c6b08f4e15..8bfec124a7 100644 --- a/Source/Mosa.Compiler.x86/Instructions/XChgLoad32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/XChgLoad32.cs @@ -19,7 +19,7 @@ internal XChgLoad32() public override bool IsMemoryRead => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 3); diff --git a/Source/Mosa.Compiler.x86/Instructions/Xor32.cs b/Source/Mosa.Compiler.x86/Instructions/Xor32.cs index 2294f225dd..9667e813d5 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Xor32.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Xor32.cs @@ -33,7 +33,7 @@ internal Xor32() public override bool IsParityFlagModified => true; - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Instructions/Xorps.cs b/Source/Mosa.Compiler.x86/Instructions/Xorps.cs index d7d1aabb28..ff2085c6ff 100644 --- a/Source/Mosa.Compiler.x86/Instructions/Xorps.cs +++ b/Source/Mosa.Compiler.x86/Instructions/Xorps.cs @@ -17,7 +17,7 @@ internal Xorps() { } - public override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder) + public override void Emit(Node node, OpcodeEncoder opcodeEncoder) { System.Diagnostics.Debug.Assert(node.ResultCount == 1); System.Diagnostics.Debug.Assert(node.OperandCount == 2); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/AllocateStackSpace.cs b/Source/Mosa.Compiler.x86/Intrinsic/AllocateStackSpace.cs index a7dbf483ec..e1c3653f58 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/AllocateStackSpace.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/AllocateStackSpace.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::AllocateStackSpace")] - private static void AllocateStackSpace(Context context, TransformContext transformContext) + private static void AllocateStackSpace(Context context, Transform transform) { Operand result = context.Result; Operand size = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Blsr32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Blsr32.cs index 3040468ece..82a627d38a 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Blsr32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Blsr32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Blsr32")] - private static void Blsr32(Context context, TransformContext transformContext) + private static void Blsr32(Context context, Transform transform) { context.SetInstruction(X86.Blsr32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/BochsDebug.cs b/Source/Mosa.Compiler.x86/Intrinsic/BochsDebug.cs index 721e0ad075..ed0640fc63 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/BochsDebug.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/BochsDebug.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::BochsDebug")] - private static void BochsDebug(Context context, TransformContext transformContext) + private static void BochsDebug(Context context, Transform transform) { context.SetInstruction(X86.BochsDebug); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Cli.cs b/Source/Mosa.Compiler.x86/Intrinsic/Cli.cs index ff4e96db65..a779320fb9 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Cli.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Cli.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Cli")] - private static void Cli(Context context, TransformContext transformContext) + private static void Cli(Context context, Transform transform) { context.SetInstruction(X86.Cli); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/CmpXChgLoad32.cs b/Source/Mosa.Compiler.x86/Intrinsic/CmpXChgLoad32.cs index 6c5a303f3a..df17c6aa4c 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/CmpXChgLoad32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/CmpXChgLoad32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::CmpXChgLoad32")] - private static void CmpXChgLoad32(Context context, TransformContext transformContext) + private static void CmpXChgLoad32(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; @@ -18,7 +18,7 @@ private static void CmpXChgLoad32(Context context, TransformContext transformCon var result = context.Result; var eax = Operand.CreateCPURegister32(CPURegister.EAX); - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction(X86.Mov32, eax, comparand); context.AppendInstruction(X86.Mov32, v1, value); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEax.cs b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEax.cs index b9bdc60fe5..9c8cb40d48 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEax.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEax.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::CpuIdEAX")] - private static void CpuIdEAX(Context context, TransformContext transformContext) + private static void CpuIdEAX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEbx.cs b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEbx.cs index 7b281eaa08..904021cafb 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEbx.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEbx.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::CpuIdEBX")] - private static void CpuIdEBX(Context context, TransformContext transformContext) + private static void CpuIdEBX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEcx.cs b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEcx.cs index 0d07ae3aa0..7261d783cc 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEcx.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEcx.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::CpuIdECX")] - private static void CpuIdECX(Context context, TransformContext transformContext) + private static void CpuIdECX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEdx.cs b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEdx.cs index c8bf2c1174..99df0686c5 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEdx.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/CpuIdEdx.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::CpuIdEDX")] - private static void CpuIdEDX(Context context, TransformContext transformContext) + private static void CpuIdEDX(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Div.cs b/Source/Mosa.Compiler.x86/Intrinsic/Div.cs index 6b723d41da..7f50ab1837 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Div.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Div.cs @@ -10,14 +10,14 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Div")] - private static void Div(Context context, TransformContext transformContext) + private static void Div(Context context, Transform transform) { var n = context.Operand1; var d = context.Operand2; var result = context.Result; - var result2 = transformContext.VirtualRegisters.Allocate32(); + var result2 = transform.VirtualRegisters.Allocate32(); - transformContext.SplitOperand(n, out Operand op0L, out Operand op0H); + transform.SplitOperand(n, out Operand op0L, out Operand op0H); context.SetInstruction2(X86.Div32, result2, result, op0H, op0L, d); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/FarJump.cs b/Source/Mosa.Compiler.x86/Intrinsic/FarJump.cs index 025bf35d5b..290ee1a239 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/FarJump.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/FarJump.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::FarJump")] - private static void FarJump(Context context, TransformContext transformContext) + private static void FarJump(Context context, Transform transform) { context.SetInstruction(X86.JmpFar); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/FrameCall.cs b/Source/Mosa.Compiler.x86/Intrinsic/FrameCall.cs index 9478f4d7ea..2b1a65fa34 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/FrameCall.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/FrameCall.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::FrameCall")] - private static void FrameCall(Context context, TransformContext transformContext) + private static void FrameCall(Context context, Transform transform) { context.SetInstruction(X86.Call, null, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetR8.cs b/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetR8.cs index 0b30498691..ccf65ed07d 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetR8.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetR8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::FrameCallRetR8")] - private static void FrameCallRetR8(Context context, TransformContext transformContext) + private static void FrameCallRetR8(Context context, Transform transform) { var result = context.Result; var methodAddress = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU4.cs b/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU4.cs index 2f0710abef..53100380e7 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU4.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU4.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::FrameCallRetU4")] - private static void FrameCallRetU4(Context context, TransformContext transformContext) + private static void FrameCallRetU4(Context context, Transform transform) { var result = context.Result; var methodAddress = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU8.cs b/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU8.cs index 53f8bde7fd..e09921f751 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU8.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/FrameCallRetU8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::FrameCallRetU8")] - private static void FrameCallRetU8(Context context, TransformContext transformContext) + private static void FrameCallRetU8(Context context, Transform transform) { var result = context.Result; var methodAddress = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/FrameJump.cs b/Source/Mosa.Compiler.x86/Intrinsic/FrameJump.cs index c68034296d..5954990f9b 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/FrameJump.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/FrameJump.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::FrameJump")] - private static void FrameJump(Context context, TransformContext transformContext) + private static void FrameJump(Context context, Transform transform) { var v0 = context.Operand1; var v1 = context.Operand2; @@ -28,7 +28,7 @@ private static void FrameJump(Context context, TransformContext transformContext context.SetInstruction(X86.Mov32, eax, v0); context.AppendInstruction(X86.Mov32, ebx, v1); context.AppendInstruction(X86.Mov32, ecx, v2); - context.AppendInstruction(X86.Mov32, transformContext.Compiler.ExceptionRegister, v3); + context.AppendInstruction(X86.Mov32, transform.Compiler.ExceptionRegister, v3); // Update the frame and stack registers context.AppendInstruction(X86.Mov32, ebp, ecx); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Get16.cs b/Source/Mosa.Compiler.x86/Intrinsic/Get16.cs index e5728ca2eb..8b665bcce7 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Get16.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Get16.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Get16")] - private static void Get16(Context context, TransformContext transformContext) + private static void Get16(Context context, Transform transform) { context.SetInstruction(X86.MovzxLoad16, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Get32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Get32.cs index 53294671f3..76dd80209d 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Get32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Get32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Get32")] - private static void Get32(Context context, TransformContext transformContext) + private static void Get32(Context context, Transform transform) { context.SetInstruction(X86.MovLoad32, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Get8.cs b/Source/Mosa.Compiler.x86/Intrinsic/Get8.cs index 5aef14afc7..cb9a2d3779 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Get8.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Get8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Get8")] - private static void Get8(Context context, TransformContext transformContext) + private static void Get8(Context context, Transform transform) { context.SetInstruction(X86.MovzxLoad8, context.Result, context.Operand1, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetCR0.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetCR0.cs index 394ed61b85..1f1482cc65 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetCR0.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetCR0.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetCR0")] - private static void GetCR0(Context context, TransformContext transformContext) + private static void GetCR0(Context context, Transform transform) { context.SetInstruction(X86.MovCRLoad32, context.Result, Operand.CreateCPURegister32(CPURegister.CR0)); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetCR2.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetCR2.cs index 6b8eb21868..cb38cb6f1e 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetCR2.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetCR2.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetCR2")] - private static void GetCR2(Context context, TransformContext transformContext) + private static void GetCR2(Context context, Transform transform) { context.SetInstruction(X86.MovCRLoad32, context.Result, Operand.CreateCPURegister32(CPURegister.CR2)); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetCR3.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetCR3.cs index 0238d8ed90..7f9f208814 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetCR3.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetCR3.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetCR3")] - private static void GetCR3(Context context, TransformContext transformContext) + private static void GetCR3(Context context, Transform transform) { context.SetInstruction(X86.MovCRLoad32, context.Result, Operand.CreateCPURegister32(CPURegister.CR3)); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetCR4.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetCR4.cs index c3f843aac7..1bfdf99bf0 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetCR4.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetCR4.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetCR4")] - private static void GetCR4(Context context, TransformContext transformContext) + private static void GetCR4(Context context, Transform transform) { context.SetInstruction(X86.MovCRLoad32, context.Result, Operand.CreateCPURegister32(CPURegister.CR4)); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetCS.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetCS.cs index d4fc0828b0..f856ee421f 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetCS.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetCS.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetCS")] - private static void GetCS(Context context, TransformContext transformContext) + private static void GetCS(Context context, Transform transform) { context.SetInstruction(X86.MovLoadSeg32, context.Result, Operand.CreateCPURegister32(CPURegister.CS)); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetFS.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetFS.cs index d6b37fcc12..7fa950d65d 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetFS.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetFS.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetFS")] - private static void GetFS(Context context, TransformContext transformContext) + private static void GetFS(Context context, Transform transform) { context.SetInstruction(X86.MovLoadSeg32, context.Result, Operand.CreateCPURegister32(CPURegister.FS)); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetIDTJumpLocation.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetIDTJumpLocation.cs index a652b10771..110662a5e4 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetIDTJumpLocation.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetIDTJumpLocation.cs @@ -12,7 +12,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetIDTJumpLocation")] - private static void GetIDTJumpLocation(Context context, TransformContext transformContext) + private static void GetIDTJumpLocation(Context context, Transform transform) { var operand = context.Operand1; @@ -32,15 +32,15 @@ private static void GetIDTJumpLocation(Context context, TransformContext transfo int irq = (int)operand.ConstantSigned64; // Find the method - var method = transformContext.TypeSystem.DefaultLinkerType.FindMethodByName("InterruptISR" + irq); + var method = transform.TypeSystem.DefaultLinkerType.FindMethodByName("InterruptISR" + irq); if (method == null) { throw new CompilerException(); } - context.SetInstruction(IRInstruction.Move32, context.Result, Operand.CreateLabel(method, transformContext.Is32BitPlatform)); + context.SetInstruction(IRInstruction.Move32, context.Result, Operand.CreateLabel(method, transform.Is32BitPlatform)); - transformContext.MethodScanner.MethodInvoked(method, transformContext.Method); + transform.MethodScanner.MethodInvoked(method, transform.Method); } } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetIRQHandler.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetIRQHandler.cs index efc6cb8ff4..6404202605 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetIRQHandler.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetIRQHandler.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetIRQHandler")] - private static void GetIRQHandler(Context context, TransformContext transformContext) + private static void GetIRQHandler(Context context, Transform transform) { } } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEAX.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEAX.cs index e4a80eee98..9cfdc75b72 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEAX.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEAX.cs @@ -11,9 +11,9 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetMultibootEAX")] - private static void GetMultibootEAX(Context context, TransformContext transformContext) + private static void GetMultibootEAX(Context context, Transform transform) { - var MultibootEAX = Operand.CreateLabel(BaseMultibootStage.MultibootEAX, transformContext.Is32BitPlatform); + var MultibootEAX = Operand.CreateLabel(BaseMultibootStage.MultibootEAX, transform.Is32BitPlatform); context.SetInstruction(IRInstruction.Load32, context.Result, MultibootEAX, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEBX.cs b/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEBX.cs index 0390f9d3a7..b1118c4b83 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEBX.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/GetMultibootEBX.cs @@ -11,9 +11,9 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::GetMultibootEBX")] - private static void GetMultibootEBX(Context context, TransformContext transformContext) + private static void GetMultibootEBX(Context context, Transform transform) { - var MultibootEBX = Operand.CreateLabel(BaseMultibootStage.MultibootEBX, transformContext.Is32BitPlatform); + var MultibootEBX = Operand.CreateLabel(BaseMultibootStage.MultibootEBX, transform.Is32BitPlatform); context.SetInstruction(IRInstruction.Load32, context.Result, MultibootEBX, Operand.Constant32_0); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Hlt.cs b/Source/Mosa.Compiler.x86/Intrinsic/Hlt.cs index d422bff933..9bc857be03 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Hlt.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Hlt.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Hlt")] - private static void Hlt(Context context, TransformContext transformContext) + private static void Hlt(Context context, Transform transform) { context.SetInstruction(X86.Hlt); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/IRQs.cs b/Source/Mosa.Compiler.x86/Intrinsic/IRQs.cs index 0988612cd8..c99c102cf0 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/IRQs.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/IRQs.cs @@ -14,9 +14,9 @@ internal static partial class IntrinsicMethods private static readonly string[] seperator = new string[] { "::" }; - private static void InsertIRQ(int irq, Context context, TransformContext transformContext) + private static void InsertIRQ(int irq, Context context, Transform transform) { - var interruptMethodName = transformContext.Compiler.MosaSettings.Settings.GetValue("X86.InterruptMethodName", DefaultInterruptMethodName); + var interruptMethodName = transform.Compiler.MosaSettings.Settings.GetValue("X86.InterruptMethodName", DefaultInterruptMethodName); if (string.IsNullOrEmpty(interruptMethodName)) { @@ -31,7 +31,7 @@ private static void InsertIRQ(int irq, Context context, TransformContext transfo var typeFullname = ar[0]; var methodName = ar[1]; - var type = transformContext.TypeSystem.GetTypeByName(typeFullname); + var type = transform.TypeSystem.GetTypeByName(typeFullname); if (type == null) return; @@ -41,16 +41,16 @@ private static void InsertIRQ(int irq, Context context, TransformContext transfo if (method == null) return; - var plugMethod = transformContext.Compiler.PlugSystem.GetReplacement(method); + var plugMethod = transform.Compiler.PlugSystem.GetReplacement(method); if (plugMethod != null) { method = plugMethod; } - transformContext.MethodScanner.MethodInvoked(method, transformContext.Method); + transform.MethodScanner.MethodInvoked(method, transform.Method); - var interrupt = Operand.CreateLabel(method, transformContext.Is32BitPlatform); + var interrupt = Operand.CreateLabel(method, transform.Is32BitPlatform); var esp = Operand.CreateCPURegister32(CPURegister.ESP); @@ -71,1538 +71,1538 @@ private static void InsertIRQ(int irq, Context context, TransformContext transfo } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ0")] - private static void IRQ0(Context context, TransformContext transformContext) + private static void IRQ0(Context context, Transform transform) { - InsertIRQ(0, context, transformContext); + InsertIRQ(0, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ1")] - private static void IRQ1(Context context, TransformContext transformContext) + private static void IRQ1(Context context, Transform transform) { - InsertIRQ(1, context, transformContext); + InsertIRQ(1, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ2")] - private static void IRQ2(Context context, TransformContext transformContext) + private static void IRQ2(Context context, Transform transform) { - InsertIRQ(2, context, transformContext); + InsertIRQ(2, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ3")] - private static void IRQ3(Context context, TransformContext transformContext) + private static void IRQ3(Context context, Transform transform) { - InsertIRQ(3, context, transformContext); + InsertIRQ(3, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ4")] - private static void IRQ4(Context context, TransformContext transformContext) + private static void IRQ4(Context context, Transform transform) { - InsertIRQ(4, context, transformContext); + InsertIRQ(4, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ5")] - private static void IRQ5(Context context, TransformContext transformContext) + private static void IRQ5(Context context, Transform transform) { - InsertIRQ(5, context, transformContext); + InsertIRQ(5, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ6")] - private static void IRQ6(Context context, TransformContext transformContext) + private static void IRQ6(Context context, Transform transform) { - InsertIRQ(6, context, transformContext); + InsertIRQ(6, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ7")] - private static void IRQ7(Context context, TransformContext transformContext) + private static void IRQ7(Context context, Transform transform) { - InsertIRQ(7, context, transformContext); + InsertIRQ(7, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ8")] - private static void IRQ8(Context context, TransformContext transformContext) + private static void IRQ8(Context context, Transform transform) { - InsertIRQ(8, context, transformContext); + InsertIRQ(8, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ9")] - private static void IRQ9(Context context, TransformContext transformContext) + private static void IRQ9(Context context, Transform transform) { - InsertIRQ(9, context, transformContext); + InsertIRQ(9, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ10")] - private static void IRQ10(Context context, TransformContext transformContext) + private static void IRQ10(Context context, Transform transform) { - InsertIRQ(10, context, transformContext); + InsertIRQ(10, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ11")] - private static void IRQ11(Context context, TransformContext transformContext) + private static void IRQ11(Context context, Transform transform) { - InsertIRQ(11, context, transformContext); + InsertIRQ(11, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ12")] - private static void IRQ12(Context context, TransformContext transformContext) + private static void IRQ12(Context context, Transform transform) { - InsertIRQ(12, context, transformContext); + InsertIRQ(12, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ13")] - private static void IRQ13(Context context, TransformContext transformContext) + private static void IRQ13(Context context, Transform transform) { - InsertIRQ(13, context, transformContext); + InsertIRQ(13, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ14")] - private static void IRQ14(Context context, TransformContext transformContext) + private static void IRQ14(Context context, Transform transform) { - InsertIRQ(14, context, transformContext); + InsertIRQ(14, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ15")] - private static void IRQ15(Context context, TransformContext transformContext) + private static void IRQ15(Context context, Transform transform) { - InsertIRQ(15, context, transformContext); + InsertIRQ(15, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ16")] - private static void IRQ16(Context context, TransformContext transformContext) + private static void IRQ16(Context context, Transform transform) { - InsertIRQ(16, context, transformContext); + InsertIRQ(16, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ17")] - private static void IRQ17(Context context, TransformContext transformContext) + private static void IRQ17(Context context, Transform transform) { - InsertIRQ(17, context, transformContext); + InsertIRQ(17, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ18")] - private static void IRQ18(Context context, TransformContext transformContext) + private static void IRQ18(Context context, Transform transform) { - InsertIRQ(18, context, transformContext); + InsertIRQ(18, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ19")] - private static void IRQ19(Context context, TransformContext transformContext) + private static void IRQ19(Context context, Transform transform) { - InsertIRQ(19, context, transformContext); + InsertIRQ(19, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ20")] - private static void IRQ20(Context context, TransformContext transformContext) + private static void IRQ20(Context context, Transform transform) { - InsertIRQ(20, context, transformContext); + InsertIRQ(20, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ21")] - private static void IRQ21(Context context, TransformContext transformContext) + private static void IRQ21(Context context, Transform transform) { - InsertIRQ(21, context, transformContext); + InsertIRQ(21, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ22")] - private static void IRQ22(Context context, TransformContext transformContext) + private static void IRQ22(Context context, Transform transform) { - InsertIRQ(22, context, transformContext); + InsertIRQ(22, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ23")] - private static void IRQ23(Context context, TransformContext transformContext) + private static void IRQ23(Context context, Transform transform) { - InsertIRQ(23, context, transformContext); + InsertIRQ(23, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ24")] - private static void IRQ24(Context context, TransformContext transformContext) + private static void IRQ24(Context context, Transform transform) { - InsertIRQ(24, context, transformContext); + InsertIRQ(24, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ25")] - private static void IRQ25(Context context, TransformContext transformContext) + private static void IRQ25(Context context, Transform transform) { - InsertIRQ(25, context, transformContext); + InsertIRQ(25, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ26")] - private static void IRQ26(Context context, TransformContext transformContext) + private static void IRQ26(Context context, Transform transform) { - InsertIRQ(26, context, transformContext); + InsertIRQ(26, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ27")] - private static void IRQ27(Context context, TransformContext transformContext) + private static void IRQ27(Context context, Transform transform) { - InsertIRQ(27, context, transformContext); + InsertIRQ(27, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ28")] - private static void IRQ28(Context context, TransformContext transformContext) + private static void IRQ28(Context context, Transform transform) { - InsertIRQ(28, context, transformContext); + InsertIRQ(28, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ29")] - private static void IRQ29(Context context, TransformContext transformContext) + private static void IRQ29(Context context, Transform transform) { - InsertIRQ(29, context, transformContext); + InsertIRQ(29, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ30")] - private static void IRQ30(Context context, TransformContext transformContext) + private static void IRQ30(Context context, Transform transform) { - InsertIRQ(30, context, transformContext); + InsertIRQ(30, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ31")] - private static void IRQ31(Context context, TransformContext transformContext) + private static void IRQ31(Context context, Transform transform) { - InsertIRQ(31, context, transformContext); + InsertIRQ(31, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ32")] - private static void IRQ32(Context context, TransformContext transformContext) + private static void IRQ32(Context context, Transform transform) { - InsertIRQ(32, context, transformContext); + InsertIRQ(32, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ33")] - private static void IRQ33(Context context, TransformContext transformContext) + private static void IRQ33(Context context, Transform transform) { - InsertIRQ(33, context, transformContext); + InsertIRQ(33, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ34")] - private static void IRQ34(Context context, TransformContext transformContext) + private static void IRQ34(Context context, Transform transform) { - InsertIRQ(34, context, transformContext); + InsertIRQ(34, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ35")] - private static void IRQ35(Context context, TransformContext transformContext) + private static void IRQ35(Context context, Transform transform) { - InsertIRQ(35, context, transformContext); + InsertIRQ(35, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ36")] - private static void IRQ36(Context context, TransformContext transformContext) + private static void IRQ36(Context context, Transform transform) { - InsertIRQ(36, context, transformContext); + InsertIRQ(36, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ37")] - private static void IRQ37(Context context, TransformContext transformContext) + private static void IRQ37(Context context, Transform transform) { - InsertIRQ(37, context, transformContext); + InsertIRQ(37, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ38")] - private static void IRQ38(Context context, TransformContext transformContext) + private static void IRQ38(Context context, Transform transform) { - InsertIRQ(38, context, transformContext); + InsertIRQ(38, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ39")] - private static void IRQ39(Context context, TransformContext transformContext) + private static void IRQ39(Context context, Transform transform) { - InsertIRQ(39, context, transformContext); + InsertIRQ(39, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ40")] - private static void IRQ40(Context context, TransformContext transformContext) + private static void IRQ40(Context context, Transform transform) { - InsertIRQ(40, context, transformContext); + InsertIRQ(40, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ41")] - private static void IRQ41(Context context, TransformContext transformContext) + private static void IRQ41(Context context, Transform transform) { - InsertIRQ(41, context, transformContext); + InsertIRQ(41, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ42")] - private static void IRQ42(Context context, TransformContext transformContext) + private static void IRQ42(Context context, Transform transform) { - InsertIRQ(42, context, transformContext); + InsertIRQ(42, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ43")] - private static void IRQ43(Context context, TransformContext transformContext) + private static void IRQ43(Context context, Transform transform) { - InsertIRQ(43, context, transformContext); + InsertIRQ(43, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ44")] - private static void IRQ44(Context context, TransformContext transformContext) + private static void IRQ44(Context context, Transform transform) { - InsertIRQ(44, context, transformContext); + InsertIRQ(44, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ45")] - private static void IRQ45(Context context, TransformContext transformContext) + private static void IRQ45(Context context, Transform transform) { - InsertIRQ(45, context, transformContext); + InsertIRQ(45, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ46")] - private static void IRQ46(Context context, TransformContext transformContext) + private static void IRQ46(Context context, Transform transform) { - InsertIRQ(46, context, transformContext); + InsertIRQ(46, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ47")] - private static void IRQ47(Context context, TransformContext transformContext) + private static void IRQ47(Context context, Transform transform) { - InsertIRQ(47, context, transformContext); + InsertIRQ(47, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ48")] - private static void IRQ48(Context context, TransformContext transformContext) + private static void IRQ48(Context context, Transform transform) { - InsertIRQ(48, context, transformContext); + InsertIRQ(48, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ49")] - private static void IRQ49(Context context, TransformContext transformContext) + private static void IRQ49(Context context, Transform transform) { - InsertIRQ(49, context, transformContext); + InsertIRQ(49, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ50")] - private static void IRQ50(Context context, TransformContext transformContext) + private static void IRQ50(Context context, Transform transform) { - InsertIRQ(50, context, transformContext); + InsertIRQ(50, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ51")] - private static void IRQ51(Context context, TransformContext transformContext) + private static void IRQ51(Context context, Transform transform) { - InsertIRQ(51, context, transformContext); + InsertIRQ(51, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ52")] - private static void IRQ52(Context context, TransformContext transformContext) + private static void IRQ52(Context context, Transform transform) { - InsertIRQ(52, context, transformContext); + InsertIRQ(52, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ53")] - private static void IRQ53(Context context, TransformContext transformContext) + private static void IRQ53(Context context, Transform transform) { - InsertIRQ(53, context, transformContext); + InsertIRQ(53, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ54")] - private static void IRQ54(Context context, TransformContext transformContext) + private static void IRQ54(Context context, Transform transform) { - InsertIRQ(54, context, transformContext); + InsertIRQ(54, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ55")] - private static void IRQ55(Context context, TransformContext transformContext) + private static void IRQ55(Context context, Transform transform) { - InsertIRQ(55, context, transformContext); + InsertIRQ(55, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ56")] - private static void IRQ56(Context context, TransformContext transformContext) + private static void IRQ56(Context context, Transform transform) { - InsertIRQ(56, context, transformContext); + InsertIRQ(56, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ57")] - private static void IRQ57(Context context, TransformContext transformContext) + private static void IRQ57(Context context, Transform transform) { - InsertIRQ(57, context, transformContext); + InsertIRQ(57, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ58")] - private static void IRQ58(Context context, TransformContext transformContext) + private static void IRQ58(Context context, Transform transform) { - InsertIRQ(58, context, transformContext); + InsertIRQ(58, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ59")] - private static void IRQ59(Context context, TransformContext transformContext) + private static void IRQ59(Context context, Transform transform) { - InsertIRQ(59, context, transformContext); + InsertIRQ(59, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ60")] - private static void IRQ60(Context context, TransformContext transformContext) + private static void IRQ60(Context context, Transform transform) { - InsertIRQ(60, context, transformContext); + InsertIRQ(60, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ61")] - private static void IRQ61(Context context, TransformContext transformContext) + private static void IRQ61(Context context, Transform transform) { - InsertIRQ(61, context, transformContext); + InsertIRQ(61, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ62")] - private static void IRQ62(Context context, TransformContext transformContext) + private static void IRQ62(Context context, Transform transform) { - InsertIRQ(62, context, transformContext); + InsertIRQ(62, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ63")] - private static void IRQ63(Context context, TransformContext transformContext) + private static void IRQ63(Context context, Transform transform) { - InsertIRQ(63, context, transformContext); + InsertIRQ(63, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ64")] - private static void IRQ64(Context context, TransformContext transformContext) + private static void IRQ64(Context context, Transform transform) { - InsertIRQ(64, context, transformContext); + InsertIRQ(64, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ65")] - private static void IRQ65(Context context, TransformContext transformContext) + private static void IRQ65(Context context, Transform transform) { - InsertIRQ(65, context, transformContext); + InsertIRQ(65, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ66")] - private static void IRQ66(Context context, TransformContext transformContext) + private static void IRQ66(Context context, Transform transform) { - InsertIRQ(66, context, transformContext); + InsertIRQ(66, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ67")] - private static void IRQ67(Context context, TransformContext transformContext) + private static void IRQ67(Context context, Transform transform) { - InsertIRQ(67, context, transformContext); + InsertIRQ(67, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ68")] - private static void IRQ68(Context context, TransformContext transformContext) + private static void IRQ68(Context context, Transform transform) { - InsertIRQ(68, context, transformContext); + InsertIRQ(68, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ69")] - private static void IRQ69(Context context, TransformContext transformContext) + private static void IRQ69(Context context, Transform transform) { - InsertIRQ(69, context, transformContext); + InsertIRQ(69, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ70")] - private static void IRQ70(Context context, TransformContext transformContext) + private static void IRQ70(Context context, Transform transform) { - InsertIRQ(70, context, transformContext); + InsertIRQ(70, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ71")] - private static void IRQ71(Context context, TransformContext transformContext) + private static void IRQ71(Context context, Transform transform) { - InsertIRQ(71, context, transformContext); + InsertIRQ(71, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ72")] - private static void IRQ72(Context context, TransformContext transformContext) + private static void IRQ72(Context context, Transform transform) { - InsertIRQ(72, context, transformContext); + InsertIRQ(72, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ73")] - private static void IRQ73(Context context, TransformContext transformContext) + private static void IRQ73(Context context, Transform transform) { - InsertIRQ(73, context, transformContext); + InsertIRQ(73, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ74")] - private static void IRQ74(Context context, TransformContext transformContext) + private static void IRQ74(Context context, Transform transform) { - InsertIRQ(74, context, transformContext); + InsertIRQ(74, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ75")] - private static void IRQ75(Context context, TransformContext transformContext) + private static void IRQ75(Context context, Transform transform) { - InsertIRQ(75, context, transformContext); + InsertIRQ(75, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ76")] - private static void IRQ76(Context context, TransformContext transformContext) + private static void IRQ76(Context context, Transform transform) { - InsertIRQ(76, context, transformContext); + InsertIRQ(76, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ77")] - private static void IRQ77(Context context, TransformContext transformContext) + private static void IRQ77(Context context, Transform transform) { - InsertIRQ(77, context, transformContext); + InsertIRQ(77, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ78")] - private static void IRQ78(Context context, TransformContext transformContext) + private static void IRQ78(Context context, Transform transform) { - InsertIRQ(78, context, transformContext); + InsertIRQ(78, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ79")] - private static void IRQ79(Context context, TransformContext transformContext) + private static void IRQ79(Context context, Transform transform) { - InsertIRQ(79, context, transformContext); + InsertIRQ(79, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ80")] - private static void IRQ80(Context context, TransformContext transformContext) + private static void IRQ80(Context context, Transform transform) { - InsertIRQ(80, context, transformContext); + InsertIRQ(80, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ81")] - private static void IRQ81(Context context, TransformContext transformContext) + private static void IRQ81(Context context, Transform transform) { - InsertIRQ(81, context, transformContext); + InsertIRQ(81, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ82")] - private static void IRQ82(Context context, TransformContext transformContext) + private static void IRQ82(Context context, Transform transform) { - InsertIRQ(82, context, transformContext); + InsertIRQ(82, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ83")] - private static void IRQ83(Context context, TransformContext transformContext) + private static void IRQ83(Context context, Transform transform) { - InsertIRQ(83, context, transformContext); + InsertIRQ(83, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ84")] - private static void IRQ84(Context context, TransformContext transformContext) + private static void IRQ84(Context context, Transform transform) { - InsertIRQ(84, context, transformContext); + InsertIRQ(84, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ85")] - private static void IRQ85(Context context, TransformContext transformContext) + private static void IRQ85(Context context, Transform transform) { - InsertIRQ(85, context, transformContext); + InsertIRQ(85, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ86")] - private static void IRQ86(Context context, TransformContext transformContext) + private static void IRQ86(Context context, Transform transform) { - InsertIRQ(86, context, transformContext); + InsertIRQ(86, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ87")] - private static void IRQ87(Context context, TransformContext transformContext) + private static void IRQ87(Context context, Transform transform) { - InsertIRQ(87, context, transformContext); + InsertIRQ(87, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ88")] - private static void IRQ88(Context context, TransformContext transformContext) + private static void IRQ88(Context context, Transform transform) { - InsertIRQ(88, context, transformContext); + InsertIRQ(88, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ89")] - private static void IRQ89(Context context, TransformContext transformContext) + private static void IRQ89(Context context, Transform transform) { - InsertIRQ(89, context, transformContext); + InsertIRQ(89, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ90")] - private static void IRQ90(Context context, TransformContext transformContext) + private static void IRQ90(Context context, Transform transform) { - InsertIRQ(90, context, transformContext); + InsertIRQ(90, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ91")] - private static void IRQ91(Context context, TransformContext transformContext) + private static void IRQ91(Context context, Transform transform) { - InsertIRQ(91, context, transformContext); + InsertIRQ(91, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ92")] - private static void IRQ92(Context context, TransformContext transformContext) + private static void IRQ92(Context context, Transform transform) { - InsertIRQ(92, context, transformContext); + InsertIRQ(92, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ93")] - private static void IRQ93(Context context, TransformContext transformContext) + private static void IRQ93(Context context, Transform transform) { - InsertIRQ(93, context, transformContext); + InsertIRQ(93, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ94")] - private static void IRQ94(Context context, TransformContext transformContext) + private static void IRQ94(Context context, Transform transform) { - InsertIRQ(94, context, transformContext); + InsertIRQ(94, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ95")] - private static void IRQ95(Context context, TransformContext transformContext) + private static void IRQ95(Context context, Transform transform) { - InsertIRQ(95, context, transformContext); + InsertIRQ(95, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ96")] - private static void IRQ96(Context context, TransformContext transformContext) + private static void IRQ96(Context context, Transform transform) { - InsertIRQ(96, context, transformContext); + InsertIRQ(96, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ97")] - private static void IRQ97(Context context, TransformContext transformContext) + private static void IRQ97(Context context, Transform transform) { - InsertIRQ(97, context, transformContext); + InsertIRQ(97, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ98")] - private static void IRQ98(Context context, TransformContext transformContext) + private static void IRQ98(Context context, Transform transform) { - InsertIRQ(98, context, transformContext); + InsertIRQ(98, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ99")] - private static void IRQ99(Context context, TransformContext transformContext) + private static void IRQ99(Context context, Transform transform) { - InsertIRQ(99, context, transformContext); + InsertIRQ(99, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ100")] - private static void IRQ100(Context context, TransformContext transformContext) + private static void IRQ100(Context context, Transform transform) { - InsertIRQ(100, context, transformContext); + InsertIRQ(100, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ101")] - private static void IRQ101(Context context, TransformContext transformContext) + private static void IRQ101(Context context, Transform transform) { - InsertIRQ(101, context, transformContext); + InsertIRQ(101, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ102")] - private static void IRQ102(Context context, TransformContext transformContext) + private static void IRQ102(Context context, Transform transform) { - InsertIRQ(102, context, transformContext); + InsertIRQ(102, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ103")] - private static void IRQ103(Context context, TransformContext transformContext) + private static void IRQ103(Context context, Transform transform) { - InsertIRQ(103, context, transformContext); + InsertIRQ(103, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ104")] - private static void IRQ104(Context context, TransformContext transformContext) + private static void IRQ104(Context context, Transform transform) { - InsertIRQ(104, context, transformContext); + InsertIRQ(104, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ105")] - private static void IRQ105(Context context, TransformContext transformContext) + private static void IRQ105(Context context, Transform transform) { - InsertIRQ(105, context, transformContext); + InsertIRQ(105, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ106")] - private static void IRQ106(Context context, TransformContext transformContext) + private static void IRQ106(Context context, Transform transform) { - InsertIRQ(106, context, transformContext); + InsertIRQ(106, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ107")] - private static void IRQ107(Context context, TransformContext transformContext) + private static void IRQ107(Context context, Transform transform) { - InsertIRQ(107, context, transformContext); + InsertIRQ(107, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ108")] - private static void IRQ108(Context context, TransformContext transformContext) + private static void IRQ108(Context context, Transform transform) { - InsertIRQ(108, context, transformContext); + InsertIRQ(108, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ109")] - private static void IRQ109(Context context, TransformContext transformContext) + private static void IRQ109(Context context, Transform transform) { - InsertIRQ(109, context, transformContext); + InsertIRQ(109, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ110")] - private static void IRQ110(Context context, TransformContext transformContext) + private static void IRQ110(Context context, Transform transform) { - InsertIRQ(110, context, transformContext); + InsertIRQ(110, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ111")] - private static void IRQ111(Context context, TransformContext transformContext) + private static void IRQ111(Context context, Transform transform) { - InsertIRQ(111, context, transformContext); + InsertIRQ(111, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ112")] - private static void IRQ112(Context context, TransformContext transformContext) + private static void IRQ112(Context context, Transform transform) { - InsertIRQ(112, context, transformContext); + InsertIRQ(112, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ113")] - private static void IRQ113(Context context, TransformContext transformContext) + private static void IRQ113(Context context, Transform transform) { - InsertIRQ(113, context, transformContext); + InsertIRQ(113, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ114")] - private static void IRQ114(Context context, TransformContext transformContext) + private static void IRQ114(Context context, Transform transform) { - InsertIRQ(114, context, transformContext); + InsertIRQ(114, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ115")] - private static void IRQ115(Context context, TransformContext transformContext) + private static void IRQ115(Context context, Transform transform) { - InsertIRQ(115, context, transformContext); + InsertIRQ(115, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ116")] - private static void IRQ116(Context context, TransformContext transformContext) + private static void IRQ116(Context context, Transform transform) { - InsertIRQ(116, context, transformContext); + InsertIRQ(116, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ117")] - private static void IRQ117(Context context, TransformContext transformContext) + private static void IRQ117(Context context, Transform transform) { - InsertIRQ(117, context, transformContext); + InsertIRQ(117, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ118")] - private static void IRQ118(Context context, TransformContext transformContext) + private static void IRQ118(Context context, Transform transform) { - InsertIRQ(118, context, transformContext); + InsertIRQ(118, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ119")] - private static void IRQ119(Context context, TransformContext transformContext) + private static void IRQ119(Context context, Transform transform) { - InsertIRQ(119, context, transformContext); + InsertIRQ(119, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ120")] - private static void IRQ120(Context context, TransformContext transformContext) + private static void IRQ120(Context context, Transform transform) { - InsertIRQ(120, context, transformContext); + InsertIRQ(120, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ121")] - private static void IRQ121(Context context, TransformContext transformContext) + private static void IRQ121(Context context, Transform transform) { - InsertIRQ(121, context, transformContext); + InsertIRQ(121, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ122")] - private static void IRQ122(Context context, TransformContext transformContext) + private static void IRQ122(Context context, Transform transform) { - InsertIRQ(122, context, transformContext); + InsertIRQ(122, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ123")] - private static void IRQ123(Context context, TransformContext transformContext) + private static void IRQ123(Context context, Transform transform) { - InsertIRQ(123, context, transformContext); + InsertIRQ(123, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ124")] - private static void IRQ124(Context context, TransformContext transformContext) + private static void IRQ124(Context context, Transform transform) { - InsertIRQ(124, context, transformContext); + InsertIRQ(124, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ125")] - private static void IRQ125(Context context, TransformContext transformContext) + private static void IRQ125(Context context, Transform transform) { - InsertIRQ(125, context, transformContext); + InsertIRQ(125, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ126")] - private static void IRQ126(Context context, TransformContext transformContext) + private static void IRQ126(Context context, Transform transform) { - InsertIRQ(126, context, transformContext); + InsertIRQ(126, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ127")] - private static void IRQ127(Context context, TransformContext transformContext) + private static void IRQ127(Context context, Transform transform) { - InsertIRQ(127, context, transformContext); + InsertIRQ(127, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ128")] - private static void IRQ128(Context context, TransformContext transformContext) + private static void IRQ128(Context context, Transform transform) { - InsertIRQ(128, context, transformContext); + InsertIRQ(128, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ129")] - private static void IRQ129(Context context, TransformContext transformContext) + private static void IRQ129(Context context, Transform transform) { - InsertIRQ(129, context, transformContext); + InsertIRQ(129, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ130")] - private static void IRQ130(Context context, TransformContext transformContext) + private static void IRQ130(Context context, Transform transform) { - InsertIRQ(130, context, transformContext); + InsertIRQ(130, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ131")] - private static void IRQ131(Context context, TransformContext transformContext) + private static void IRQ131(Context context, Transform transform) { - InsertIRQ(131, context, transformContext); + InsertIRQ(131, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ132")] - private static void IRQ132(Context context, TransformContext transformContext) + private static void IRQ132(Context context, Transform transform) { - InsertIRQ(132, context, transformContext); + InsertIRQ(132, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ133")] - private static void IRQ133(Context context, TransformContext transformContext) + private static void IRQ133(Context context, Transform transform) { - InsertIRQ(133, context, transformContext); + InsertIRQ(133, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ134")] - private static void IRQ134(Context context, TransformContext transformContext) + private static void IRQ134(Context context, Transform transform) { - InsertIRQ(134, context, transformContext); + InsertIRQ(134, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ135")] - private static void IRQ135(Context context, TransformContext transformContext) + private static void IRQ135(Context context, Transform transform) { - InsertIRQ(135, context, transformContext); + InsertIRQ(135, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ136")] - private static void IRQ136(Context context, TransformContext transformContext) + private static void IRQ136(Context context, Transform transform) { - InsertIRQ(136, context, transformContext); + InsertIRQ(136, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ137")] - private static void IRQ137(Context context, TransformContext transformContext) + private static void IRQ137(Context context, Transform transform) { - InsertIRQ(137, context, transformContext); + InsertIRQ(137, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ138")] - private static void IRQ138(Context context, TransformContext transformContext) + private static void IRQ138(Context context, Transform transform) { - InsertIRQ(138, context, transformContext); + InsertIRQ(138, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ139")] - private static void IRQ139(Context context, TransformContext transformContext) + private static void IRQ139(Context context, Transform transform) { - InsertIRQ(139, context, transformContext); + InsertIRQ(139, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ140")] - private static void IRQ140(Context context, TransformContext transformContext) + private static void IRQ140(Context context, Transform transform) { - InsertIRQ(140, context, transformContext); + InsertIRQ(140, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ141")] - private static void IRQ141(Context context, TransformContext transformContext) + private static void IRQ141(Context context, Transform transform) { - InsertIRQ(141, context, transformContext); + InsertIRQ(141, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ142")] - private static void IRQ142(Context context, TransformContext transformContext) + private static void IRQ142(Context context, Transform transform) { - InsertIRQ(142, context, transformContext); + InsertIRQ(142, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ143")] - private static void IRQ143(Context context, TransformContext transformContext) + private static void IRQ143(Context context, Transform transform) { - InsertIRQ(143, context, transformContext); + InsertIRQ(143, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ144")] - private static void IRQ144(Context context, TransformContext transformContext) + private static void IRQ144(Context context, Transform transform) { - InsertIRQ(144, context, transformContext); + InsertIRQ(144, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ145")] - private static void IRQ145(Context context, TransformContext transformContext) + private static void IRQ145(Context context, Transform transform) { - InsertIRQ(145, context, transformContext); + InsertIRQ(145, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ146")] - private static void IRQ146(Context context, TransformContext transformContext) + private static void IRQ146(Context context, Transform transform) { - InsertIRQ(146, context, transformContext); + InsertIRQ(146, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ147")] - private static void IRQ147(Context context, TransformContext transformContext) + private static void IRQ147(Context context, Transform transform) { - InsertIRQ(147, context, transformContext); + InsertIRQ(147, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ148")] - private static void IRQ148(Context context, TransformContext transformContext) + private static void IRQ148(Context context, Transform transform) { - InsertIRQ(148, context, transformContext); + InsertIRQ(148, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ149")] - private static void IRQ149(Context context, TransformContext transformContext) + private static void IRQ149(Context context, Transform transform) { - InsertIRQ(149, context, transformContext); + InsertIRQ(149, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ150")] - private static void IRQ150(Context context, TransformContext transformContext) + private static void IRQ150(Context context, Transform transform) { - InsertIRQ(150, context, transformContext); + InsertIRQ(150, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ151")] - private static void IRQ151(Context context, TransformContext transformContext) + private static void IRQ151(Context context, Transform transform) { - InsertIRQ(151, context, transformContext); + InsertIRQ(151, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ152")] - private static void IRQ152(Context context, TransformContext transformContext) + private static void IRQ152(Context context, Transform transform) { - InsertIRQ(152, context, transformContext); + InsertIRQ(152, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ153")] - private static void IRQ153(Context context, TransformContext transformContext) + private static void IRQ153(Context context, Transform transform) { - InsertIRQ(153, context, transformContext); + InsertIRQ(153, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ154")] - private static void IRQ154(Context context, TransformContext transformContext) + private static void IRQ154(Context context, Transform transform) { - InsertIRQ(154, context, transformContext); + InsertIRQ(154, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ155")] - private static void IRQ155(Context context, TransformContext transformContext) + private static void IRQ155(Context context, Transform transform) { - InsertIRQ(155, context, transformContext); + InsertIRQ(155, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ156")] - private static void IRQ156(Context context, TransformContext transformContext) + private static void IRQ156(Context context, Transform transform) { - InsertIRQ(156, context, transformContext); + InsertIRQ(156, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ157")] - private static void IRQ157(Context context, TransformContext transformContext) + private static void IRQ157(Context context, Transform transform) { - InsertIRQ(157, context, transformContext); + InsertIRQ(157, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ158")] - private static void IRQ158(Context context, TransformContext transformContext) + private static void IRQ158(Context context, Transform transform) { - InsertIRQ(158, context, transformContext); + InsertIRQ(158, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ159")] - private static void IRQ159(Context context, TransformContext transformContext) + private static void IRQ159(Context context, Transform transform) { - InsertIRQ(159, context, transformContext); + InsertIRQ(159, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ160")] - private static void IRQ160(Context context, TransformContext transformContext) + private static void IRQ160(Context context, Transform transform) { - InsertIRQ(160, context, transformContext); + InsertIRQ(160, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ161")] - private static void IRQ161(Context context, TransformContext transformContext) + private static void IRQ161(Context context, Transform transform) { - InsertIRQ(161, context, transformContext); + InsertIRQ(161, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ162")] - private static void IRQ162(Context context, TransformContext transformContext) + private static void IRQ162(Context context, Transform transform) { - InsertIRQ(162, context, transformContext); + InsertIRQ(162, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ163")] - private static void IRQ163(Context context, TransformContext transformContext) + private static void IRQ163(Context context, Transform transform) { - InsertIRQ(163, context, transformContext); + InsertIRQ(163, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ164")] - private static void IRQ164(Context context, TransformContext transformContext) + private static void IRQ164(Context context, Transform transform) { - InsertIRQ(164, context, transformContext); + InsertIRQ(164, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ165")] - private static void IRQ165(Context context, TransformContext transformContext) + private static void IRQ165(Context context, Transform transform) { - InsertIRQ(165, context, transformContext); + InsertIRQ(165, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ166")] - private static void IRQ166(Context context, TransformContext transformContext) + private static void IRQ166(Context context, Transform transform) { - InsertIRQ(166, context, transformContext); + InsertIRQ(166, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ167")] - private static void IRQ167(Context context, TransformContext transformContext) + private static void IRQ167(Context context, Transform transform) { - InsertIRQ(167, context, transformContext); + InsertIRQ(167, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ168")] - private static void IRQ168(Context context, TransformContext transformContext) + private static void IRQ168(Context context, Transform transform) { - InsertIRQ(168, context, transformContext); + InsertIRQ(168, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ169")] - private static void IRQ169(Context context, TransformContext transformContext) + private static void IRQ169(Context context, Transform transform) { - InsertIRQ(169, context, transformContext); + InsertIRQ(169, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ170")] - private static void IRQ170(Context context, TransformContext transformContext) + private static void IRQ170(Context context, Transform transform) { - InsertIRQ(170, context, transformContext); + InsertIRQ(170, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ171")] - private static void IRQ171(Context context, TransformContext transformContext) + private static void IRQ171(Context context, Transform transform) { - InsertIRQ(171, context, transformContext); + InsertIRQ(171, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ172")] - private static void IRQ172(Context context, TransformContext transformContext) + private static void IRQ172(Context context, Transform transform) { - InsertIRQ(172, context, transformContext); + InsertIRQ(172, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ173")] - private static void IRQ173(Context context, TransformContext transformContext) + private static void IRQ173(Context context, Transform transform) { - InsertIRQ(173, context, transformContext); + InsertIRQ(173, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ174")] - private static void IRQ174(Context context, TransformContext transformContext) + private static void IRQ174(Context context, Transform transform) { - InsertIRQ(174, context, transformContext); + InsertIRQ(174, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ175")] - private static void IRQ175(Context context, TransformContext transformContext) + private static void IRQ175(Context context, Transform transform) { - InsertIRQ(175, context, transformContext); + InsertIRQ(175, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ176")] - private static void IRQ176(Context context, TransformContext transformContext) + private static void IRQ176(Context context, Transform transform) { - InsertIRQ(176, context, transformContext); + InsertIRQ(176, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ177")] - private static void IRQ177(Context context, TransformContext transformContext) + private static void IRQ177(Context context, Transform transform) { - InsertIRQ(177, context, transformContext); + InsertIRQ(177, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ178")] - private static void IRQ178(Context context, TransformContext transformContext) + private static void IRQ178(Context context, Transform transform) { - InsertIRQ(178, context, transformContext); + InsertIRQ(178, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ179")] - private static void IRQ179(Context context, TransformContext transformContext) + private static void IRQ179(Context context, Transform transform) { - InsertIRQ(179, context, transformContext); + InsertIRQ(179, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ180")] - private static void IRQ180(Context context, TransformContext transformContext) + private static void IRQ180(Context context, Transform transform) { - InsertIRQ(180, context, transformContext); + InsertIRQ(180, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ181")] - private static void IRQ181(Context context, TransformContext transformContext) + private static void IRQ181(Context context, Transform transform) { - InsertIRQ(181, context, transformContext); + InsertIRQ(181, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ182")] - private static void IRQ182(Context context, TransformContext transformContext) + private static void IRQ182(Context context, Transform transform) { - InsertIRQ(182, context, transformContext); + InsertIRQ(182, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ183")] - private static void IRQ183(Context context, TransformContext transformContext) + private static void IRQ183(Context context, Transform transform) { - InsertIRQ(183, context, transformContext); + InsertIRQ(183, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ184")] - private static void IRQ184(Context context, TransformContext transformContext) + private static void IRQ184(Context context, Transform transform) { - InsertIRQ(184, context, transformContext); + InsertIRQ(184, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ185")] - private static void IRQ185(Context context, TransformContext transformContext) + private static void IRQ185(Context context, Transform transform) { - InsertIRQ(185, context, transformContext); + InsertIRQ(185, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ186")] - private static void IRQ186(Context context, TransformContext transformContext) + private static void IRQ186(Context context, Transform transform) { - InsertIRQ(186, context, transformContext); + InsertIRQ(186, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ187")] - private static void IRQ187(Context context, TransformContext transformContext) + private static void IRQ187(Context context, Transform transform) { - InsertIRQ(187, context, transformContext); + InsertIRQ(187, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ188")] - private static void IRQ188(Context context, TransformContext transformContext) + private static void IRQ188(Context context, Transform transform) { - InsertIRQ(188, context, transformContext); + InsertIRQ(188, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ189")] - private static void IRQ189(Context context, TransformContext transformContext) + private static void IRQ189(Context context, Transform transform) { - InsertIRQ(189, context, transformContext); + InsertIRQ(189, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ190")] - private static void IRQ190(Context context, TransformContext transformContext) + private static void IRQ190(Context context, Transform transform) { - InsertIRQ(190, context, transformContext); + InsertIRQ(190, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ191")] - private static void IRQ191(Context context, TransformContext transformContext) + private static void IRQ191(Context context, Transform transform) { - InsertIRQ(191, context, transformContext); + InsertIRQ(191, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ192")] - private static void IRQ192(Context context, TransformContext transformContext) + private static void IRQ192(Context context, Transform transform) { - InsertIRQ(192, context, transformContext); + InsertIRQ(192, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ193")] - private static void IRQ193(Context context, TransformContext transformContext) + private static void IRQ193(Context context, Transform transform) { - InsertIRQ(193, context, transformContext); + InsertIRQ(193, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ194")] - private static void IRQ194(Context context, TransformContext transformContext) + private static void IRQ194(Context context, Transform transform) { - InsertIRQ(194, context, transformContext); + InsertIRQ(194, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ195")] - private static void IRQ195(Context context, TransformContext transformContext) + private static void IRQ195(Context context, Transform transform) { - InsertIRQ(195, context, transformContext); + InsertIRQ(195, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ196")] - private static void IRQ196(Context context, TransformContext transformContext) + private static void IRQ196(Context context, Transform transform) { - InsertIRQ(196, context, transformContext); + InsertIRQ(196, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ197")] - private static void IRQ197(Context context, TransformContext transformContext) + private static void IRQ197(Context context, Transform transform) { - InsertIRQ(197, context, transformContext); + InsertIRQ(197, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ198")] - private static void IRQ198(Context context, TransformContext transformContext) + private static void IRQ198(Context context, Transform transform) { - InsertIRQ(198, context, transformContext); + InsertIRQ(198, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ199")] - private static void IRQ199(Context context, TransformContext transformContext) + private static void IRQ199(Context context, Transform transform) { - InsertIRQ(199, context, transformContext); + InsertIRQ(199, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ200")] - private static void IRQ200(Context context, TransformContext transformContext) + private static void IRQ200(Context context, Transform transform) { - InsertIRQ(200, context, transformContext); + InsertIRQ(200, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ201")] - private static void IRQ201(Context context, TransformContext transformContext) + private static void IRQ201(Context context, Transform transform) { - InsertIRQ(201, context, transformContext); + InsertIRQ(201, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ202")] - private static void IRQ202(Context context, TransformContext transformContext) + private static void IRQ202(Context context, Transform transform) { - InsertIRQ(202, context, transformContext); + InsertIRQ(202, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ203")] - private static void IRQ203(Context context, TransformContext transformContext) + private static void IRQ203(Context context, Transform transform) { - InsertIRQ(203, context, transformContext); + InsertIRQ(203, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ204")] - private static void IRQ204(Context context, TransformContext transformContext) + private static void IRQ204(Context context, Transform transform) { - InsertIRQ(204, context, transformContext); + InsertIRQ(204, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ205")] - private static void IRQ205(Context context, TransformContext transformContext) + private static void IRQ205(Context context, Transform transform) { - InsertIRQ(205, context, transformContext); + InsertIRQ(205, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ206")] - private static void IRQ206(Context context, TransformContext transformContext) + private static void IRQ206(Context context, Transform transform) { - InsertIRQ(206, context, transformContext); + InsertIRQ(206, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ207")] - private static void IRQ207(Context context, TransformContext transformContext) + private static void IRQ207(Context context, Transform transform) { - InsertIRQ(207, context, transformContext); + InsertIRQ(207, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ208")] - private static void IRQ208(Context context, TransformContext transformContext) + private static void IRQ208(Context context, Transform transform) { - InsertIRQ(208, context, transformContext); + InsertIRQ(208, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ209")] - private static void IRQ209(Context context, TransformContext transformContext) + private static void IRQ209(Context context, Transform transform) { - InsertIRQ(209, context, transformContext); + InsertIRQ(209, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ210")] - private static void IRQ210(Context context, TransformContext transformContext) + private static void IRQ210(Context context, Transform transform) { - InsertIRQ(210, context, transformContext); + InsertIRQ(210, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ211")] - private static void IRQ211(Context context, TransformContext transformContext) + private static void IRQ211(Context context, Transform transform) { - InsertIRQ(211, context, transformContext); + InsertIRQ(211, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ212")] - private static void IRQ212(Context context, TransformContext transformContext) + private static void IRQ212(Context context, Transform transform) { - InsertIRQ(212, context, transformContext); + InsertIRQ(212, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ213")] - private static void IRQ213(Context context, TransformContext transformContext) + private static void IRQ213(Context context, Transform transform) { - InsertIRQ(213, context, transformContext); + InsertIRQ(213, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ214")] - private static void IRQ214(Context context, TransformContext transformContext) + private static void IRQ214(Context context, Transform transform) { - InsertIRQ(214, context, transformContext); + InsertIRQ(214, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ215")] - private static void IRQ215(Context context, TransformContext transformContext) + private static void IRQ215(Context context, Transform transform) { - InsertIRQ(215, context, transformContext); + InsertIRQ(215, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ216")] - private static void IRQ216(Context context, TransformContext transformContext) + private static void IRQ216(Context context, Transform transform) { - InsertIRQ(216, context, transformContext); + InsertIRQ(216, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ217")] - private static void IRQ217(Context context, TransformContext transformContext) + private static void IRQ217(Context context, Transform transform) { - InsertIRQ(217, context, transformContext); + InsertIRQ(217, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ218")] - private static void IRQ218(Context context, TransformContext transformContext) + private static void IRQ218(Context context, Transform transform) { - InsertIRQ(218, context, transformContext); + InsertIRQ(218, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ219")] - private static void IRQ219(Context context, TransformContext transformContext) + private static void IRQ219(Context context, Transform transform) { - InsertIRQ(219, context, transformContext); + InsertIRQ(219, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ220")] - private static void IRQ220(Context context, TransformContext transformContext) + private static void IRQ220(Context context, Transform transform) { - InsertIRQ(220, context, transformContext); + InsertIRQ(220, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ221")] - private static void IRQ221(Context context, TransformContext transformContext) + private static void IRQ221(Context context, Transform transform) { - InsertIRQ(221, context, transformContext); + InsertIRQ(221, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ222")] - private static void IRQ222(Context context, TransformContext transformContext) + private static void IRQ222(Context context, Transform transform) { - InsertIRQ(222, context, transformContext); + InsertIRQ(222, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ223")] - private static void IRQ223(Context context, TransformContext transformContext) + private static void IRQ223(Context context, Transform transform) { - InsertIRQ(223, context, transformContext); + InsertIRQ(223, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ224")] - private static void IRQ224(Context context, TransformContext transformContext) + private static void IRQ224(Context context, Transform transform) { - InsertIRQ(224, context, transformContext); + InsertIRQ(224, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ225")] - private static void IRQ225(Context context, TransformContext transformContext) + private static void IRQ225(Context context, Transform transform) { - InsertIRQ(225, context, transformContext); + InsertIRQ(225, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ226")] - private static void IRQ226(Context context, TransformContext transformContext) + private static void IRQ226(Context context, Transform transform) { - InsertIRQ(226, context, transformContext); + InsertIRQ(226, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ227")] - private static void IRQ227(Context context, TransformContext transformContext) + private static void IRQ227(Context context, Transform transform) { - InsertIRQ(227, context, transformContext); + InsertIRQ(227, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ228")] - private static void IRQ228(Context context, TransformContext transformContext) + private static void IRQ228(Context context, Transform transform) { - InsertIRQ(228, context, transformContext); + InsertIRQ(228, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ229")] - private static void IRQ229(Context context, TransformContext transformContext) + private static void IRQ229(Context context, Transform transform) { - InsertIRQ(229, context, transformContext); + InsertIRQ(229, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ230")] - private static void IRQ230(Context context, TransformContext transformContext) + private static void IRQ230(Context context, Transform transform) { - InsertIRQ(230, context, transformContext); + InsertIRQ(230, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ231")] - private static void IRQ231(Context context, TransformContext transformContext) + private static void IRQ231(Context context, Transform transform) { - InsertIRQ(231, context, transformContext); + InsertIRQ(231, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ232")] - private static void IRQ232(Context context, TransformContext transformContext) + private static void IRQ232(Context context, Transform transform) { - InsertIRQ(232, context, transformContext); + InsertIRQ(232, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ233")] - private static void IRQ233(Context context, TransformContext transformContext) + private static void IRQ233(Context context, Transform transform) { - InsertIRQ(233, context, transformContext); + InsertIRQ(233, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ234")] - private static void IRQ234(Context context, TransformContext transformContext) + private static void IRQ234(Context context, Transform transform) { - InsertIRQ(234, context, transformContext); + InsertIRQ(234, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ235")] - private static void IRQ235(Context context, TransformContext transformContext) + private static void IRQ235(Context context, Transform transform) { - InsertIRQ(235, context, transformContext); + InsertIRQ(235, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ236")] - private static void IRQ236(Context context, TransformContext transformContext) + private static void IRQ236(Context context, Transform transform) { - InsertIRQ(236, context, transformContext); + InsertIRQ(236, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ237")] - private static void IRQ237(Context context, TransformContext transformContext) + private static void IRQ237(Context context, Transform transform) { - InsertIRQ(237, context, transformContext); + InsertIRQ(237, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ238")] - private static void IRQ238(Context context, TransformContext transformContext) + private static void IRQ238(Context context, Transform transform) { - InsertIRQ(238, context, transformContext); + InsertIRQ(238, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ239")] - private static void IRQ239(Context context, TransformContext transformContext) + private static void IRQ239(Context context, Transform transform) { - InsertIRQ(239, context, transformContext); + InsertIRQ(239, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ240")] - private static void IRQ240(Context context, TransformContext transformContext) + private static void IRQ240(Context context, Transform transform) { - InsertIRQ(240, context, transformContext); + InsertIRQ(240, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ241")] - private static void IRQ241(Context context, TransformContext transformContext) + private static void IRQ241(Context context, Transform transform) { - InsertIRQ(241, context, transformContext); + InsertIRQ(241, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ242")] - private static void IRQ242(Context context, TransformContext transformContext) + private static void IRQ242(Context context, Transform transform) { - InsertIRQ(242, context, transformContext); + InsertIRQ(242, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ243")] - private static void IRQ243(Context context, TransformContext transformContext) + private static void IRQ243(Context context, Transform transform) { - InsertIRQ(243, context, transformContext); + InsertIRQ(243, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ244")] - private static void IRQ244(Context context, TransformContext transformContext) + private static void IRQ244(Context context, Transform transform) { - InsertIRQ(244, context, transformContext); + InsertIRQ(244, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ245")] - private static void IRQ245(Context context, TransformContext transformContext) + private static void IRQ245(Context context, Transform transform) { - InsertIRQ(245, context, transformContext); + InsertIRQ(245, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ246")] - private static void IRQ246(Context context, TransformContext transformContext) + private static void IRQ246(Context context, Transform transform) { - InsertIRQ(246, context, transformContext); + InsertIRQ(246, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ247")] - private static void IRQ247(Context context, TransformContext transformContext) + private static void IRQ247(Context context, Transform transform) { - InsertIRQ(247, context, transformContext); + InsertIRQ(247, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ248")] - private static void IRQ248(Context context, TransformContext transformContext) + private static void IRQ248(Context context, Transform transform) { - InsertIRQ(248, context, transformContext); + InsertIRQ(248, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ249")] - private static void IRQ249(Context context, TransformContext transformContext) + private static void IRQ249(Context context, Transform transform) { - InsertIRQ(249, context, transformContext); + InsertIRQ(249, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ250")] - private static void IRQ250(Context context, TransformContext transformContext) + private static void IRQ250(Context context, Transform transform) { - InsertIRQ(250, context, transformContext); + InsertIRQ(250, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ251")] - private static void IRQ251(Context context, TransformContext transformContext) + private static void IRQ251(Context context, Transform transform) { - InsertIRQ(251, context, transformContext); + InsertIRQ(251, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ252")] - private static void IRQ252(Context context, TransformContext transformContext) + private static void IRQ252(Context context, Transform transform) { - InsertIRQ(252, context, transformContext); + InsertIRQ(252, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ253")] - private static void IRQ253(Context context, TransformContext transformContext) + private static void IRQ253(Context context, Transform transform) { - InsertIRQ(253, context, transformContext); + InsertIRQ(253, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ254")] - private static void IRQ254(Context context, TransformContext transformContext) + private static void IRQ254(Context context, Transform transform) { - InsertIRQ(254, context, transformContext); + InsertIRQ(254, context, transform); } [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::IRQ255")] - private static void IRQ255(Context context, TransformContext transformContext) + private static void IRQ255(Context context, Transform transform) { - InsertIRQ(255, context, transformContext); + InsertIRQ(255, context, transform); } } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/In16.cs b/Source/Mosa.Compiler.x86/Intrinsic/In16.cs index 8fe3e3e914..e50aa9b65d 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/In16.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/In16.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::In16")] - private static void In16(Context context, TransformContext transformContext) + private static void In16(Context context, Transform transform) { - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/In32.cs b/Source/Mosa.Compiler.x86/Intrinsic/In32.cs index 76ba2b53a9..3accfa5a60 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/In32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/In32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::In32")] - private static void In32(Context context, TransformContext transformContext) + private static void In32(Context context, Transform transform) { context.SetInstruction(X86.In32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/In8.cs b/Source/Mosa.Compiler.x86/Intrinsic/In8.cs index b4bc1b28d8..7d303a275e 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/In8.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/In8.cs @@ -10,9 +10,9 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::In8")] - private static void In8(Context context, TransformContext transformContext) + private static void In8(Context context, Transform transform) { - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Int.cs b/Source/Mosa.Compiler.x86/Intrinsic/Int.cs index 28e4d71803..48bd07a11a 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Int.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Int.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Int")] - private static void Int(Context context, TransformContext transformContext) + private static void Int(Context context, Transform transform) { Helper.FoldOperand1ToConstant(context); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/InterruptReturn.cs b/Source/Mosa.Compiler.x86/Intrinsic/InterruptReturn.cs index afdc971157..71c508196b 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/InterruptReturn.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/InterruptReturn.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::InterruptReturn")] - private static void InterruptReturn(Context context, TransformContext transformContext) + private static void InterruptReturn(Context context, Transform transform) { Operand v0 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Invlpg.cs b/Source/Mosa.Compiler.x86/Intrinsic/Invlpg.cs index 501be3c027..052d6ba537 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Invlpg.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Invlpg.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Invlpg")] - private static void Invlpg(Context context, TransformContext transformContext) + private static void Invlpg(Context context, Transform transform) { //Debug.Assert(context.Operand1.IsConstant); context.SetInstruction(X86.Invlpg, null, context.Operand1); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Lgdt.cs b/Source/Mosa.Compiler.x86/Intrinsic/Lgdt.cs index 4844544f5d..6e8f1d7fe1 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Lgdt.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Lgdt.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Lgdt")] - private static void Lgdt(Context context, TransformContext transformContext) + private static void Lgdt(Context context, Transform transform) { context.SetInstruction(X86.Lgdt, null, context.Operand1); context.AppendInstruction(X86.JmpFar); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Lidt.cs b/Source/Mosa.Compiler.x86/Intrinsic/Lidt.cs index 51708a59e3..db86c526d2 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Lidt.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Lidt.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Lidt")] - private static void Lidt(Context context, TransformContext transformContext) + private static void Lidt(Context context, Transform transform) { //Helper.FoldOperand1ToConstant(context); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Lzcnt32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Lzcnt32.cs index 32dcafd5bc..1d7f42c315 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Lzcnt32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Lzcnt32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Lzcnt32")] - private static void Lzcnt32(Context context, TransformContext transformContext) + private static void Lzcnt32(Context context, Transform transform) { context.SetInstruction(X86.Lzcnt32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Memclr256.cs b/Source/Mosa.Compiler.x86/Intrinsic/Memclr256.cs index cc34a2d387..f91bae5586 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Memclr256.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Memclr256.cs @@ -10,11 +10,11 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Memclr256")] - private static void Memclr256(Context context, TransformContext transformContext) + private static void Memclr256(Context context, Transform transform) { var dest = context.Operand1; - var v0 = Operand.CreateCPURegisterNativeInteger(CPURegister.XMM0, transformContext.Is32BitPlatform); + var v0 = Operand.CreateCPURegisterNativeInteger(CPURegister.XMM0, transform.Is32BitPlatform); var offset16 = Operand.Constant32_16; context.SetInstruction(X86.PXor, v0, v0, v0); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Memcpy256.cs b/Source/Mosa.Compiler.x86/Intrinsic/Memcpy256.cs index 954c87df77..fe02b002dc 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Memcpy256.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Memcpy256.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Memcpy256")] - private static void Memcpy256(Context context, TransformContext transformContext) + private static void Memcpy256(Context context, Transform transform) { var dest = context.Operand1; var src = context.Operand2; - var v0 = transformContext.VirtualRegisters.Allocate32(); - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v0 = transform.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); var offset16 = Operand.Constant32_16; context.SetInstruction(X86.MovupsLoad, v0, dest, Operand.Constant32_0); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Nop.cs b/Source/Mosa.Compiler.x86/Intrinsic/Nop.cs index 734b6c5580..d8d30bb1ab 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Nop.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Nop.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Nop")] - private static void Nop(Context context, TransformContext transformContext) + private static void Nop(Context context, Transform transform) { context.SetInstruction(X86.Nop); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Out16.cs b/Source/Mosa.Compiler.x86/Intrinsic/Out16.cs index 7ad25382a3..1b93a68a25 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Out16.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Out16.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Out16")] - private static void Out16(Context context, TransformContext transformContext) + private static void Out16(Context context, Transform transform) { context.SetInstruction(X86.Out16, null, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Out32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Out32.cs index 987286c578..992110c6cd 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Out32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Out32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Out32")] - private static void Out32(Context context, TransformContext transformContext) + private static void Out32(Context context, Transform transform) { context.SetInstruction(X86.Out32, null, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Out8.cs b/Source/Mosa.Compiler.x86/Intrinsic/Out8.cs index 689ce107d2..a865bca722 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Out8.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Out8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Out8")] - private static void Out8(Context context, TransformContext transformContext) + private static void Out8(Context context, Transform transform) { context.SetInstruction(X86.Out8, null, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Pause.cs b/Source/Mosa.Compiler.x86/Intrinsic/Pause.cs index 47c39a2dc9..3ee5d8ad18 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Pause.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Pause.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Pause")] - private static void Pause(Context context, TransformContext transformContext) + private static void Pause(Context context, Transform transform) { context.SetInstruction(X86.Pause); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Popcnt32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Popcnt32.cs index 5a7e045756..d9e96b402a 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Popcnt32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Popcnt32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Popcnt32")] - private static void Popcnt32(Context context, TransformContext transformContext) + private static void Popcnt32(Context context, Transform transform) { context.SetInstruction(X86.Popcnt32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/RdMSR.cs b/Source/Mosa.Compiler.x86/Intrinsic/RdMSR.cs index 976aa6ffab..e8f0a630ba 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/RdMSR.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/RdMSR.cs @@ -10,12 +10,12 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::RdMSR")] - private static void RdMSR(Context context, TransformContext transformContext) + private static void RdMSR(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; - //transformContext.SplitOperand(result, out Operand resultLow, out Operand resultHigh); + //transform.SplitOperand(result, out Operand resultLow, out Operand resultHigh); var eax = Operand.CreateCPURegister32(CPURegister.EAX); var edx = Operand.CreateCPURegister32(CPURegister.EDX); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Remainder.cs b/Source/Mosa.Compiler.x86/Intrinsic/Remainder.cs index 87176534de..40095be86c 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Remainder.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Remainder.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Remainder")] - private static void Remainder(Context context, TransformContext transformContext) + private static void Remainder(Context context, Transform transform) { var result = context.Result; var dividend = context.Operand1; @@ -18,9 +18,9 @@ private static void Remainder(Context context, TransformContext transformContext if (result.IsR8) { - var xmm1 = transformContext.VirtualRegisters.AllocateR8(); - var xmm2 = transformContext.VirtualRegisters.AllocateR8(); - var xmm3 = transformContext.VirtualRegisters.AllocateR8(); + var xmm1 = transform.VirtualRegisters.AllocateR8(); + var xmm2 = transform.VirtualRegisters.AllocateR8(); + var xmm3 = transform.VirtualRegisters.AllocateR8(); context.SetInstruction(X86.Divsd, xmm1, dividend, divisor); context.AppendInstruction(X86.Roundsd, xmm2, xmm1, Operand.Constant32_3); @@ -29,9 +29,9 @@ private static void Remainder(Context context, TransformContext transformContext } else { - var xmm1 = transformContext.VirtualRegisters.AllocateR4(); - var xmm2 = transformContext.VirtualRegisters.AllocateR4(); - var xmm3 = transformContext.VirtualRegisters.AllocateR4(); + var xmm1 = transform.VirtualRegisters.AllocateR4(); + var xmm2 = transform.VirtualRegisters.AllocateR4(); + var xmm3 = transform.VirtualRegisters.AllocateR4(); context.SetInstruction(X86.Divss, xmm1, dividend, divisor); context.AppendInstruction(X86.Roundss, xmm2, xmm1, Operand.Constant32_3); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Negative.cs b/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Negative.cs index 5bd52e95c1..dc4fbfeaef 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Negative.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Negative.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Roundsd2Negative")] - private static void Roundsd2Negative(Context context, TransformContext transformContext) + private static void Roundsd2Negative(Context context, Transform transform) { context.SetInstruction(X86.Roundsd, context.Result, context.Operand1, Operand.Constant32_1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Positive.cs b/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Positive.cs index 9d7529fda0..73ad5c5874 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Positive.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Roundsd2Positive.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Roundsd2Positive")] - private static void Roundsd2Positive(Context context, TransformContext transformContext) + private static void Roundsd2Positive(Context context, Transform transform) { context.SetInstruction(X86.Roundsd, context.Result, context.Operand1, Operand.Constant32_2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Negative.cs b/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Negative.cs index 99b3fbad12..9ca4ce576d 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Negative.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Negative.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Roundss2Negative")] - private static void Roundss2Negative(Context context, TransformContext transformContext) + private static void Roundss2Negative(Context context, Transform transform) { context.SetInstruction(X86.Roundss, context.Result, context.Operand1, Operand.Constant32_1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Positive.cs b/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Positive.cs index db275fc8a1..e35ea3f967 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Positive.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Roundss2Positive.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Roundss2Positive")] - private static void Roundss2Positive(Context context, TransformContext transformContext) + private static void Roundss2Positive(Context context, Transform transform) { context.SetInstruction(X86.Roundss, context.Result, context.Operand1, Operand.Constant32_2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Set16.cs b/Source/Mosa.Compiler.x86/Intrinsic/Set16.cs index f861a178c2..221cdb90d3 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Set16.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Set16.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Set16")] - private static void Set16(Context context, TransformContext transformContext) + private static void Set16(Context context, Transform transform) { context.SetInstruction(X86.MovStore16, null, context.Operand1, Operand.Constant32_0, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Set32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Set32.cs index 62413dfd9c..4173af0756 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Set32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Set32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Set32")] - private static void Set32(Context context, TransformContext transformContext) + private static void Set32(Context context, Transform transform) { context.SetInstruction(X86.MovStore32, null, context.Operand1, Operand.Constant32_0, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Set8.cs b/Source/Mosa.Compiler.x86/Intrinsic/Set8.cs index 5e0befc95b..78f5c8f4c0 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Set8.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Set8.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Set8")] - private static void Set8(Context context, TransformContext transformContext) + private static void Set8(Context context, Transform transform) { context.SetInstruction(X86.MovStore8, null, context.Operand1, Operand.Constant32_0, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/SetCR0.cs b/Source/Mosa.Compiler.x86/Intrinsic/SetCR0.cs index c9a135c8b1..2ed06b9c5e 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/SetCR0.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/SetCR0.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::SetCR0")] - private static void SetCR0(Context context, TransformContext transformContext) + private static void SetCR0(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/SetCR2.cs b/Source/Mosa.Compiler.x86/Intrinsic/SetCR2.cs index 208ecee106..f6e8a1cdcf 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/SetCR2.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/SetCR2.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::SetCR2")] - private static void SetCR2(Context context, TransformContext transformContext) + private static void SetCR2(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/SetCR3.cs b/Source/Mosa.Compiler.x86/Intrinsic/SetCR3.cs index a25726d23c..0cde29ee65 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/SetCR3.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/SetCR3.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::SetCR3")] - private static void SetCR3(Context context, TransformContext transformContext) + private static void SetCR3(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/SetCR4.cs b/Source/Mosa.Compiler.x86/Intrinsic/SetCR4.cs index 81bbf8be19..b4b68c779a 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/SetCR4.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/SetCR4.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::SetCR4")] - private static void SetCR4(Context context, TransformContext transformContext) + private static void SetCR4(Context context, Transform transform) { Operand operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/SetFS.cs b/Source/Mosa.Compiler.x86/Intrinsic/SetFS.cs index 8a807dcc35..c740a25355 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/SetFS.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/SetFS.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::SetFS")] - private static void SetFS(Context context, TransformContext transformContext) + private static void SetFS(Context context, Transform transform) { context.SetInstruction(X86.MovStoreSeg32, Operand.CreateCPURegister32(CPURegister.FS), context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/SetSegments.cs b/Source/Mosa.Compiler.x86/Intrinsic/SetSegments.cs index d09bc73c6a..e256ecc19c 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/SetSegments.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/SetSegments.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::SetSegments")] - private static void SetSegments(Context context, TransformContext transformContext) + private static void SetSegments(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Sqrtsd.cs b/Source/Mosa.Compiler.x86/Intrinsic/Sqrtsd.cs index d9b78e5535..a7011ce69b 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Sqrtsd.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Sqrtsd.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Sqrtsd")] - private static void Sqrtsd(Context context, TransformContext transformContext) + private static void Sqrtsd(Context context, Transform transform) { context.SetInstruction(X86.Sqrtsd, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Sqrtss.cs b/Source/Mosa.Compiler.x86/Intrinsic/Sqrtss.cs index dab13bf7ef..73628b7929 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Sqrtss.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Sqrtss.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Sqrtss")] - private static void Sqrtss(Context context, TransformContext transformContext) + private static void Sqrtss(Context context, Transform transform) { context.SetInstruction(X86.Sqrtss, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Sti.cs b/Source/Mosa.Compiler.x86/Intrinsic/Sti.cs index dcf9895ab7..7954232793 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Sti.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Sti.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Sti")] - private static void Sti(Context context, TransformContext transformContext) + private static void Sti(Context context, Transform transform) { context.SetInstruction(X86.Sti); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/Tzcnt32.cs b/Source/Mosa.Compiler.x86/Intrinsic/Tzcnt32.cs index 94a21d047d..7ab4bf1e32 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/Tzcnt32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/Tzcnt32.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::Tzcnt32")] - private static void Tzcnt32(Context context, TransformContext transformContext) + private static void Tzcnt32(Context context, Transform transform) { context.SetInstruction(X86.Tzcnt32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/WrMSR.cs b/Source/Mosa.Compiler.x86/Intrinsic/WrMSR.cs index 525f3de897..138150ef31 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/WrMSR.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/WrMSR.cs @@ -10,7 +10,7 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::WrMSR")] - private static void WrMSR(Context context, TransformContext transformContext) + private static void WrMSR(Context context, Transform transform) { context.SetInstruction(X86.WrMSR, null, context.Operand1, context.Operand2, context.Operand3); } diff --git a/Source/Mosa.Compiler.x86/Intrinsic/XAddLoad32.cs b/Source/Mosa.Compiler.x86/Intrinsic/XAddLoad32.cs index 48f70ae58a..0b3c8cfc65 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/XAddLoad32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/XAddLoad32.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::XAddLoad32")] - private static void XAddLoad32(Context context, TransformContext transformContext) + private static void XAddLoad32(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; var result = context.Result; - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction(X86.Mov32, v1, value); context.AppendInstruction(X86.Lock); diff --git a/Source/Mosa.Compiler.x86/Intrinsic/XChgLoad32.cs b/Source/Mosa.Compiler.x86/Intrinsic/XChgLoad32.cs index a971fae846..349f856e00 100644 --- a/Source/Mosa.Compiler.x86/Intrinsic/XChgLoad32.cs +++ b/Source/Mosa.Compiler.x86/Intrinsic/XChgLoad32.cs @@ -10,13 +10,13 @@ namespace Mosa.Compiler.x86.Intrinsic; internal static partial class IntrinsicMethods { [IntrinsicMethod("Mosa.Compiler.x86.Intrinsic::XChgLoad32")] - private static void XChgLoad32(Context context, TransformContext transformContext) + private static void XChgLoad32(Context context, Transform transform) { var location = context.Operand1; var value = context.Operand2; var result = context.Result; - var v1 = transformContext.VirtualRegisters.Allocate32(); + var v1 = transform.VirtualRegisters.Allocate32(); context.SetInstruction(X86.Mov32, v1, value); context.AppendInstruction(X86.Lock); diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Adc32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Adc32.cs index b47c4f8fa4..e7da30ddf0 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Adc32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Adc32.cs @@ -14,7 +14,7 @@ public Adc32() : base(X86.Adc32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Add32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Add32.cs index abdaeb36de..38f1a9b958 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Add32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Add32.cs @@ -14,7 +14,7 @@ public Add32() : base(X86.Add32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addsd.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addsd.cs index 16f80be751..0c7affc8d0 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addsd.cs @@ -14,7 +14,7 @@ public Addsd() : base(X86.Addsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Movsd); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addss.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addss.cs index b11b546b96..57fc422b7e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Addss.cs @@ -14,7 +14,7 @@ public Addss() : base(X86.Addss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Movss); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/And32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/And32.cs index ac7b5bda57..292dcac94c 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/And32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/And32.cs @@ -14,7 +14,7 @@ public And32() : base(X86.And32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/BaseAddressModeTransform.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/BaseAddressModeTransform.cs index eb3eb5b6ea..9382df2e3b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/BaseAddressModeTransform.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/BaseAddressModeTransform.cs @@ -12,7 +12,7 @@ public BaseAddressModeTransform(BaseInstruction instruction, TransformType type, #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return !IsAddressMode(context); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Btr32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Btr32.cs index ec0702fdda..643af46956 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Btr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Btr32.cs @@ -14,7 +14,7 @@ public Btr32() : base(X86.Btr32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Bts32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Bts32.cs index cbf6a12b92..8518dfbd69 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Bts32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Bts32.cs @@ -14,7 +14,7 @@ public Bts32() : base(X86.Bts32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Dec32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Dec32.cs index 0fe7384af4..8f768100bd 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Dec32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Dec32.cs @@ -14,7 +14,7 @@ public Dec32() : base(X86.Dec32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divsd.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divsd.cs index f924d84845..2447c11ea6 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divsd.cs @@ -14,7 +14,7 @@ public Divsd() : base(X86.Divsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Movsd); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divss.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divss.cs index 2aa998eb60..5b31ba06d0 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Divss.cs @@ -14,7 +14,7 @@ public Divss() : base(X86.Divss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Movss); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/IMul32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/IMul32.cs index da4293f526..c222222788 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/IMul32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/IMul32.cs @@ -14,7 +14,7 @@ public IMul32() : base(X86.IMul32, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulsd.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulsd.cs index d0eb6c8efb..78eda3d97f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulsd.cs @@ -14,7 +14,7 @@ public Mulsd() : base(X86.Mulsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Movsd); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulss.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulss.cs index 27829dc2ec..f14f865265 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Mulss.cs @@ -14,7 +14,7 @@ public Mulss() : base(X86.Mulss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Movss); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Neg32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Neg32.cs index 694ae78352..59f0551b54 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Neg32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Neg32.cs @@ -14,7 +14,7 @@ public Neg32() : base(X86.Neg32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Not32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Not32.cs index e9de1b1217..b956a30532 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Not32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Not32.cs @@ -14,7 +14,7 @@ public Not32() : base(X86.Not32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Or32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Or32.cs index 2cf744555c..355288ee2d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Or32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Or32.cs @@ -14,7 +14,7 @@ public Or32() : base(X86.Or32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Rcr32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Rcr32.cs index b024ea6693..de5684df7d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Rcr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Rcr32.cs @@ -14,7 +14,7 @@ public Rcr32() : base(X86.Rcr32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundsd.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundsd.cs index 9b0974c1be..3ab76d2378 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundsd.cs @@ -14,7 +14,7 @@ public Roundsd() : base(X86.Roundsd, TransformType.Manual | TransformType.Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Movsd); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundss.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundss.cs index 50fcbab9b4..7d170b0ad9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Roundss.cs @@ -14,7 +14,7 @@ public Roundss() : base(X86.Roundss, TransformType.Manual | TransformType.Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Movss); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sar32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sar32.cs index e5b32265c8..7eb83e9651 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sar32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sar32.cs @@ -14,7 +14,7 @@ public Sar32() : base(X86.Sar32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sbb32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sbb32.cs index 088f87f86f..9e7a9c4ec5 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sbb32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sbb32.cs @@ -14,7 +14,7 @@ public Sbb32() : base(X86.Sbb32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shl32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shl32.cs index d661fa487a..6a437f727d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shl32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shl32.cs @@ -14,7 +14,7 @@ public Shl32() : base(X86.Shl32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shld32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shld32.cs index 17046557db..3718ef5d7e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shld32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shld32.cs @@ -14,7 +14,7 @@ public Shld32() : base(X86.Shld32, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shr32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shr32.cs index 85659cda18..538f426777 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shr32.cs @@ -14,7 +14,7 @@ public Shr32() : base(X86.Shr32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shrd32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shrd32.cs index ac1db41020..7f20d2f15f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shrd32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Shrd32.cs @@ -14,7 +14,7 @@ public Shrd32() : base(X86.Shrd32, TransformType.Manual | TransformType.Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sub32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sub32.cs index 8d8747055f..984ab9a014 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sub32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Sub32.cs @@ -14,7 +14,7 @@ public Sub32() : base(X86.Sub32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subsd.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subsd.cs index 9aa41d1186..d45bb4ba10 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subsd.cs @@ -14,7 +14,7 @@ public Subsd() : base(X86.Subsd, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Movsd); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subss.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subss.cs index f7d31b768d..554ef63d3f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Subss.cs @@ -14,7 +14,7 @@ public Subss() : base(X86.Subss, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Movss); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xor32.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xor32.cs index 14fc075b6f..2172eb907a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xor32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xor32.cs @@ -14,7 +14,7 @@ public Xor32() : base(X86.Xor32, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversionCummulative(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xorps.cs b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xorps.cs index f7f14d09a6..7620d60b5a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xorps.cs +++ b/Source/Mosa.Compiler.x86/Transforms/AddressMode/Xorps.cs @@ -14,7 +14,7 @@ public Xorps() : base(X86.Xorps, TransformType.Manual | TransformType.Transform) { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { AddressModeConversion(context, X86.Xorps); } diff --git a/Source/Mosa.Compiler.x86/Transforms/BaseX86Transform.cs b/Source/Mosa.Compiler.x86/Transforms/BaseX86Transform.cs index 19142951bd..c285c64d16 100644 --- a/Source/Mosa.Compiler.x86/Transforms/BaseX86Transform.cs +++ b/Source/Mosa.Compiler.x86/Transforms/BaseX86Transform.cs @@ -12,7 +12,7 @@ public BaseX86Transform(BaseInstruction instruction, TransformType type, bool lo #region Helpers - public static Operand MoveConstantToFloatRegister(TransformContext transform, Context context, Operand operand) + public static Operand MoveConstantToFloatRegister(Transform transform, Context context, Operand operand) { if (!operand.IsConstant) return operand; @@ -28,7 +28,7 @@ public static Operand MoveConstantToFloatRegister(TransformContext transform, Co return v1; } - public static Operand MoveConstantToFloatRegister(TransformContext transform, Context context, float value) + public static Operand MoveConstantToFloatRegister(Transform transform, Context context, float value) { var label = transform.CreateR4Label(value); @@ -39,7 +39,7 @@ public static Operand MoveConstantToFloatRegister(TransformContext transform, Co return v1; } - public static Operand MoveConstantToFloatRegister(TransformContext transform, Context context, double value) + public static Operand MoveConstantToFloatRegister(Transform transform, Context context, double value) { var label = transform.CreateR8Label(value); diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Cdq32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Cdq32.cs index e7d25dfc9f..06e62a02e9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Cdq32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Cdq32.cs @@ -14,7 +14,7 @@ public Cdq32() : base(X86.Cdq32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Div32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Div32.cs index 86005fa850..de03bb4f8e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Div32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Div32.cs @@ -14,7 +14,7 @@ public Div32() : base(X86.Div32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IDiv32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IDiv32.cs index d9579f5a51..496b02a8dd 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IDiv32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IDiv32.cs @@ -14,7 +14,7 @@ public IDiv32() : base(X86.IDiv32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32Constant.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32Constant.cs index 7b5b344493..1266df3304 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32Constant.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32Constant.cs @@ -14,12 +14,12 @@ public IMul32Constant() : base(X86.IMul32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand2.IsConstant; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32o1.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32o1.cs index d889debc7b..a8718aa17d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32o1.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/IMul32o1.cs @@ -15,7 +15,7 @@ public IMul32o1() : base(X86.IMul32o1, TransformType.Manual | TransformType.Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In16.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In16.cs index 7bfd4dd2a0..ebd9a3c22a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In16.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In16.cs @@ -14,7 +14,7 @@ public In16() : base(X86.In16, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In32.cs index 3727dcc86e..bec5b8ad00 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In32.cs @@ -14,7 +14,7 @@ public In32() : base(X86.In32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In8.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In8.cs index e671f869b7..140ff043ff 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/In8.cs @@ -14,7 +14,7 @@ public In8() : base(X86.In8, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Operand1.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/MovStoreSeg32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/MovStoreSeg32.cs index 8a58ab039f..9b822480cc 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/MovStoreSeg32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/MovStoreSeg32.cs @@ -14,7 +14,7 @@ public MovStoreSeg32() : base(X86.MovStoreSeg32, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Mul32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Mul32.cs index df903531f6..b6896cdc7c 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Mul32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Mul32.cs @@ -15,7 +15,7 @@ public Mul32() : base(X86.Mul32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -29,7 +29,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out16.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out16.cs index 79a007efc9..5d17a3e5d2 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out16.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out16.cs @@ -14,7 +14,7 @@ public Out16() : base(X86.Out16, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out32.cs index 8bae966778..c5a090f9da 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out32.cs @@ -14,7 +14,7 @@ public Out32() : base(X86.Out32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out8.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out8.cs index 38de1ea518..c529010979 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Out8.cs @@ -14,7 +14,7 @@ public Out8() : base(X86.Out8, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Rcr32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Rcr32.cs index 40c4d085ae..05d4bfd522 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Rcr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Rcr32.cs @@ -14,7 +14,7 @@ public Rcr32() : base(X86.Rcr32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/RdMSR.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/RdMSR.cs index 49feef1a8e..297ab2b20c 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/RdMSR.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/RdMSR.cs @@ -14,7 +14,7 @@ public RdMSR() : base(X86.RdMSR, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Result.IsCPURegister && context.Result2.IsCPURegister @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Sar32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Sar32.cs index 3908aa10b5..86ac666c39 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Sar32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Sar32.cs @@ -14,7 +14,7 @@ public Sar32() : base(X86.Sar32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shl32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shl32.cs index b0fcfdb09b..7464e954eb 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shl32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shl32.cs @@ -14,7 +14,7 @@ public Shl32() : base(X86.Shl32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shld32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shld32.cs index 3311927ab8..5b98c048ee 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shld32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shld32.cs @@ -14,7 +14,7 @@ public Shld32() : base(X86.Shld32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand3.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shr32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shr32.cs index fd64edd8f0..896bd09bcc 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shr32.cs @@ -14,7 +14,7 @@ public Shr32() : base(X86.Shr32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand2.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shrd32.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shrd32.cs index b33cdd9501..d90d3a572d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shrd32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/Shrd32.cs @@ -14,7 +14,7 @@ public Shrd32() : base(X86.Shrd32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand3.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/WrMSR.cs b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/WrMSR.cs index 6ac226aedd..1b9577d424 100644 --- a/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/WrMSR.cs +++ b/Source/Mosa.Compiler.x86/Transforms/FixedRegisters/WrMSR.cs @@ -14,7 +14,7 @@ public WrMSR() : base(X86.WrMSR, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.Operand1.IsCPURegister && context.Operand2.IsCPURegister @@ -27,7 +27,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Add32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Add32.cs index d0f049a2b5..8e02a60044 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Add32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Add32.cs @@ -14,7 +14,7 @@ public Add32() : base(IRInstruction.Add32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Add32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Add64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Add64.cs index a750b0f5ec..a39fc0f353 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Add64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Add64.cs @@ -14,7 +14,7 @@ public Add64() : base(IRInstruction.Add64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryIn32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryIn32.cs index 5dd115cefe..4a8a4031d7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryIn32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryIn32.cs @@ -14,7 +14,7 @@ public AddCarryIn32() : base(IRInstruction.AddCarryIn32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut32.cs index 7cd3be9d30..5debc7cffe 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut32.cs @@ -14,7 +14,7 @@ public AddCarryOut32() : base(IRInstruction.AddCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut64.cs index 1ee14ab897..f896310497 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddCarryOut64.cs @@ -14,7 +14,7 @@ public AddCarryOut64() : base(IRInstruction.AddCarryOut64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddManagedPointer.cs index d79dac8443..d07d1edb70 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddManagedPointer.cs @@ -14,7 +14,7 @@ public AddManagedPointer() : base(IRInstruction.AddManagedPointer, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Add32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut32.cs index 35bee726f0..b53790e9c9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut32.cs @@ -14,7 +14,7 @@ public AddOverflowOut32() : base(IRInstruction.AddOverflowOut32, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut64.cs index 08f45978cc..f454e04515 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddOverflowOut64.cs @@ -14,7 +14,7 @@ public AddOverflowOut64() : base(IRInstruction.AddOverflowOut64, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddR4.cs index 4ad121be79..f9d0adf32b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddR4.cs @@ -14,7 +14,7 @@ public AddR4() : base(IRInstruction.AddR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddR8.cs index 1f4b316b0a..d2caa7138f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddR8.cs @@ -14,7 +14,7 @@ public AddR8() : base(IRInstruction.AddR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/AddressOf.cs b/Source/Mosa.Compiler.x86/Transforms/IR/AddressOf.cs index a1ef16c815..c8ee8bb8ca 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/AddressOf.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/AddressOf.cs @@ -15,7 +15,7 @@ public AddressOf() : base(IRInstruction.AddressOf, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsOnStack || context.Operand1.IsStaticField); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/And32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/And32.cs index fb84fc68b6..2bc5be0c69 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/And32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/And32.cs @@ -14,7 +14,7 @@ public And32() : base(IRInstruction.And32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.And32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/And64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/And64.cs index d077a3c81f..486f85b0da 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/And64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/And64.cs @@ -14,7 +14,7 @@ public And64() : base(IRInstruction.And64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight32.cs index 7a01a58632..c3a586a785 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight32.cs @@ -14,7 +14,7 @@ public ArithShiftRight32() : base(IRInstruction.ArithShiftRight32, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Sar32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64.cs index 954eabf0f7..1ac9cbb064 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64.cs @@ -14,7 +14,7 @@ public ArithShiftRight64() : base(IRInstruction.ArithShiftRight64, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less32.cs index 2f77fb77a4..87895ab19e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less32.cs @@ -16,12 +16,12 @@ public ArithShiftRight64Less32() : base(IRInstruction.ArithShiftRight64, Transfo public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 <= 31; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less64.cs index 1d53d01a50..d86e15ca2c 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ArithShiftRight64Less64.cs @@ -16,12 +16,12 @@ public ArithShiftRight64Less64() : base(IRInstruction.ArithShiftRight64, Transfo public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand2.IsResolvedConstant && context.Operand2.ConstantUnsigned32 >= 32 && context.Operand2.ConstantUnsigned32 <= 63; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BaseIRTransform.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BaseIRTransform.cs index 44bbb1af4e..92b4509eaf 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BaseIRTransform.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BaseIRTransform.cs @@ -12,7 +12,7 @@ public BaseIRTransform(BaseInstruction instruction, TransformType type, bool log #region Overrides - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy32ToR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy32ToR4.cs index b00604ddc1..2286a5ca73 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy32ToR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy32ToR4.cs @@ -14,7 +14,7 @@ public BitCopy32ToR4() : base(IRInstruction.BitCopy32ToR4, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Movdi32ss); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy64ToR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy64ToR8.cs index ef0c91b609..3df8eac464 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy64ToR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopy64ToR8.cs @@ -14,7 +14,7 @@ public BitCopy64ToR8() : base(IRInstruction.BitCopy64ToR8, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR4To32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR4To32.cs index 91553f1303..ab855f7546 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR4To32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR4To32.cs @@ -14,7 +14,7 @@ public BitCopyR4To32() : base(IRInstruction.BitCopyR4To32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR8To64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR8To64.cs index 8ce4ef705c..1a8f5952ab 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR8To64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BitCopyR8To64.cs @@ -14,7 +14,7 @@ public BitCopyR8To64() : base(IRInstruction.BitCopyR8To64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Branch32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Branch32.cs index 362b3e2172..5b0fbcddc7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Branch32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Branch32.cs @@ -14,9 +14,9 @@ public Branch32() : base(IRInstruction.Branch32, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Branch64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Branch64.cs index 27ba7181c1..db62903dce 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Branch64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Branch64.cs @@ -14,7 +14,7 @@ public Branch64() : base(IRInstruction.Branch64, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand1, out var op1L, out var op1H); transform.SplitOperand(context.Operand2, out var op2L, out var op2H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BranchManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BranchManagedPointer.cs index 554fb45cb6..34bc06300f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BranchManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BranchManagedPointer.cs @@ -14,9 +14,9 @@ public BranchManagedPointer() : base(IRInstruction.BranchManagedPointer, Transfo { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/BranchObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/BranchObject.cs index 5cf1857331..43436ef3bb 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/BranchObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/BranchObject.cs @@ -14,9 +14,9 @@ public BranchObject() : base(IRInstruction.BranchObject, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { - TransformContext.MoveConstantRight(context); + Framework.Transform.MoveConstantRight(context); var target = context.BranchTargets[0]; var condition = context.ConditionCode; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Call.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Call.cs index 9b469f597c..3ed80850d0 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Call.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Call.cs @@ -14,7 +14,7 @@ public Call() : base(IRInstruction.Call, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (context.Result?.IsInt64 == true) { diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/CallDirect.cs b/Source/Mosa.Compiler.x86/Transforms/IR/CallDirect.cs index a886e1b545..34789980f4 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/CallDirect.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/CallDirect.cs @@ -14,7 +14,7 @@ public CallDirect() : base(IRInstruction.CallDirect, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Call); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x32.cs index f1cd499398..8021ba992d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x32.cs @@ -14,7 +14,7 @@ public Compare32x32() : base(IRInstruction.Compare32x32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x64.cs index 8ba9152f17..c2ecf44c9d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Compare32x64.cs @@ -14,7 +14,7 @@ public Compare32x64() : base(IRInstruction.Compare32x64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { // FIXME! //Compare32x64(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x32.cs index be755d1a92..c73b7f2862 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x32.cs @@ -15,7 +15,7 @@ public Compare64x32() : base(IRInstruction.Compare64x32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { //Compare64x64(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x64.cs index 10202454ac..32a6fa83b7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Compare64x64.cs @@ -15,7 +15,7 @@ public Compare64x64() : base(IRInstruction.Compare64x64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1 != null && context.Operand2 != null); Debug.Assert(context.Result.IsVirtualRegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/CompareManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/CompareManagedPointer.cs index 2bb7b883b1..b8f37c8373 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/CompareManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/CompareManagedPointer.cs @@ -14,7 +14,7 @@ public CompareManagedPointer() : base(IRInstruction.CompareManagedPointer, Trans { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/CompareObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/CompareObject.cs index 29afa2e4bc..96e6b13481 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/CompareObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/CompareObject.cs @@ -14,7 +14,7 @@ public CompareObject() : base(IRInstruction.CompareObject, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var condition = context.ConditionCode; var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/CompareR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/CompareR4.cs index 48cbb8933b..deba87597f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/CompareR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/CompareR4.cs @@ -15,7 +15,7 @@ public CompareR4() : base(IRInstruction.CompareR4, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.ConditionCode != ConditionCode.Undefined); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/CompareR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/CompareR8.cs index 17a71cf864..fd0761c1c6 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/CompareR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/CompareR8.cs @@ -15,7 +15,7 @@ public CompareR8() : base(IRInstruction.CompareR8, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.ConditionCode != ConditionCode.Undefined); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR4.cs index ba663fea28..d1d91dec16 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR4.cs @@ -15,7 +15,7 @@ public ConvertI32ToR4() : base(IRInstruction.ConvertI32ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR8.cs index 0911856d4a..1fce2c0753 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI32ToR8.cs @@ -15,7 +15,7 @@ public ConvertI32ToR8() : base(IRInstruction.ConvertI32ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR4.cs index 896499cb76..aaca286c8e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR4.cs @@ -14,7 +14,7 @@ public ConvertI64ToR4() : base(IRInstruction.ConvertI64ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var op1Low, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR8.cs index 8e0afa7614..f7548e0953 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertI64ToR8.cs @@ -14,7 +14,7 @@ public ConvertI64ToR8() : base(IRInstruction.ConvertI64ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand1, out var op1Low, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToI32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToI32.cs index 2f322aa198..86fa9d1dab 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToI32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToI32.cs @@ -14,7 +14,7 @@ public ConvertR4ToI32() : base(IRInstruction.ConvertR4ToI32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToR8.cs index d5af994b22..3028494340 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToR8.cs @@ -14,7 +14,7 @@ public ConvertR4ToR8() : base(IRInstruction.ConvertR4ToR8, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToU32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToU32.cs index bacf88b77a..3a55547236 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToU32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR4ToU32.cs @@ -14,7 +14,7 @@ public ConvertR4ToU32() : base(IRInstruction.ConvertR4ToU32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToI32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToI32.cs index 3874c52c3d..8ffdac93fb 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToI32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToI32.cs @@ -14,7 +14,7 @@ public ConvertR8ToI32() : base(IRInstruction.ConvertR8ToI32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToR4.cs index 93968da0c0..451459ff67 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToR4.cs @@ -14,7 +14,7 @@ public ConvertR8ToR4() : base(IRInstruction.ConvertR8ToR4, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToU32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToU32.cs index 3862a5ee30..9846178746 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToU32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertR8ToU32.cs @@ -14,7 +14,7 @@ public ConvertR8ToU32() : base(IRInstruction.ConvertR8ToU32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR4.cs index c075f99651..c997c78977 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR4.cs @@ -14,7 +14,7 @@ public ConvertU32ToR4() : base(IRInstruction.ConvertU32ToR4, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR8.cs index 6f310f84cd..4b2d8de221 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ConvertU32ToR8.cs @@ -14,7 +14,7 @@ public ConvertU32ToR8() : base(IRInstruction.ConvertU32ToR8, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/DivR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/DivR4.cs index 9096512442..b62f13bcd5 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/DivR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/DivR4.cs @@ -14,7 +14,7 @@ public DivR4() : base(IRInstruction.DivR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/DivR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/DivR8.cs index 784cd850d6..8c5bb86ea7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/DivR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/DivR8.cs @@ -14,7 +14,7 @@ public DivR8() : base(IRInstruction.DivR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/DivSigned32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/DivSigned32.cs index 0bf4669006..305c77d460 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/DivSigned32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/DivSigned32.cs @@ -14,7 +14,7 @@ public DivSigned32() : base(IRInstruction.DivSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/DivUnsigned32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/DivUnsigned32.cs index 249aae5075..d97fcc6051 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/DivUnsigned32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/DivUnsigned32.cs @@ -14,7 +14,7 @@ public DivUnsigned32() : base(IRInstruction.DivUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/GetHigh32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/GetHigh32.cs index ae39e7d4d4..1118f02a75 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/GetHigh32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/GetHigh32.cs @@ -14,7 +14,7 @@ public GetHigh32() : base(IRInstruction.GetHigh32, TransformType.Manual | Transf { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand1, out var _, out var op0H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/GetLow32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/GetLow32.cs index b23834c07d..64004c794a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/GetLow32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/GetLow32.cs @@ -14,7 +14,7 @@ public GetLow32() : base(IRInstruction.GetLow32, TransformType.Manual | Transfor { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var op0 = transform.SplitOperand(context.Operand1); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse32.cs index 19555dd5a5..a5db5fe9f9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse32.cs @@ -14,7 +14,7 @@ public IfThenElse32() : base(IRInstruction.IfThenElse32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse64.cs index c648079c98..bb3ee9e0f9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/IfThenElse64.cs @@ -14,7 +14,7 @@ public IfThenElse64() : base(IRInstruction.IfThenElse64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Jmp.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Jmp.cs index 957ba14044..41901578d3 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Jmp.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Jmp.cs @@ -14,7 +14,7 @@ public Jmp() : base(IRInstruction.Jmp, TransformType.Manual | TransformType.Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Jmp); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Load32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Load32.cs index 5fdb444838..cd5212dc0c 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Load32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Load32.cs @@ -15,7 +15,7 @@ public Load32() : base(IRInstruction.Load32, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Load64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Load64.cs index 81b05d0528..3403577aab 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Load64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Load64.cs @@ -14,7 +14,7 @@ public Load64() : base(IRInstruction.Load64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadManagedPointer.cs index 620a940798..88ec9b7ffa 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadManagedPointer.cs @@ -15,7 +15,7 @@ public LoadManagedPointer() : base(IRInstruction.LoadManagedPointer, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadObject.cs index 8574117d3f..c679932853 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadObject.cs @@ -15,7 +15,7 @@ public LoadObject() : base(IRInstruction.LoadObject, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(!context.Result.IsR4); Debug.Assert(!context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam32.cs index 4e4350eaf2..f9008ac3ad 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam32.cs @@ -14,7 +14,7 @@ public LoadParam32() : base(IRInstruction.LoadParam32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam64.cs index ac8304053b..058cbd8714 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParam64.cs @@ -14,7 +14,7 @@ public LoadParam64() : base(IRInstruction.LoadParam64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out var highOffset); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamManagedPointer.cs index 4de40dac9a..d1d7e4d35a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamManagedPointer.cs @@ -14,7 +14,7 @@ public LoadParamManagedPointer() : base(IRInstruction.LoadParamManagedPointer, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamObject.cs index 2cc11f2321..fd507bff0d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamObject.cs @@ -14,7 +14,7 @@ public LoadParamObject() : base(IRInstruction.LoadParamObject, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovLoad32, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR4.cs index 1d3a919e43..9b382b22da 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR4.cs @@ -15,7 +15,7 @@ public LoadParamR4() : base(IRInstruction.LoadParamR4, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR8.cs index 9f373a4a18..4591de1598 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamR8.cs @@ -15,7 +15,7 @@ public LoadParamR8() : base(IRInstruction.LoadParamR8, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x32.cs index fb1f90051e..bd8b79c446 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x32.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x32() : base(IRInstruction.LoadParamSignExtend16x32, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovsxLoad16, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x64.cs index 7f3b51893e..e586209f62 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend16x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend16x64() : base(IRInstruction.LoadParamSignExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend32x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend32x64.cs index 54d0603acb..cb7044e144 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend32x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend32x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend32x64() : base(IRInstruction.LoadParamSignExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x32.cs index 20530cdd46..6c0352117b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x32.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x32() : base(IRInstruction.LoadParamSignExtend8x32, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovsxLoad8, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x64.cs index 0d9320c2c0..d1dc2d196d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamSignExtend8x64.cs @@ -14,7 +14,7 @@ public LoadParamSignExtend8x64() : base(IRInstruction.LoadParamSignExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x32.cs index 61b77a6398..a51735f958 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x32.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x32() : base(IRInstruction.LoadParamZeroExtend16x32, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovzxLoad16, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x64.cs index fc5c33e362..504ce2dd09 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend16x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend16x64() : base(IRInstruction.LoadParamZeroExtend16x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend32x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend32x64.cs index 2e0c6ce468..3e02942d85 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend32x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend32x64() : base(IRInstruction.LoadParamZeroExtend32x64, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x32.cs index 9cfc814770..a9d1f32e87 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x32.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x32() : base(IRInstruction.LoadParamZeroExtend8x32, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovzxLoad8, context.Result, transform.StackFrame, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x64.cs index 09df81423e..c50a5f0241 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadParamZeroExtend8x64.cs @@ -14,7 +14,7 @@ public LoadParamZeroExtend8x64() : base(IRInstruction.LoadParamZeroExtend8x64, T { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var lowOffset, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadR4.cs index 48e7e2f10b..62827b57e3 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadR4.cs @@ -15,7 +15,7 @@ public LoadR4() : base(IRInstruction.LoadR4, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadR8.cs index a48c1f75a0..1ef5eb49a0 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadR8.cs @@ -15,7 +15,7 @@ public LoadR8() : base(IRInstruction.LoadR8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend16x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend16x32.cs index 54ad7f39fd..bc2a6cbeb7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend16x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend16x32.cs @@ -14,7 +14,7 @@ public LoadSignExtend16x32() : base(IRInstruction.LoadSignExtend16x32, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend8x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend8x32.cs index 053df9900c..d517f26cd9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend8x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadSignExtend8x32.cs @@ -14,7 +14,7 @@ public LoadSignExtend8x32() : base(IRInstruction.LoadSignExtend8x32, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend16x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend16x32.cs index d54b6907b3..5599e18c89 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend16x32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend16x32() : base(IRInstruction.LoadZeroExtend16x32, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend8x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend8x32.cs index f27156267e..646655176d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/LoadZeroExtend8x32.cs @@ -14,7 +14,7 @@ public LoadZeroExtend8x32() : base(IRInstruction.LoadZeroExtend8x32, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Move32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Move32.cs index 2a996960b0..7c356035b9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Move32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Move32.cs @@ -14,7 +14,7 @@ public Move32() : base(IRInstruction.Move32, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Move64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Move64.cs index 69996c67c6..2c41c88b35 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Move64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Move64.cs @@ -14,7 +14,7 @@ public Move64() : base(IRInstruction.Move64, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MoveManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MoveManagedPointer.cs index 11277eb86e..4ebc5bc469 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MoveManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MoveManagedPointer.cs @@ -14,7 +14,7 @@ public MoveManagedPointer() : base(IRInstruction.MoveManagedPointer, TransformTy { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MoveObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MoveObject.cs index 2d02c4840f..b5354d8a52 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MoveObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MoveObject.cs @@ -14,7 +14,7 @@ public MoveObject() : base(IRInstruction.MoveObject, TransformType.Manual | Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MoveR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MoveR4.cs index 0c9068e3ae..8cb6378ae9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MoveR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MoveR4.cs @@ -14,7 +14,7 @@ public MoveR4() : base(IRInstruction.MoveR4, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MoveR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MoveR8.cs index 560da13ae6..dd577e6c6d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MoveR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MoveR8.cs @@ -14,7 +14,7 @@ public MoveR8() : base(IRInstruction.MoveR8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulCarryOut32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulCarryOut32.cs index 1b43766ebe..027a2fb102 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulCarryOut32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulCarryOut32.cs @@ -14,7 +14,7 @@ public MulCarryOut32() : base(IRInstruction.MulCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulHs32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulHs32.cs index c2438ad54d..1022b39077 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulHs32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulHs32.cs @@ -14,7 +14,7 @@ public MulHs32() : base(IRInstruction.MulHs32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulHu32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulHu32.cs index d0b9331c5e..8abd57d6e4 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulHu32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulHu32.cs @@ -14,7 +14,7 @@ public MulHu32() : base(IRInstruction.MulHu32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulOverflowOut32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulOverflowOut32.cs index d871745e5c..5050b4b641 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulOverflowOut32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulOverflowOut32.cs @@ -14,7 +14,7 @@ public MulOverflowOut32() : base(IRInstruction.MulOverflowOut32, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulR4.cs index 6692c38693..e82275700d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulR4.cs @@ -14,7 +14,7 @@ public MulR4() : base(IRInstruction.MulR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulR8.cs index 19dbfce700..ce012fe173 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulR8.cs @@ -14,7 +14,7 @@ public MulR8() : base(IRInstruction.MulR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned32.cs index 1fe14f8af8..800f3eccd2 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned32.cs @@ -14,7 +14,7 @@ public MulSigned32() : base(IRInstruction.MulSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var v1 = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned64.cs index 712e8ea99d..e7bdf1a31b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulSigned64.cs @@ -14,7 +14,7 @@ public MulSigned64() : base(IRInstruction.MulSigned64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned32.cs index a28023d36c..29fb6ecca2 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned32.cs @@ -14,7 +14,7 @@ public MulUnsigned32() : base(IRInstruction.MulUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var v1 = transform.VirtualRegisters.Allocate32(); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned64.cs index b412d9ba71..b338a0d6f8 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/MulUnsigned64.cs @@ -14,7 +14,7 @@ public MulUnsigned64() : base(IRInstruction.MulUnsigned64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Nop.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Nop.cs index e0b7b876c3..8bd07bacd9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Nop.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Nop.cs @@ -14,7 +14,7 @@ public Nop() : base(IRInstruction.Nop, TransformType.Manual | TransformType.Tran { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Not32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Not32.cs index 7ecc509f28..deeb5f6c80 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Not32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Not32.cs @@ -14,7 +14,7 @@ public Not32() : base(IRInstruction.Not32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.Not32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Not64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Not64.cs index e8c4ce1c1e..a68588d1fc 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Not64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Not64.cs @@ -14,7 +14,7 @@ public Not64() : base(IRInstruction.Not64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Or32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Or32.cs index 62d4003efe..26c36f8a13 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Or32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Or32.cs @@ -14,7 +14,7 @@ public Or32() : base(IRInstruction.Or32, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Or32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Or64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Or64.cs index ca8ef5ea6a..c7b39e7a22 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Or64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Or64.cs @@ -14,7 +14,7 @@ public Or64() : base(IRInstruction.Or64, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/RemSigned32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/RemSigned32.cs index b001b7fb79..4d4b61e74d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/RemSigned32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/RemSigned32.cs @@ -14,7 +14,7 @@ public RemSigned32() : base(IRInstruction.RemSigned32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/RemUnsigned32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/RemUnsigned32.cs index 77530efcb3..0bd0c7fd0f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/RemUnsigned32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/RemUnsigned32.cs @@ -14,7 +14,7 @@ public RemUnsigned32() : base(IRInstruction.RemUnsigned32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft32.cs index 78ff91a62e..fe00d962fd 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft32.cs @@ -14,7 +14,7 @@ public ShiftLeft32() : base(IRInstruction.ShiftLeft32, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Shl32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft64.cs index c5ddb02606..ce71321a00 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftLeft64.cs @@ -14,7 +14,7 @@ public ShiftLeft64() : base(IRInstruction.ShiftLeft64, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight32.cs index efd4061ef9..de1210a623 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight32.cs @@ -14,7 +14,7 @@ public ShiftRight32() : base(IRInstruction.ShiftRight32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Shr32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight64.cs index 668cf475d1..90bab82241 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ShiftRight64.cs @@ -14,7 +14,7 @@ public ShiftRight64() : base(IRInstruction.ShiftRight64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x32.cs index 420548deae..95680f7dd7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x32.cs @@ -14,7 +14,7 @@ public SignExtend16x32() : base(IRInstruction.SignExtend16x32, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Movsx16To32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x64.cs index 017ffe52fc..0c1ba1ba2b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend16x64.cs @@ -14,7 +14,7 @@ public SignExtend16x64() : base(IRInstruction.SignExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend32x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend32x64.cs index 27381b0b5e..868a57ab2d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend32x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend32x64.cs @@ -14,7 +14,7 @@ public SignExtend32x64() : base(IRInstruction.SignExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x32.cs index 0dcda1f846..b6d91e9f11 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x32.cs @@ -14,7 +14,7 @@ public SignExtend8x32() : base(IRInstruction.SignExtend8x32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Movsx8To32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x64.cs index 7d154e4788..4a369c31de 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SignExtend8x64.cs @@ -14,7 +14,7 @@ public SignExtend8x64() : base(IRInstruction.SignExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Store16.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Store16.cs index 974581caaf..bb30bf2479 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Store16.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Store16.cs @@ -14,7 +14,7 @@ public Store16() : base(IRInstruction.Store16, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Store32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Store32.cs index ce57bdebd4..005c16e54d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Store32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Store32.cs @@ -14,7 +14,7 @@ public Store32() : base(IRInstruction.Store32, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Store64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Store64.cs index 506674b372..bbb3b59ad4 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Store64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Store64.cs @@ -14,7 +14,7 @@ public Store64() : base(IRInstruction.Store64, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand2, out var op2L, out _); transform.SplitOperand(context.Operand3, out var op3L, out var op3H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Store8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Store8.cs index d1be8c24a0..73e0c1b096 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Store8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Store8.cs @@ -14,7 +14,7 @@ public Store8() : base(IRInstruction.Store8, TransformType.Manual | TransformTyp { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreManagedPointer.cs index e7aee5069c..d5b6650555 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreManagedPointer.cs @@ -14,7 +14,7 @@ public StoreManagedPointer() : base(IRInstruction.StoreManagedPointer, Transform { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreObject.cs index d9f088e584..1e3fd869be 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreObject.cs @@ -14,7 +14,7 @@ public StoreObject() : base(IRInstruction.StoreObject, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.OrderLoadStoreOperands(context); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam16.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam16.cs index 031f81c15f..eec6cf5134 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam16.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam16.cs @@ -14,7 +14,7 @@ public StoreParam16() : base(IRInstruction.StoreParam16, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovStore16, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam32.cs index ccd3263d97..d2a6c5c645 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam32.cs @@ -14,7 +14,7 @@ public StoreParam32() : base(IRInstruction.StoreParam32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovStore32, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam64.cs index 66bf1abea5..d91ff438bb 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam64.cs @@ -14,7 +14,7 @@ public StoreParam64() : base(IRInstruction.StoreParam64, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Operand1, out var op0L, out var op0H); transform.SplitOperand(context.Operand2, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam8.cs index c24329640d..239dc294d1 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParam8.cs @@ -14,7 +14,7 @@ public StoreParam8() : base(IRInstruction.StoreParam8, TransformType.Manual | Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovStore8, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamManagedPointer.cs index 1576dcd4e1..dced3ec068 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamManagedPointer.cs @@ -14,7 +14,7 @@ public StoreParamManagedPointer() : base(IRInstruction.StoreParamManagedPointer, { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovStore32, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamObject.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamObject.cs index 66cd12be58..205b19dc8a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamObject.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamObject.cs @@ -14,7 +14,7 @@ public StoreParamObject() : base(IRInstruction.StoreParamObject, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.MovStore32, null, transform.StackFrame, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR4.cs index 5bd3c3ce78..b86d32ea93 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR4.cs @@ -14,7 +14,7 @@ public StoreParamR4() : base(IRInstruction.StoreParamR4, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR8.cs index 733534cbad..e7992a6c29 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreParamR8.cs @@ -14,7 +14,7 @@ public StoreParamR8() : base(IRInstruction.StoreParamR8, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreR4.cs index 2d70d6e270..f144a9aa33 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreR4.cs @@ -14,7 +14,7 @@ public StoreR4() : base(IRInstruction.StoreR4, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/StoreR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/StoreR8.cs index 2c894a1579..2ddd862018 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/StoreR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/StoreR8.cs @@ -14,7 +14,7 @@ public StoreR8() : base(IRInstruction.StoreR8, TransformType.Manual | TransformT { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var operand1 = context.Operand1; var operand2 = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Sub32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Sub32.cs index 163c734927..d49a72f087 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Sub32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Sub32.cs @@ -14,7 +14,7 @@ public Sub32() : base(IRInstruction.Sub32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Sub32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Sub64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Sub64.cs index c05f36bf68..cd812a8220 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Sub64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Sub64.cs @@ -14,7 +14,7 @@ public Sub64() : base(IRInstruction.Sub64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryIn32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryIn32.cs index 77498ac79f..ce5a3c38dd 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryIn32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryIn32.cs @@ -14,7 +14,7 @@ public SubCarryIn32() : base(IRInstruction.SubCarryIn32, TransformType.Manual | { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut32.cs index dcdb3180b3..9e7c492535 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut32.cs @@ -14,7 +14,7 @@ public SubCarryOut32() : base(IRInstruction.SubCarryOut32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut64.cs index 23f4feae0f..6a229da526 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubCarryOut64.cs @@ -14,7 +14,7 @@ public SubCarryOut64() : base(IRInstruction.SubCarryOut64, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubManagedPointer.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubManagedPointer.cs index e9593cacb8..2b0408f646 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubManagedPointer.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubManagedPointer.cs @@ -14,7 +14,7 @@ public SubManagedPointer() : base(IRInstruction.SubManagedPointer, TransformType { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Sub32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut32.cs index c318767dd0..4f8cf3c2ec 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut32.cs @@ -14,7 +14,7 @@ public SubOverflowOut32() : base(IRInstruction.SubOverflowOut32, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut64.cs index 8ff4bc765b..2855340bed 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubOverflowOut64.cs @@ -14,7 +14,7 @@ public SubOverflowOut64() : base(IRInstruction.SubOverflowOut64, TransformType.M { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubR4.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubR4.cs index 7e0e4757f7..a684f01f56 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubR4.cs @@ -14,7 +14,7 @@ public SubR4() : base(IRInstruction.SubR4, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/SubR8.cs b/Source/Mosa.Compiler.x86/Transforms/IR/SubR8.cs index b49d8681d4..b72c7f6fd7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/SubR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/SubR8.cs @@ -14,7 +14,7 @@ public SubR8() : base(IRInstruction.SubR8, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/To64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/To64.cs index b4937b4c61..4c2a4e8200 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/To64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/To64.cs @@ -14,7 +14,7 @@ public To64() : base(IRInstruction.To64, TransformType.Manual | TransformType.Tr { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Truncate64x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Truncate64x32.cs index ebdb81e4e6..f27e8b3faf 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Truncate64x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Truncate64x32.cs @@ -15,7 +15,7 @@ public Truncate64x32() : base(IRInstruction.Truncate64x32, TransformType.Manual { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Operand1.IsInt64); Debug.Assert(!context.Result.IsInt64); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Xor32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Xor32.cs index 229b468c1b..33660fe1dd 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Xor32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Xor32.cs @@ -14,7 +14,7 @@ public Xor32() : base(IRInstruction.Xor32, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Xor32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/Xor64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/Xor64.cs index 0e6f90f2ae..8eccbccf22 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/Xor64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/Xor64.cs @@ -14,7 +14,7 @@ public Xor64() : base(IRInstruction.Xor64, TransformType.Manual | TransformType. { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out var op1H); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x32.cs index 764ee3df8d..14696adc5d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x32.cs @@ -14,7 +14,7 @@ public ZeroExtend16x32() : base(IRInstruction.ZeroExtend16x32, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Movzx16To32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x64.cs index e4d986c1c3..fb65833530 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend16x64.cs @@ -14,7 +14,7 @@ public ZeroExtend16x64() : base(IRInstruction.ZeroExtend16x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend32x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend32x64.cs index ba0710948a..30a9157f04 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend32x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend32x64.cs @@ -14,7 +14,7 @@ public ZeroExtend32x64() : base(IRInstruction.ZeroExtend32x64, TransformType.Man { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x32.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x32.cs index 63864c0280..c3efe0055e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x32.cs @@ -14,7 +14,7 @@ public ZeroExtend8x32() : base(IRInstruction.ZeroExtend8x32, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.ReplaceInstruction(X86.Movzx8To32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x64.cs b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x64.cs index 71341db9b1..474bbbd5ac 100644 --- a/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/IR/ZeroExtend8x64.cs @@ -14,7 +14,7 @@ public ZeroExtend8x64() : base(IRInstruction.ZeroExtend8x64, TransformType.Manua { } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.SplitOperand(context.Result, out var resultLow, out var resultHigh); transform.SplitOperand(context.Operand1, out var op1L, out _); diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByOne.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByOne.cs index b0d30da936..df4abcda77 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByOne.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByOne.cs @@ -16,7 +16,7 @@ public IMul32Mov32ByOne() : base(X86.IMul32, TransformType.Auto | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByZero.cs index 0f7edb555d..56acc29407 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Consolidation/IMul32Mov32ByZero.cs @@ -16,7 +16,7 @@ public IMul32Mov32ByZero() : base(X86.IMul32, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Add32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Add32.cs index b72da4c9d3..7777000385 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Add32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Add32.cs @@ -16,7 +16,7 @@ public Add32() : base(X86.Add32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/And32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/And32.cs index 57e9339902..d72f9811f2 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/And32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/And32.cs @@ -16,7 +16,7 @@ public And32() : base(X86.And32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Or32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Or32.cs index 9d95f5579a..e1d5fe71a1 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Or32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Or32.cs @@ -16,7 +16,7 @@ public Or32() : base(X86.Or32, TransformType.Auto | TransformType.Optimization) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sar32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sar32.cs index bb8ab183cd..c155c73258 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sar32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sar32.cs @@ -16,7 +16,7 @@ public Sar32() : base(X86.Sar32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shl32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shl32.cs index 7ac2a153dc..a25e603d61 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shl32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shl32.cs @@ -16,7 +16,7 @@ public Shl32() : base(X86.Shl32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shr32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shr32.cs index f08fb1d5fc..8dab8a54fa 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Shr32.cs @@ -16,7 +16,7 @@ public Shr32() : base(X86.Shr32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sub32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sub32.cs index eff9b91c68..da37e932b6 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sub32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Sub32.cs @@ -16,7 +16,7 @@ public Sub32() : base(X86.Sub32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs index c6e5ed9f5e..123f285b6f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/ConstantMove/Xor32.cs @@ -16,7 +16,7 @@ public Xor32() : base(X86.Xor32, TransformType.Auto | TransformType.Optimization { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Adc32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Adc32.cs index 4d36067804..e293584d2b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Adc32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Adc32.cs @@ -18,7 +18,7 @@ public Adc32() : base(X86.Adc32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Add32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Add32.cs index f594288f31..4d3d2ff103 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Add32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Add32.cs @@ -18,7 +18,7 @@ public Add32() : base(X86.Add32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addsd.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addsd.cs index b4a432b936..63452f4994 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addsd.cs @@ -18,7 +18,7 @@ public Addsd() : base(X86.Addsd, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addss.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addss.cs index cecb4b9fd7..52a05406aa 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Addss.cs @@ -18,7 +18,7 @@ public Addss() : base(X86.Addss, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/And32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/And32.cs index 5b86fe186e..c665fd94dc 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/And32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/And32.cs @@ -18,7 +18,7 @@ public And32() : base(X86.And32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/IMul32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/IMul32.cs index 3881accf82..ebab935aa6 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/IMul32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/IMul32.cs @@ -18,7 +18,7 @@ public IMul32() : base(X86.IMul32, TransformType.Auto | TransformType.Optimizati public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulsd.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulsd.cs index dc30274001..844504e50d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulsd.cs @@ -18,7 +18,7 @@ public Mulsd() : base(X86.Mulsd, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulss.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulss.cs index d3f33b2bda..07cc72fa73 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Mulss.cs @@ -18,7 +18,7 @@ public Mulss() : base(X86.Mulss, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Or32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Or32.cs index e87ccf0adc..ce1a52c6ed 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Or32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Or32.cs @@ -18,7 +18,7 @@ public Or32() : base(X86.Or32, TransformType.Auto | TransformType.Optimization) public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Xor32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Xor32.cs index 10622cc5ef..bf924ba88d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Xor32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Ordering/Xor32.cs @@ -18,7 +18,7 @@ public Xor32() : base(X86.Xor32, TransformType.Auto | TransformType.Optimization public override int Priority => 10; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!IsVirtualRegister(context.Operand1)) return false; @@ -35,7 +35,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs index fe48b49b78..af23c885fc 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Simplication/SubFromZero.cs @@ -16,7 +16,7 @@ public SubFromZero() : base(X86.Sub32, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs index 1c975efbf2..ac8500cadd 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Specific/And32Add32ToBlsr32.cs @@ -16,7 +16,7 @@ public And32Add32ToBlsr32() : base(X86.And32, TransformType.Auto | TransformType { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -45,7 +45,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -65,7 +65,7 @@ public And32Add32ToBlsr32_v1() : base(X86.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -94,7 +94,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -114,7 +114,7 @@ public And32Add32ToBlsr32_v2() : base(X86.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsVirtualRegister) return false; @@ -143,7 +143,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -163,7 +163,7 @@ public And32Add32ToBlsr32_v3() : base(X86.And32, TransformType.Auto | TransformT { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -192,7 +192,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs index 6397cb2125..4610064e71 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/Standard/Mov32Coalescing.cs @@ -16,7 +16,7 @@ public Mov32Coalescing() : base(X86.Mov32, TransformType.Auto | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs index 7de5497b0f..d9996f81d1 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32By1Not32.cs @@ -16,7 +16,7 @@ public Add32By1Not32() : base(X86.Add32, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -42,7 +42,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -62,7 +62,7 @@ public Add32By1Not32_v1() : base(X86.Add32, TransformType.Auto | TransformType.O { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -88,7 +88,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs index 32d2ebb53a..05531f2961 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Add32ByZero.cs @@ -16,7 +16,7 @@ public Add32ByZero() : base(X86.Add32, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByMax.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByMax.cs index b49bf2941b..5dd936d371 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByMax.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByMax.cs @@ -16,7 +16,7 @@ public And32ByMax() : base(X86.And32, TransformType.Auto | TransformType.Optimiz { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -50,7 +50,7 @@ public And32ByMax_v1() : base(X86.And32, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -64,7 +64,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByZero.cs index f91affa848..c96edb6d92 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/And32ByZero.cs @@ -16,7 +16,7 @@ public And32ByZero() : base(X86.And32, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; @@ -50,7 +50,7 @@ public And32ByZero_v1() : base(X86.And32, TransformType.Auto | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -64,7 +64,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByOne.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByOne.cs index ef1ee03672..05912754f0 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByOne.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByOne.cs @@ -16,7 +16,7 @@ public IMul32ByOne() : base(X86.IMul32, TransformType.Auto | TransformType.Optim { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByZero.cs index f3711247fa..de908524df 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/IMul32ByZero.cs @@ -16,7 +16,7 @@ public IMul32ByZero() : base(X86.IMul32, TransformType.Auto | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs index 8b70132dbf..d1054bda6c 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Inc32Not32.cs @@ -16,7 +16,7 @@ public Inc32Not32() : base(X86.Inc32, TransformType.Auto | TransformType.Optimiz { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ByZero.cs index 34eb75ee7d..baf334a689 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ByZero.cs @@ -18,7 +18,7 @@ public Sar32ByZero() : base(X86.Sar32, TransformType.Auto | TransformType.Optimi public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -32,7 +32,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ZeroValue.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ZeroValue.cs index c3c03f146d..a722a003d9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ZeroValue.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sar32ZeroValue.cs @@ -18,7 +18,7 @@ public Sar32ZeroValue() : base(X86.Sar32, TransformType.Auto | TransformType.Opt public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -32,7 +32,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ByZero.cs index 296b1d738c..c44b19fc25 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ByZero.cs @@ -18,7 +18,7 @@ public Shl32ByZero() : base(X86.Shl32, TransformType.Auto | TransformType.Optimi public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -32,7 +32,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ZeroValue.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ZeroValue.cs index 1bb9773457..2506f3dfed 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ZeroValue.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shl32ZeroValue.cs @@ -18,7 +18,7 @@ public Shl32ZeroValue() : base(X86.Shl32, TransformType.Auto | TransformType.Opt public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -32,7 +32,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ByZero.cs index 5da482f161..ac5aad9273 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ByZero.cs @@ -18,7 +18,7 @@ public Shr32ByZero() : base(X86.Shr32, TransformType.Auto | TransformType.Optimi public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -32,7 +32,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ZeroValue.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ZeroValue.cs index f4ea47af48..b61ac14e56 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ZeroValue.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Shr32ZeroValue.cs @@ -18,7 +18,7 @@ public Shr32ZeroValue() : base(X86.Shr32, TransformType.Auto | TransformType.Opt public override int Priority => 80; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsResolvedConstant) return false; @@ -32,7 +32,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs index a2148154d5..f6625a1ad9 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Auto/StrengthReduction/Sub32ByZero.cs @@ -16,7 +16,7 @@ public Sub32ByZero() : base(X86.Sub32, TransformType.Auto | TransformType.Optimi { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -30,7 +30,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Deadcode.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Deadcode.cs index 837a65532e..73288bc583 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Deadcode.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Deadcode.cs @@ -13,7 +13,7 @@ public Deadcode() : base(TransformType.Manual | TransformType.Optimization) public override int Priority => 100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (context.ResultCount != 1) return false; @@ -61,7 +61,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs index 54dcb51352..0a5654ae0b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Coalescing.cs @@ -11,7 +11,7 @@ public Mov32Coalescing() : base(X86.Mov32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var operand1 = context.Operand1; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs index ac8dfd2fd6..70de086853 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32ConstantReuse.cs @@ -11,7 +11,7 @@ public Mov32ConstantReuse() : base(X86.Mov32, TransformType.Manual | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = context.Node.PreviousNonEmpty; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Unless.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Unless.cs index e9f868563c..a6daf2b973 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Unless.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mov32Unless.cs @@ -11,7 +11,7 @@ public Mov32Unless() : base(X86.Mov32, TransformType.Manual | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mul32Ditto.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mul32Ditto.cs index 5a93835f5f..2dfc9ae888 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mul32Ditto.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/Mul32Ditto.cs @@ -11,7 +11,7 @@ public Mul32Ditto() : base(X86.Mul32, TransformType.Manual | TransformType.Optim { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (transform.AreCPURegistersAllocated) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var previous = context.Node.PreviousNonEmpty; var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/SetccMovzx8To32Bt32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/SetccMovzx8To32Bt32.cs index 4caad9fdb3..9efc6c5776 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/SetccMovzx8To32Bt32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Special/SetccMovzx8To32Bt32.cs @@ -14,7 +14,7 @@ public Bt32Movzx8To32Setcc() : base(X86.Bt32, TransformType.Manual | TransformTy { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -53,7 +53,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var next = context.Node.PreviousNonEmpty; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Stack/Add32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Stack/Add32.cs index b019c17370..90508608c7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Stack/Add32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Stack/Add32.cs @@ -17,7 +17,7 @@ public Add32() : base(X86.Add32, TransformType.Manual | TransformType.Optimizati { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (transform.AreCPURegistersAllocated) return false; @@ -48,7 +48,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var next = context.Node.NextNonEmpty; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs index 974784aec0..0df04dfe5a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToInc32.cs @@ -13,7 +13,7 @@ public Add32ToInc32() : base(X86.Add32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs index 7e094e3f01..be2511cdd6 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Add32ToLea32.cs @@ -16,7 +16,7 @@ public Add32ToLea32() : base(X86.Add32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.Lea32, context.Result, context.Operand1, context.Operand2); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs index df471f4a68..d290061ce5 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToTest32.cs @@ -11,7 +11,7 @@ public Cmp32ToTest32() : base(X86.Cmp32, TransformType.Manual | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.Test32, null, context.Operand1, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs index 9f6adbf158..1e6b49a37b 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Cmp32ToZero.cs @@ -11,7 +11,7 @@ public Cmp32ToZero() : base(X86.Cmp32, TransformType.Manual | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs index 3e2205248a..3b75b77ada 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToDec32.cs @@ -13,7 +13,7 @@ public Lea32ToDec32() : base(X86.Lea32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs index d01c117c95..176d8c2370 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Lea32ToInc32.cs @@ -13,7 +13,7 @@ public Lea32ToInc32() : base(X86.Lea32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs index 0adfe986fc..bf94b99c7f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Mov32ToXor32.cs @@ -11,7 +11,7 @@ public Mov32ToXor32() : base(X86.Mov32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstantZero) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(X86.Xor32, context.Result, context.Result, context.Result); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs index 78f9e813bc..9231245a9d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToDec32.cs @@ -13,7 +13,7 @@ public Sub32ToDec32() : base(X86.Sub32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -33,7 +33,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs index 2883f3c81b..dee3291763 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Sub32ToLea32.cs @@ -16,7 +16,7 @@ public Sub32ToLea32() : base(X86.Sub32, TransformType.Manual | TransformType.Opt { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -36,7 +36,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var constant = Operand.CreateConstant(-context.Operand2.ConstantSigned32); diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs index 2e1e845e92..3916b3ada8 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/Standard/Test32ToZero.cs @@ -11,7 +11,7 @@ public Test32ToZero() : base(X86.Test32, TransformType.Manual | TransformType.Op { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand2.IsResolvedConstant) return false; @@ -39,7 +39,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32ByZero.cs index 6a4b0c661b..350ade22ab 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32ByZero.cs @@ -11,7 +11,7 @@ public Mul32ByZero() : base(X86.Mul32, TransformType.Manual | TransformType.Opti { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!(context.Operand1.IsConstantZero || context.Operand2.IsConstantZero)) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32WithMov32ByZero.cs b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32WithMov32ByZero.cs index b401e9ce56..bab53c1dea 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32WithMov32ByZero.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Optimizations/Manual/StrengthReduction/Mul32WithMov32ByZero.cs @@ -11,7 +11,7 @@ public Mul32WithMov32ByZero() : base(X86.Mul32, TransformType.Manual | Transform { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsVirtualRegister) return false; @@ -37,7 +37,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var result = context.Result; var result2 = context.Result2; diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToI64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToI64.cs index 5ad5324a9b..da4695ab26 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToI64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToI64.cs @@ -16,12 +16,12 @@ public ConvertR4ToI64() : base(IRInstruction.ConvertR4ToI64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R4ToI8"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToU64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToU64.cs index edef8bd81b..dc71081755 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToU64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR4ToU64.cs @@ -16,12 +16,12 @@ public ConvertR4ToU64() : base(IRInstruction.ConvertR4ToU64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R4ToU8"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToI64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToI64.cs index 02f2915361..b754cbbe20 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToI64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToI64.cs @@ -16,12 +16,12 @@ public ConvertR8ToI64() : base(IRInstruction.ConvertR8ToI64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R8ToI8"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToU64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToU64.cs index 9e59525ce5..12aa6393a1 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToU64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/ConvertR8ToU64.cs @@ -16,12 +16,12 @@ public ConvertR8ToU64() : base(IRInstruction.ConvertR8ToU64, TransformType.Manua public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Conversion", "R8ToU8"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivSigned64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivSigned64.cs index 0a910e6611..5c6e6b6745 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivSigned64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivSigned64.cs @@ -16,12 +16,12 @@ public DivSigned64() : base(IRInstruction.DivSigned64, TransformType.Manual | Tr public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "sdiv64"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivUnsigned64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivUnsigned64.cs index 72935b894d..fd627cb8de 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivUnsigned64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/DivUnsigned64.cs @@ -16,12 +16,12 @@ public DivUnsigned64() : base(IRInstruction.DivUnsigned64, TransformType.Manual public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "udiv64"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulCarryOut64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulCarryOut64.cs index 7b986467dd..6b71817192 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulCarryOut64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulCarryOut64.cs @@ -17,12 +17,12 @@ public MulCarryOut64() : base(IRInstruction.MulCarryOut64, TransformType.Manual public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.GetMethod("Mosa.Runtime.Math.Multiplication", "Mul64Carry"); diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulOverflowOut64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulOverflowOut64.cs index bae5eb4e87..46aaf5a539 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulOverflowOut64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/MulOverflowOut64.cs @@ -17,12 +17,12 @@ public MulOverflowOut64() : base(IRInstruction.MulOverflowOut64, TransformType.M public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var method = transform.GetMethod("Mosa.Runtime.Math.Multiplication", "Mul64Overflow"); diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR4.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR4.cs index 6a0549475e..0a6d9d6f38 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR4.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR4.cs @@ -17,12 +17,12 @@ public RemR4() : base(IRInstruction.RemR4, TransformType.Manual | TransformType. public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR4); Debug.Assert(context.Operand1.IsR4); diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR8.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR8.cs index 966733d00a..1cdfb0faaf 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemR8.cs @@ -17,12 +17,12 @@ public RemR8() : base(IRInstruction.RemR8, TransformType.Manual | TransformType. public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsR8); Debug.Assert(context.Operand1.IsR8); diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemSigned64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemSigned64.cs index dfbbcd3d83..ba98edd5ae 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemSigned64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemSigned64.cs @@ -16,12 +16,12 @@ public RemSigned64() : base(IRInstruction.RemSigned64, TransformType.Manual | Tr public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "smod64"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemUnsigned64.cs b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemUnsigned64.cs index d3ae2fcde9..bbe67578ee 100644 --- a/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemUnsigned64.cs +++ b/Source/Mosa.Compiler.x86/Transforms/RuntimeCall/RemUnsigned64.cs @@ -16,12 +16,12 @@ public RemUnsigned64() : base(IRInstruction.RemUnsigned64, TransformType.Manual public override int Priority => -100; - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.ReplaceWithCall(context, "Mosa.Runtime.Math.Division", "umod64"); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Special/GetLow32Register.cs b/Source/Mosa.Compiler.x86/Transforms/Special/GetLow32Register.cs index c12246f311..179ff3ed5e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Special/GetLow32Register.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Special/GetLow32Register.cs @@ -11,7 +11,7 @@ public GetLow32Register() : base(IRInstruction.GetLow32, TransformType.Manual | { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (transform.AreCPURegistersAllocated) return false; @@ -28,7 +28,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetInstruction(IRInstruction.Move32, context.Result, context.Operand1); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Stack/Epilogue.cs b/Source/Mosa.Compiler.x86/Transforms/Stack/Epilogue.cs index fdfc92668e..dfa74c352d 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Stack/Epilogue.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Stack/Epilogue.cs @@ -14,12 +14,12 @@ public Epilogue() : base(IRInstruction.Epilogue, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.MethodCompiler.IsLocalStackFinalized; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.SetNop(); diff --git a/Source/Mosa.Compiler.x86/Transforms/Stack/Prologue.cs b/Source/Mosa.Compiler.x86/Transforms/Stack/Prologue.cs index e0fa999c56..2911eeb9de 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Stack/Prologue.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Stack/Prologue.cs @@ -14,12 +14,12 @@ public Prologue() : base(IRInstruction.Prologue, TransformType.Manual | Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return transform.MethodCompiler.IsLocalStackFinalized; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { if (!transform.MethodCompiler.IsStackFrameRequired) { diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Blsr32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Blsr32.cs index 27bd601e3e..a08ef93e5e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Blsr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Blsr32.cs @@ -14,7 +14,7 @@ public Blsr32() : base(X86.Blsr32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/CMov32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/CMov32.cs index d0b5bf944e..9422149a37 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/CMov32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/CMov32.cs @@ -14,7 +14,7 @@ public CMov32() : base(X86.CMov32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Cmp32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Cmp32.cs index 8041e5e5e5..53c979e813 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Cmp32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Cmp32.cs @@ -14,7 +14,7 @@ public Cmp32() : base(X86.Cmp32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Lzcnt32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Lzcnt32.cs index 46cfcb4d3d..5276630d70 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Lzcnt32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Lzcnt32.cs @@ -14,7 +14,7 @@ public Lzcnt32() : base(X86.Lzcnt32, TransformType.Manual | TransformType.Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Mov32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Mov32.cs index 2457e455d3..4a16132596 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Mov32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Mov32.cs @@ -15,12 +15,12 @@ public Mov32() : base(X86.Mov32, TransformType.Manual | TransformType.Optimizati { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Result.IsCPURegister && context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad16.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad16.cs index 8b6f9eb82b..edb6ad526f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad16.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad16.cs @@ -15,7 +15,7 @@ public MovLoad16() : base(X86.MovLoad16, TransformType.Manual | TransformType.Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return context.Result.Register == CPURegister.ESI || context.Result.Register == CPURegister.EDI; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad8.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad8.cs index e5b5ca3dec..d072a438d4 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovLoad8.cs @@ -15,7 +15,7 @@ public MovLoad8() : base(X86.MovLoad8, TransformType.Manual | TransformType.Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return context.Result.Register == CPURegister.ESI || context.Result.Register == CPURegister.EDI; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore16.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore16.cs index 703081eb0a..a074198042 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore16.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore16.cs @@ -14,12 +14,12 @@ public MovStore16() : base(X86.MovStore16, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand3.IsCPURegister && (context.Operand3.Register == CPURegister.ESI || context.Operand3.Register == CPURegister.EDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var dest = context.Operand1; var offset = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore8.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore8.cs index 6710c8c1da..db8d2bf0d1 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore8.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/MovStore8.cs @@ -14,12 +14,12 @@ public MovStore8() : base(X86.MovStore8, TransformType.Manual | TransformType.Tr { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand3.IsCPURegister && (context.Operand3.Register == CPURegister.ESI || context.Operand3.Register == CPURegister.EDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { var dest = context.Operand1; var offset = context.Operand2; diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsd.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsd.cs index 33fbdb39e2..fe2160e408 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsd.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsd.cs @@ -14,7 +14,7 @@ public Movsd() : base(X86.Movsd, TransformType.Manual | TransformType.Optimizati { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsCPURegister) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movss.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movss.cs index cb239024eb..8435e5c26f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movss.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movss.cs @@ -14,12 +14,12 @@ public Movss() : base(X86.Movss, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { return context.Operand1.IsCPURegister && context.Result.Register == context.Operand1.Register; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { context.Empty(); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx16To32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx16To32.cs index b1ac45b667..3615b44f9a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx16To32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx16To32.cs @@ -15,7 +15,7 @@ public Movsx16To32() : base(X86.Movsx16To32, TransformType.Manual | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return !(context.Operand1.Register != CPURegister.ESI && context.Operand1.Register != CPURegister.EDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx8To32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx8To32.cs index eb93677c52..a07b1df0c7 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx8To32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movsx8To32.cs @@ -15,7 +15,7 @@ public Movsx8To32() : base(X86.Movsx8To32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return !(context.Operand1.Register != CPURegister.ESI && context.Operand1.Register != CPURegister.EDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx16To32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx16To32.cs index 41437075c7..bbef291c9e 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx16To32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx16To32.cs @@ -15,7 +15,7 @@ public Movzx16To32() : base(X86.Movzx16To32, TransformType.Manual | TransformTyp { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return !(context.Operand1.Register != CPURegister.ESI && context.Operand1.Register != CPURegister.EDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx8To32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx8To32.cs index 48af154a53..f4e75e7cb2 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx8To32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Movzx8To32.cs @@ -15,7 +15,7 @@ public Movzx8To32() : base(X86.Movzx8To32, TransformType.Manual | TransformType. { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return !(context.Operand1.Register != CPURegister.ESI && context.Operand1.Register != CPURegister.EDI); } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Popcnt32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Popcnt32.cs index c82bf6b529..c82708a75f 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Popcnt32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Popcnt32.cs @@ -14,7 +14,7 @@ public Popcnt32() : base(X86.Popcnt32, TransformType.Manual | TransformType.Tran { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Setcc.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Setcc.cs index 87d1cc3681..cfa24759ff 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Setcc.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Setcc.cs @@ -15,7 +15,7 @@ public Setcc() : base(X86.Setcc, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Result.IsCPURegister) return false; @@ -23,7 +23,7 @@ public override bool Match(Context context, TransformContext transform) return context.Result.Register == CPURegister.ESI || context.Result.Register == CPURegister.EDI; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { Debug.Assert(context.Result.IsCPURegister); Debug.Assert(context.Result.IsCPURegister); diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shl32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shl32.cs index a9c11db069..fa2137ae74 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shl32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shl32.cs @@ -14,7 +14,7 @@ public Shl32() : base(X86.Shl32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shld32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shld32.cs index b9a1714cb9..f2ac15f5fc 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shld32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shld32.cs @@ -14,7 +14,7 @@ public Shld32() : base(X86.Shld32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant && !context.Operand2.IsConstant) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1And2ToVirtualRegisters(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shr32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shr32.cs index 821c8a4030..909871a77a 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shr32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shr32.cs @@ -14,7 +14,7 @@ public Shr32() : base(X86.Shr32, TransformType.Manual | TransformType.Transform) { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shrd32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shrd32.cs index 9b52e44130..41bb288014 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Shrd32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Shrd32.cs @@ -14,7 +14,7 @@ public Shrd32() : base(X86.Shrd32, TransformType.Manual | TransformType.Transfor { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant && !context.Operand2.IsConstant) return false; @@ -22,7 +22,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1And2ToVirtualRegisters(context, X86.Mov32); } diff --git a/Source/Mosa.Compiler.x86/Transforms/Tweak/Tzcnt32.cs b/Source/Mosa.Compiler.x86/Transforms/Tweak/Tzcnt32.cs index 4ac46fde06..4aa007f540 100644 --- a/Source/Mosa.Compiler.x86/Transforms/Tweak/Tzcnt32.cs +++ b/Source/Mosa.Compiler.x86/Transforms/Tweak/Tzcnt32.cs @@ -14,7 +14,7 @@ public Tzcnt32() : base(X86.Tzcnt32, TransformType.Manual | TransformType.Transf { } - public override bool Match(Context context, TransformContext transform) + public override bool Match(Context context, Transform transform) { if (!context.Operand1.IsConstant) return false; @@ -25,7 +25,7 @@ public override bool Match(Context context, TransformContext transform) return true; } - public override void Transform(Context context, TransformContext transform) + public override void Transform(Context context, Transform transform) { transform.MoveOperand1ToVirtualRegister(context, X86.Mov32); } diff --git a/Source/Mosa.Utility.SourceCodeGenerator/BuildCommonInstructionFiles.cs b/Source/Mosa.Utility.SourceCodeGenerator/BuildCommonInstructionFiles.cs index f5ed64a14e..a4f379c91b 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/BuildCommonInstructionFiles.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/BuildCommonInstructionFiles.cs @@ -379,7 +379,7 @@ protected override void Body(dynamic node = null) if (node.StaticEmitMethod != null) { Lines.AppendLine(); - Lines.AppendLine("\tpublic override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder)"); + Lines.AppendLine("\tpublic override void Emit(Node node, OpcodeEncoder opcodeEncoder)"); Lines.AppendLine("\t{"); if (node.VariableOperands == null || node.VariableOperands == "false") @@ -396,7 +396,7 @@ protected override void Body(dynamic node = null) if (node.OpcodeEncoding != null) { Lines.AppendLine(); - Lines.AppendLine("\tpublic override void Emit(InstructionNode node, OpcodeEncoder opcodeEncoder)"); + Lines.AppendLine("\tpublic override void Emit(Node node, OpcodeEncoder opcodeEncoder)"); Lines.AppendLine("\t{"); if (node.VariableOperands == null || node.VariableOperands == "false") { diff --git a/Source/Mosa.Utility.SourceCodeGenerator/BuildTransformations.cs b/Source/Mosa.Utility.SourceCodeGenerator/BuildTransformations.cs index e7d0e8c5e0..48da5ba0d3 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/BuildTransformations.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/BuildTransformations.cs @@ -203,7 +203,7 @@ private void GenerateTransformation2(string name, string familyName, string type Lines.AppendLine(""); } - Lines.AppendLine("\tpublic override bool Match(Context context, TransformContext transform)"); + Lines.AppendLine("\tpublic override bool Match(Context context, Transform transform)"); Lines.AppendLine("\t{"); ProcessPrefilters(transform); @@ -218,7 +218,7 @@ private void GenerateTransformation2(string name, string familyName, string type Lines.AppendLine("\t}"); Lines.AppendLine(""); - Lines.AppendLine("\tpublic override void Transform(Context context, TransformContext transform)"); + Lines.AppendLine("\tpublic override void Transform(Context context, Transform transform)"); Lines.AppendLine("\t{"); ProcessResultInstructionTree(transform); @@ -363,7 +363,7 @@ private void ProcessResultInstructionTree(Transformation transform) } else if (operand.IsInstruction) { - sb.Append($"v{nodeNbrToVirtualRegisterNbr[operand.InstructionNode.NodeNbr]}"); + sb.Append($"v{nodeNbrToVirtualRegisterNbr[operand.Node.NodeNbr]}"); } else if (operand.IsMethod) { @@ -464,7 +464,7 @@ private static string CreateConstantName(Operand operand) return null; } - private string DetermineResultType(InstructionNode node) + private string DetermineResultType(Node node) { if (!string.IsNullOrWhiteSpace(node.ResultType)) return node.ResultType; @@ -657,7 +657,7 @@ private string ProcessFilters(Method filter, Transformation transform) return sb.ToString(); } - private void ProcessExpressionNode(InstructionNode instructionNode) + private void ProcessExpressionNode(Node instructionNode) { if (instructionNode.NodeNbr == 0) { @@ -684,7 +684,7 @@ private void ProcessExpressionNode(InstructionNode instructionNode) } } - private void EmitConditions(InstructionNode node, string path) + private void EmitConditions(Node node, string path) { if (node.Condition == ConditionCode.Always) return; @@ -748,7 +748,7 @@ private void EmitCondition(string condition) Lines.AppendLine(""); } - protected void ProcessConditions(Operand operand, InstructionNode parent) + protected void ProcessConditions(Operand operand, Node parent) { if (operand.IsAny) return; // nothing; @@ -781,7 +781,7 @@ protected void ProcessConditions(Operand operand, InstructionNode parent) } } - protected void ProcessNestedConditions(Operand operand, InstructionNode node) + protected void ProcessNestedConditions(Operand operand, Node node) { if (!operand.IsInstruction) return; @@ -791,13 +791,13 @@ protected void ProcessNestedConditions(Operand operand, InstructionNode node) EmitCondition($"!context.{parent}{operandName}.IsDefinedOnce"); - var instructionName = operand.InstructionNode.InstructionName.Replace("IR.", "IRInstruction."); + var instructionName = operand.Node.InstructionName.Replace("IR.", "IRInstruction."); EmitCondition($"context.{parent}{operandName}.Definitions[0].Instruction != {instructionName}"); - NodeNbrToNode.Add(operand.InstructionNode.NodeNbr, $"{parent}{operandName}.Definitions[0]."); + NodeNbrToNode.Add(operand.Node.NodeNbr, $"{parent}{operandName}.Definitions[0]."); - ProcessExpressionNode(operand.InstructionNode); + ProcessExpressionNode(operand.Node); } protected string GetOperandName(int index) diff --git a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionParser.cs b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionParser.cs index 6810a223d6..7a4b63cc54 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionParser.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionParser.cs @@ -4,19 +4,19 @@ namespace Mosa.Utility.SourceCodeGenerator.TransformExpressions; public static class InstructionParser { - public static InstructionNode Parse(List tokens) + public static Node Parse(List tokens) { if (tokens[0].TokenType != TokenType.OpenParens) { tokens.Insert(0, new Token(TokenType.OpenParens, 0)); tokens.Add(new Token(TokenType.CloseParens, 0)); } - return ParseInstructionNode(tokens, 0, 0).node; + return ParseNode(tokens, 0, 0).node; } - private static (InstructionNode node, int end, int nodeNbr) ParseInstructionNode(List tokens, int start, int nodeNbr) + private static (Node node, int end, int nodeNbr) ParseNode(List tokens, int start, int nodeNbr) { - var node = new InstructionNode { NodeNbr = nodeNbr }; + var node = new Node { NodeNbr = nodeNbr }; var length = tokens.Count; for (var index = start; index < length; index++) @@ -32,7 +32,7 @@ private static (InstructionNode node, int end, int nodeNbr) ParseInstructionNode } else { - var childNode = ParseInstructionNode(tokens, index, nodeNbr + 1); + var childNode = ParseNode(tokens, index, nodeNbr + 1); index = childNode.end; nodeNbr = childNode.nodeNbr; diff --git a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/LabelSet.cs b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/LabelSet.cs index 0cd6045709..170d33e7ad 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/LabelSet.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/LabelSet.cs @@ -8,7 +8,7 @@ public class LabelSet public List Labels { get; } = new List(); - public LabelSet(InstructionNode node) + public LabelSet(Node node) { AddPositions(node); } @@ -36,7 +36,7 @@ protected void AddPosition(string name, int nodeNbr, int operandIndex) expressionLabel.Add(nodeNbr, operandIndex); } - protected void AddPositions(InstructionNode node) + protected void AddPositions(Node node) { foreach (var operand in node.Operands) { @@ -52,12 +52,12 @@ protected void AddPositions(InstructionNode node) if (operand.IsInstruction) { - AddPositions(operand.InstructionNode); + AddPositions(operand.Node); } } } - public void AddUse(InstructionNode node) + public void AddUse(Node node) { foreach (var operand in node.Operands) { @@ -69,7 +69,7 @@ public void AddUse(InstructionNode node) } else if (operand.IsInstruction) { - AddUse(operand.InstructionNode); + AddUse(operand.Node); } else if (operand.IsMethod) { @@ -90,7 +90,7 @@ public void AddUseMethod(Method method) } else if (operand.IsInstruction) { - AddUse(operand.InstructionNode); + AddUse(operand.Node); } else if (operand.IsMethod) { diff --git a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionNode.cs b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Node.cs similarity index 85% rename from Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionNode.cs rename to Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Node.cs index 17591b94c7..70c88d1cca 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/InstructionNode.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Node.cs @@ -2,7 +2,7 @@ namespace Mosa.Utility.SourceCodeGenerator.TransformExpressions; -public class InstructionNode +public class Node { public string InstructionName { get; set; } @@ -16,7 +16,7 @@ public class InstructionNode public int NodeNbr { get; set; } - public InstructionNode Parent { get; set; } + public Node Parent { get; set; } public override string ToString() { @@ -26,9 +26,9 @@ public override string ToString() return $"{NodeNbr} : {InstructionName}<{ResultType}>"; } - public InstructionNode Clone(InstructionNode parent) + public Node Clone(Node parent) { - var node = new InstructionNode + var node = new Node { InstructionName = InstructionName, ResultType = ResultType, diff --git a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Operand.cs b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Operand.cs index 77625173fd..7cf7f09f7c 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Operand.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Operand.cs @@ -8,13 +8,13 @@ public class Operand public int Index { get; set; } - public InstructionNode InstructionNode { get; set; } + public Node Node { get; set; } public Method Method { get; set; } public string Value => Token.Value; - public bool IsInstruction => InstructionNode != null; + public bool IsInstruction => Node != null; public bool IsMethod => Method != null; @@ -48,9 +48,9 @@ public Operand(Token token, int index) Index = index; } - public Operand(InstructionNode instructionNode, int index) + public Operand(Node instructionNode, int index) { - InstructionNode = instructionNode; + Node = instructionNode; Index = index; } @@ -60,13 +60,13 @@ public Operand(Method method, int index) Index = index; } - public Operand Clone(InstructionNode parent) + public Operand Clone(Node parent) { var operand = new Operand(Token, Index); - if (InstructionNode != null) + if (Node != null) { - operand.InstructionNode = InstructionNode.Clone(null); + operand.Node = Node.Clone(null); } if (Method != null) @@ -97,7 +97,7 @@ public bool IsSame(Operand other) public override string ToString() { if (IsInstruction) - return $"{Index} : {InstructionNode}"; + return $"{Index} : {Node}"; else if (IsMethod) return $"{Index} : {Method}"; else diff --git a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/ResultParser.cs b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/ResultParser.cs index 2e54aeadbb..b490c5db6f 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/ResultParser.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/ResultParser.cs @@ -4,14 +4,14 @@ namespace Mosa.Utility.SourceCodeGenerator.TransformExpressions; public static class ResultParser { - public static InstructionNode Parse(List tokens) + public static Node Parse(List tokens) { - return ParseInstructionNode(tokens, 0, 0, null).node; + return ParseNode(tokens, 0, 0, null).node; } - private static (InstructionNode node, int end, int nodeNbr) ParseInstructionNode(List tokens, int start, int nodeNbr, InstructionNode parent) + private static (Node node, int end, int nodeNbr) ParseNode(List tokens, int start, int nodeNbr, Node parent) { - var node = new InstructionNode { NodeNbr = nodeNbr, Parent = parent }; + var node = new Node { NodeNbr = nodeNbr, Parent = parent }; var length = tokens.Count; for (var index = start; index < length; index++) @@ -27,7 +27,7 @@ private static (InstructionNode node, int end, int nodeNbr) ParseInstructionNode } else { - var childNode = ParseInstructionNode(tokens, index, nodeNbr + 1, node); + var childNode = ParseNode(tokens, index, nodeNbr + 1, node); index = childNode.end; nodeNbr = childNode.nodeNbr; diff --git a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Transformation.cs b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Transformation.cs index ea28c7b1ab..e1be9f411f 100644 --- a/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Transformation.cs +++ b/Source/Mosa.Utility.SourceCodeGenerator/TransformExpressions/Transformation.cs @@ -15,8 +15,8 @@ public class Transformation protected readonly List TokenizedPrefilter; public readonly LabelSet LabelSet; - public readonly InstructionNode InstructionTree; - public readonly InstructionNode ResultInstructionTree; + public readonly Node InstructionTree; + public readonly Node ResultInstructionTree; public readonly List Filters; public readonly List Prefilters; @@ -41,7 +41,7 @@ public Transformation(string expression, string filter, string result, string pr LabelSet.AddUse(ResultInstructionTree); } - private Transformation(InstructionNode instructionTree, InstructionNode resultInstructionTree, List filters, List prefilters) + private Transformation(Node instructionTree, Node resultInstructionTree, List filters, List prefilters) { InstructionTree = instructionTree; ResultInstructionTree = resultInstructionTree; @@ -57,11 +57,11 @@ public override string ToString() return $"{InstructionTree} & {FilterText} -> {ResultText}"; } - public List __Preorder(InstructionNode tree) + public List __Preorder(Node tree) { - var result = new List(); - var worklist = new Queue(); - var contains = new HashSet(); + var result = new List(); + var worklist = new Queue(); + var contains = new HashSet(); worklist.Enqueue(tree); @@ -78,7 +78,7 @@ public List __Preorder(InstructionNode tree) { if (next.IsInstruction) { - worklist.Enqueue(next.InstructionNode); + worklist.Enqueue(next.Node); } } } @@ -87,10 +87,10 @@ public List __Preorder(InstructionNode tree) return result; } - public List GetPreorder(InstructionNode tree) + public List GetPreorder(Node tree) { - var result = new List(); - var worklist = new Stack(); + var result = new List(); + var worklist = new Stack(); worklist.Push(tree); @@ -103,7 +103,7 @@ public List GetPreorder(InstructionNode tree) { if (operand.IsInstruction) { - worklist.Push(operand.InstructionNode); + worklist.Push(operand.Node); } } } @@ -135,10 +135,10 @@ public List GetPreorder(Method tree) return result; } - public List GetPostorder(InstructionNode tree) + public List GetPostorder(Node tree) { - var result = new List(); - var contains = new HashSet(); + var result = new List(); + var contains = new HashSet(); var list = GetPreorder(tree); @@ -155,7 +155,7 @@ public List GetPostorder(InstructionNode tree) { if (operand.IsInstruction) { - if (!contains.Contains(operand.InstructionNode)) + if (!contains.Contains(operand.Node)) { children = false; break; @@ -215,10 +215,10 @@ public List GetPostorder(Method tree) return result; } - public List GetAllInstructionNodeMethods(InstructionNode tree) + public List GetAllNodeMethods(Node tree) { var result = new List(); - var worklist = new Stack(); + var worklist = new Stack(); worklist.Push(tree); @@ -230,7 +230,7 @@ public List GetAllInstructionNodeMethods(InstructionNode tree) { if (operand.IsInstruction) { - worklist.Push(operand.InstructionNode); + worklist.Push(operand.Node); } if (operand.IsMethod) { @@ -242,10 +242,10 @@ public List GetAllInstructionNodeMethods(InstructionNode tree) return result; } - public List GetAllOperands(InstructionNode tree) + public List GetAllOperands(Node tree) { var result = new List(); - var worklistNode = new Stack(); + var worklistNode = new Stack(); var worklistMethod = new Stack(); worklistNode.Push(tree); @@ -260,7 +260,7 @@ public List GetAllOperands(InstructionNode tree) { if (operand.IsInstruction) { - worklistNode.Push(operand.InstructionNode); + worklistNode.Push(operand.Node); } else if (operand.IsMethod) {