Lines Matching refs:instr
87 inline vixl::aarch32::SRegister OutputSRegister(HInstruction* instr) { in OutputSRegister() argument
88 DataType::Type type = instr->GetType(); in OutputSRegister()
90 return SRegisterFrom(instr->GetLocations()->Out()); in OutputSRegister()
93 inline vixl::aarch32::DRegister OutputDRegister(HInstruction* instr) { in OutputDRegister() argument
94 DataType::Type type = instr->GetType(); in OutputDRegister()
96 return DRegisterFrom(instr->GetLocations()->Out()); in OutputDRegister()
99 inline vixl::aarch32::VRegister OutputVRegister(HInstruction* instr) { in OutputVRegister() argument
100 DataType::Type type = instr->GetType(); in OutputVRegister()
102 return OutputSRegister(instr); in OutputVRegister()
104 return OutputDRegister(instr); in OutputVRegister()
108 inline vixl::aarch32::SRegister InputSRegisterAt(HInstruction* instr, int input_index) { in InputSRegisterAt() argument
109 DataType::Type type = instr->InputAt(input_index)->GetType(); in InputSRegisterAt()
111 return SRegisterFrom(instr->GetLocations()->InAt(input_index)); in InputSRegisterAt()
114 inline vixl::aarch32::DRegister InputDRegisterAt(HInstruction* instr, int input_index) { in InputDRegisterAt() argument
115 DataType::Type type = instr->InputAt(input_index)->GetType(); in InputDRegisterAt()
117 return DRegisterFrom(instr->GetLocations()->InAt(input_index)); in InputDRegisterAt()
120 inline vixl::aarch32::VRegister InputVRegisterAt(HInstruction* instr, int input_index) { in InputVRegisterAt() argument
121 DataType::Type type = instr->InputAt(input_index)->GetType(); in InputVRegisterAt()
123 return InputSRegisterAt(instr, input_index); in InputVRegisterAt()
126 return InputDRegisterAt(instr, input_index); in InputVRegisterAt()
130 inline vixl::aarch32::VRegister InputVRegister(HInstruction* instr) { in InputVRegister() argument
131 DCHECK_EQ(instr->InputCount(), 1u); in InputVRegister()
132 return InputVRegisterAt(instr, 0); in InputVRegister()
135 inline vixl::aarch32::Register OutputRegister(HInstruction* instr) { in OutputRegister() argument
136 return RegisterFrom(instr->GetLocations()->Out(), instr->GetType()); in OutputRegister()
139 inline vixl::aarch32::Register InputRegisterAt(HInstruction* instr, int input_index) { in InputRegisterAt() argument
140 return RegisterFrom(instr->GetLocations()->InAt(input_index), in InputRegisterAt()
141 instr->InputAt(input_index)->GetType()); in InputRegisterAt()
144 inline vixl::aarch32::Register InputRegister(HInstruction* instr) { in InputRegister() argument
145 DCHECK_EQ(instr->InputCount(), 1u); in InputRegister()
146 return InputRegisterAt(instr, 0); in InputRegister()
155 inline int32_t Int32ConstantFrom(HInstruction* instr) { in Int32ConstantFrom() argument
156 if (instr->IsIntConstant()) { in Int32ConstantFrom()
157 return instr->AsIntConstant()->GetValue(); in Int32ConstantFrom()
158 } else if (instr->IsNullConstant()) { in Int32ConstantFrom()
161 DCHECK(instr->IsLongConstant()) << instr->DebugName(); in Int32ConstantFrom()
162 const int64_t ret = instr->AsLongConstant()->GetValue(); in Int32ConstantFrom()
174 HConstant* instr = location.GetConstant(); in Int64ConstantFrom() local
175 if (instr->IsIntConstant()) { in Int64ConstantFrom()
176 return instr->AsIntConstant()->GetValue(); in Int64ConstantFrom()
177 } else if (instr->IsNullConstant()) { in Int64ConstantFrom()
180 DCHECK(instr->IsLongConstant()) << instr->DebugName(); in Int64ConstantFrom()
181 return instr->AsLongConstant()->GetValue(); in Int64ConstantFrom()
185 inline uint64_t Uint64ConstantFrom(HInstruction* instr) { in Uint64ConstantFrom() argument
186 DCHECK(instr->IsConstant()) << instr->DebugName(); in Uint64ConstantFrom()
187 return instr->AsConstant()->GetValueAsUint64(); in Uint64ConstantFrom()
198 inline vixl::aarch32::Operand InputOperandAt(HInstruction* instr, int input_index) { in InputOperandAt() argument
199 return OperandFrom(instr->GetLocations()->InAt(input_index), in InputOperandAt()
200 instr->InputAt(input_index)->GetType()); in InputOperandAt()