Lines Matching refs:VReg
23 struct VReg { struct
24 VReg() : value_(kNoValue) {} in VReg() argument
25 VReg(PhiInstruction* phi) : value_(phi->virtual_register()) {} // NOLINT in VReg() argument
26 explicit VReg(int value) : value_(value) {} in VReg() function
30 typedef std::pair<VReg, VReg> VRegPair; argument
51 TestOperand(TestOperandType type, VReg vreg, int value = kNoValue)
55 VReg vreg_;
59 static TestOperand Same() { return TestOperand(kSameAsFirst, VReg()); } in Same()
63 return TestOperand(type, VReg(), index); in ExplicitReg()
66 static TestOperand Reg(VReg vreg, int index = kNoValue) {
72 static TestOperand Reg(int index = kNoValue) { return Reg(VReg(), index); }
74 static TestOperand Slot(VReg vreg, int index = kNoValue) {
80 static TestOperand Slot(int index = kNoValue) { return Slot(VReg(), index); }
84 return TestOperand(kConstant, VReg(), index); in Const()
87 static TestOperand Use(VReg vreg) { return TestOperand(kNone, vreg); } in Use()
89 static TestOperand Use() { return Use(VReg()); } in Use()
91 static TestOperand Unique(VReg vreg) { return TestOperand(kUnique, vreg); } in Unique()
93 static TestOperand UniqueReg(VReg vreg) { in UniqueReg()
139 VReg Define(TestOperand output_op);
140 VReg Parameter(TestOperand output_op = Reg()) { return Define(output_op); }
143 Instruction* Return(VReg vreg) { return Return(Reg(vreg, 0)); } in Return()
145 PhiInstruction* Phi(VReg incoming_vreg_0 = VReg(),
146 VReg incoming_vreg_1 = VReg(),
147 VReg incoming_vreg_2 = VReg(),
148 VReg incoming_vreg_3 = VReg());
149 PhiInstruction* Phi(VReg incoming_vreg_0, size_t input_count);
150 void SetInput(PhiInstruction* phi, size_t input, VReg vreg);
152 VReg DefineConstant(int32_t imm = 0);
159 VReg EmitOI(TestOperand output_op, size_t input_size, TestOperand* inputs);
160 VReg EmitOI(TestOperand output_op, TestOperand input_op_0 = TestOperand(),
171 VReg EmitCall(TestOperand output_op, size_t input_size, TestOperand* inputs);
172 VReg EmitCall(TestOperand output_op, TestOperand input_op_0 = TestOperand(),
185 VReg NewReg() { return VReg(sequence()->NextVirtualRegister()); } in NewReg()
187 static TestOperand Invalid() { return TestOperand(kInvalid, VReg()); } in Invalid()
211 InstructionOperand ConvertOutputOp(VReg vreg, TestOperand op);