Lines Matching refs:constant
255 inline bool Arm64CanEncodeConstantAsImmediate(HConstant* constant, HInstruction* instr) { in Arm64CanEncodeConstantAsImmediate() argument
256 int64_t value = CodeGenerator::GetInt64ValueOf(constant); in Arm64CanEncodeConstantAsImmediate()
260 if (constant->IsLongConstant()) { in Arm64CanEncodeConstantAsImmediate()
262 } else if (constant->IsFloatConstant()) { in Arm64CanEncodeConstantAsImmediate()
263 return vixl::aarch64::Assembler::IsImmFP32(constant->AsFloatConstant()->GetValue()); in Arm64CanEncodeConstantAsImmediate()
264 } else if (constant->IsDoubleConstant()) { in Arm64CanEncodeConstantAsImmediate()
265 return vixl::aarch64::Assembler::IsImmFP64(constant->AsDoubleConstant()->GetValue()); in Arm64CanEncodeConstantAsImmediate()
274 if (constant->GetUses().HasExactlyOneElement()) { in Arm64CanEncodeConstantAsImmediate()
281 return constant->IsZeroBitPattern() || constant->IsOne() || constant->IsMinusOne(); in Arm64CanEncodeConstantAsImmediate()
286 if (constant->GetUses().HasExactlyOneElement()) { in Arm64CanEncodeConstantAsImmediate()
314 inline Location ARM64EncodableConstantOrRegister(HInstruction* constant, HInstruction* instr) { in ARM64EncodableConstantOrRegister() argument
315 if (constant->IsConstant() && Arm64CanEncodeConstantAsImmediate(constant->AsConstant(), instr)) { in ARM64EncodableConstantOrRegister()
316 return Location::ConstantLocation(constant); in ARM64EncodableConstantOrRegister()