Mosa.Compiler.Framework.Context.SetInstruction2 C# (CSharp) Méthode

SetInstruction2() public méthode

Sets the instruction.
public SetInstruction2 ( BaseInstruction instruction, Operand result, Operand result2 ) : void
instruction BaseInstruction The instruction.
result Operand The result.
result2 Operand The result2.
Résultat void
        public void SetInstruction2(BaseInstruction instruction, Operand result, Operand result2)
        {
            Node.SetInstruction2(instruction, result, result2);
        }

Same methods

Context::SetInstruction2 ( BaseInstruction instruction, Operand result, Operand result2, Operand operand1 ) : void
Context::SetInstruction2 ( BaseInstruction instruction, Operand result, Operand result2, Operand operand1, Operand operand2 ) : void
Context::SetInstruction2 ( BaseInstruction instruction, Operand result, Operand result2, Operand operand1, Operand operand2, Operand operand3 ) : void

Usage Example

Exemple #1
0
        /// <summary>
        /// Replaces the intrinsic call site
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="typeSystem">The type system.</param>
        void IIntrinsicPlatformMethod.ReplaceIntrinsicCall(Context context, BaseMethodCompiler methodCompiler)
        {
            Operand n = context.Operand1;
            Operand d = context.Operand2;
            Operand result = context.Result;
            Operand result2 = methodCompiler.CreateVirtualRegister(methodCompiler.TypeSystem.BuiltIn.U4);

            Operand op0L, op0H;

            LongOperandTransformationStage.SplitLongOperand(methodCompiler, n, out op0L, out op0H);

            context.SetInstruction2(X86.Div, result2, result, op0H, op0L, d);
        }
All Usage Examples Of Mosa.Compiler.Framework.Context::SetInstruction2