Lines Matching refs:instr
81 inline vixl::aarch64::Register OutputRegister(HInstruction* instr) { in OutputRegister() argument
82 return RegisterFrom(instr->GetLocations()->Out(), instr->GetType()); in OutputRegister()
85 inline vixl::aarch64::Register InputRegisterAt(HInstruction* instr, int input_index) { in InputRegisterAt() argument
86 return RegisterFrom(instr->GetLocations()->InAt(input_index), in InputRegisterAt()
87 instr->InputAt(input_index)->GetType()); in InputRegisterAt()
120 inline vixl::aarch64::VRegister OutputFPRegister(HInstruction* instr) { in OutputFPRegister() argument
121 return FPRegisterFrom(instr->GetLocations()->Out(), instr->GetType()); in OutputFPRegister()
124 inline vixl::aarch64::VRegister InputFPRegisterAt(HInstruction* instr, int input_index) { in InputFPRegisterAt() argument
125 return FPRegisterFrom(instr->GetLocations()->InAt(input_index), in InputFPRegisterAt()
126 instr->InputAt(input_index)->GetType()); in InputFPRegisterAt()
135 inline vixl::aarch64::CPURegister OutputCPURegister(HInstruction* instr) { in OutputCPURegister() argument
136 return DataType::IsFloatingPointType(instr->GetType()) in OutputCPURegister()
137 ? static_cast<vixl::aarch64::CPURegister>(OutputFPRegister(instr)) in OutputCPURegister()
138 : static_cast<vixl::aarch64::CPURegister>(OutputRegister(instr)); in OutputCPURegister()
141 inline vixl::aarch64::CPURegister InputCPURegisterAt(HInstruction* instr, int index) { in InputCPURegisterAt() argument
142 return DataType::IsFloatingPointType(instr->InputAt(index)->GetType()) in InputCPURegisterAt()
143 ? static_cast<vixl::aarch64::CPURegister>(InputFPRegisterAt(instr, index)) in InputCPURegisterAt()
144 : static_cast<vixl::aarch64::CPURegister>(InputRegisterAt(instr, index)); in InputCPURegisterAt()
147 inline vixl::aarch64::CPURegister InputCPURegisterOrZeroRegAt(HInstruction* instr, in InputCPURegisterOrZeroRegAt() argument
149 HInstruction* input = instr->InputAt(index); in InputCPURegisterOrZeroRegAt()
156 return InputCPURegisterAt(instr, index); in InputCPURegisterOrZeroRegAt()
171 inline vixl::aarch64::Operand InputOperandAt(HInstruction* instr, int input_index) { in InputOperandAt() argument
172 return OperandFrom(instr->GetLocations()->InAt(input_index), in InputOperandAt()
173 instr->InputAt(input_index)->GetType()); in InputOperandAt()
241 inline bool Arm64CanEncodeConstantAsImmediate(HConstant* constant, HInstruction* instr) { in Arm64CanEncodeConstantAsImmediate() argument
245 if (instr->IsVecReplicateScalar()) { in Arm64CanEncodeConstantAsImmediate()
259 if (instr->IsMin() || instr->IsMax()) { in Arm64CanEncodeConstantAsImmediate()
277 if (instr->IsRor()) { in Arm64CanEncodeConstantAsImmediate()
281 if (instr->IsAnd() || instr->IsOr() || instr->IsXor()) { in Arm64CanEncodeConstantAsImmediate()
284 } else if (instr->IsNeg()) { in Arm64CanEncodeConstantAsImmediate()
288 DCHECK(instr->IsAdd() || in Arm64CanEncodeConstantAsImmediate()
289 instr->IsIntermediateAddress() || in Arm64CanEncodeConstantAsImmediate()
290 instr->IsBoundsCheck() || in Arm64CanEncodeConstantAsImmediate()
291 instr->IsCompare() || in Arm64CanEncodeConstantAsImmediate()
292 instr->IsCondition() || in Arm64CanEncodeConstantAsImmediate()
293 instr->IsSub()) in Arm64CanEncodeConstantAsImmediate()
294 << instr->DebugName(); in Arm64CanEncodeConstantAsImmediate()
301 HInstruction* instr) { in ARM64EncodableConstantOrRegister() argument
303 && Arm64CanEncodeConstantAsImmediate(constant->AsConstant(), instr)) { in ARM64EncodableConstantOrRegister()