Mosa.Compiler.Framework.InstructionNode.SetInstruction C# (CSharp) Method

SetInstruction() public method

Sets the instruction.
public SetInstruction ( BaseInstruction instruction, int operandCount, byte resultCount ) : void
instruction BaseInstruction The instruction.
operandCount int The operand count.
resultCount byte The result count.
return void
        public void SetInstruction(BaseInstruction instruction, int operandCount, byte resultCount)
        {
            Debug.Assert(!IsBlockStartInstruction);
            Debug.Assert(!IsBlockEndInstruction);

            int label = Label;
            var block = Block;

            Clear();

            Instruction = instruction;
            OperandCount = operandCount;
            ResultCount = resultCount;
            Label = label;
            Size = InstructionSize.None;
            Block = block;

            //Block.DebugCheck();
        }

Same methods

InstructionNode::SetInstruction ( BaseInstruction instruction ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, BasicBlock block ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, BasicBlock block1, BasicBlock block2 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, BasicBlock block ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, Operand result ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, Operand result, Operand operand1 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, Operand result, Operand operand1, Operand operand2 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, Operand result, Operand operand1, Operand operand2, BasicBlock block ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, bool updateStatus, Operand result, Operand operand1 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, ConditionCode condition, bool updateStatus, Operand result, Operand operand1, Operand operand2 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, InstructionSize size, Operand result, Operand operand1 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, InstructionSize size, Operand result, Operand operand1, Operand operand2 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, InstructionSize size, Operand result, Operand operand1, Operand operand2, Operand operand3 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, InstructionSize size, Operand result, Operand operand1, Operand operand2, Operand operand3, Operand operand4 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, MosaMethod target ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, Operand result ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, Operand result, Operand operand1 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, Operand result, Operand operand1, Operand operand2 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, Operand result, Operand operand1, Operand operand2, Operand operand3 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, Operand result, Operand operand1, Operand operand2, Operand operand3, Operand operand4 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, bool updateStatus, Operand result ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, bool updateStatus, Operand result, Operand operand1 ) : void
InstructionNode::SetInstruction ( BaseInstruction instruction, bool updateStatus, Operand result, Operand operand1, Operand operand2 ) : void