Home
last modified time | relevance | path

Searched refs:HConstant (Results 1 – 25 of 27) sorted by relevance

12

/art/compiler/optimizing/
Dnodes_x86.h45 HConstant* constant) in HX86LoadFromConstantTable()
58 HConstant* GetConstant() const { in GetConstant()
144 HConstant* Evaluate(HIntConstant* x, HIntConstant* y) const override { in Evaluate()
148 HConstant* Evaluate(HLongConstant* x, HLongConstant* y) const override { in Evaluate()
152 HConstant* Evaluate([[maybe_unused]] HFloatConstant* x, in Evaluate()
157 HConstant* Evaluate([[maybe_unused]] HDoubleConstant* x, in Evaluate()
193 HConstant* Evaluate(HIntConstant* x) const override { in Evaluate()
196 HConstant* Evaluate(HLongConstant* x) const override { in Evaluate()
199 HConstant* Evaluate([[maybe_unused]] HFloatConstant* x) const override { in Evaluate()
203 HConstant* Evaluate([[maybe_unused]] HDoubleConstant* x) const override { in Evaluate()
Dnodes.h634 HConstant* GetConstant(DataType::Type type, int64_t value, uint32_t dex_pc = kNoDexPc);
776 void InsertConstant(HConstant* instruction);
3283 class HConstant : public HExpression<0> {
3285 explicit HConstant(InstructionKind kind, DataType::Type type, uint32_t dex_pc = kNoDexPc)
3308 class HNullConstant final : public HConstant {
3328 : HConstant(kNullConstant, DataType::Type::kReference, dex_pc) {
3336 class HIntConstant final : public HConstant {
3368 : HConstant(kIntConstant, DataType::Type::kInt32, dex_pc), value_(value) {
3371 : HConstant(kIntConstant, DataType::Type::kInt32, dex_pc),
3382 class HLongConstant final : public HConstant {
[all …]
Dconstant_folding.cc57 void PropagateValue(HBasicBlock* starting_block, HInstruction* variable, HConstant* constant);
128 HConstant* constant = inst->TryStaticEvaluation(); in VisitUnaryOperation()
136 HConstant* false_constant = inst->TryStaticEvaluation(select->GetFalseValue()); in VisitUnaryOperation()
140 HConstant* true_constant = inst->TryStaticEvaluation(select->GetTrueValue()); in VisitUnaryOperation()
171 HConstant* false_constant = in TryRemoveBinaryOperationViaSelect()
177 HConstant* true_constant = in TryRemoveBinaryOperationViaSelect()
198 HConstant* constant = inst->TryStaticEvaluation(); in VisitBinaryOperation()
221 HConstant* constant) { in PropagateValue()
289 HConstant* constant = left->IsConstant() ? left->AsConstant() : right->AsConstant(); in VisitIf()
345 HConstant* other_constant = constant->AsIntConstant()->IsTrue() ? in VisitIf()
[all …]
Dpc_relative_fixups_x86.cc65 HConstant* value = ret->InputAt(0)->AsConstantOrNull(); in VisitReturn()
98 HConstant* rhs = bin->InputAt(1)->AsConstantOrNull(); in BinaryFP()
184 void ReplaceInput(HInstruction* insn, HConstant* value, int input_index, bool materialize) { in ReplaceInput()
222 HConstant* input = inputs[i]->AsConstantOrNull(); in HandleInvoke()
Dlocations.cc65 HConstant* constant = instruction->AsConstantOrNull(); in RegisterOrInt32Constant()
76 HConstant* constant = instruction->AsConstantOrNull(); in FpuRegisterOrInt32Constant()
Dinstruction_simplifier_x86_shared.cc127 HConstant* cst = add->GetConstantRight(); in AreLeastSetBitInputs()
132 HConstant* cst = sub->GetConstantRight(); in AreLeastSetBitInputs()
Dnodes_riscv64.h43 HConstant* Evaluate(HLongConstant* x, HLongConstant* y) const override { in Evaluate()
Dinstruction_simplifier.cc186 bool AreAllBitsSet(HConstant* constant) { in AreAllBitsSet()
531 HConstant* mask = bin_op->GetConstantRight(); in VisitShift()
1063 HConstant* other = c->AsBinaryOperation()->GetConstantRight(); in AllowInMinMax()
1269 static bool CanRemoveRedundantAnd(HConstant* and_right, in CanRemoveRedundantAnd()
1270 HConstant* shr_right, in CanRemoveRedundantAnd()
1418 HConstant* shr_right = shr_op->GetConstantRight(); in VisitTypeConversion()
1423 HConstant* and_right = and_op->GetConstantRight(); in VisitTypeConversion()
1446 HConstant* constant = input_and->GetConstantRight(); in VisitTypeConversion()
1501 HConstant* input_cst = instruction->GetConstantRight(); in VisitAdd()
1590 HConstant* input_cst = instruction->GetConstantRight(); in VisitAnd()
[all …]
Dlocations.h30 class HConstant; variable
115 HConstant* GetConstant() const { in GetConstant()
117 return reinterpret_cast<HConstant*>(value_ & ~kLocationConstantMask); in GetConstant()
Dgraph_checker.h68 void VisitConstant(HConstant* instruction) override;
Dcode_generator.h551 static int8_t GetInt8ValueOf(HConstant* constant) { in GetInt8ValueOf()
556 static int16_t GetInt16ValueOf(HConstant* constant) { in GetInt16ValueOf()
561 static int32_t GetInt32ValueOf(HConstant* constant) { in GetInt32ValueOf()
572 static int64_t GetInt64ValueOf(HConstant* constant) { in GetInt64ValueOf()
Dcommon_arm.h175 HConstant* instr = location.GetConstant(); in Int64ConstantFrom()
Dnodes.cc694 void HGraph::InsertConstant(HConstant* constant) { in InsertConstant()
760 HConstant* HGraph::GetConstant(DataType::Type type, int64_t value, uint32_t dex_pc) { in GetConstant()
1709 HConstant* HTypeConversion::TryStaticEvaluation() const { return TryStaticEvaluation(GetInput()); } in TryStaticEvaluation()
1711 HConstant* HTypeConversion::TryStaticEvaluation(HInstruction* input) const { in TryStaticEvaluation()
1805 HConstant* HUnaryOperation::TryStaticEvaluation() const { return TryStaticEvaluation(GetInput()); } in TryStaticEvaluation()
1807 HConstant* HUnaryOperation::TryStaticEvaluation(HInstruction* input) const { in TryStaticEvaluation()
1822 HConstant* HBinaryOperation::TryStaticEvaluation() const { in TryStaticEvaluation()
1826 HConstant* HBinaryOperation::TryStaticEvaluation(HInstruction* left, HInstruction* right) const { in TryStaticEvaluation()
1851 HConstant* HBinaryOperation::GetConstantRight() const { in GetConstantRight()
Dcommon_arm64.h255 inline bool Arm64CanEncodeConstantAsImmediate(HConstant* constant, HInstruction* instr) { in Arm64CanEncodeConstantAsImmediate()
Ddead_code_elimination.cc129 static HConstant* Evaluate(HCondition* condition, HInstruction* left, HInstruction* right) { in Evaluate()
Dgraph_visualizer.cc323 HConstant* constant = location.GetConstant(); in DumpLocation()
Dcode_generator_arm_vixl.h396 bool CanEncodeConstantAsImmediate(HConstant* input_cst, Opcode opcode);
Dcode_generator_arm64.h724 void MoveConstant(vixl::aarch64::CPURegister destination, HConstant* constant);
Dcode_generator_arm64.cc1641 void CodeGeneratorARM64::MoveConstant(CPURegister destination, HConstant* constant) { in MoveConstant()
1659 HConstant* cst = constant.GetConstant(); in CoherentConstantAndType()
1696 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation()
1768 HConstant* src_cst = source.GetConstant(); in MoveLocation()
4006 HConstant* cst_true_value = select->GetTrueValue()->AsConstantOrNull(); in VisitSelect()
4007 HConstant* cst_false_value = select->GetFalseValue()->AsConstantOrNull(); in VisitSelect()
Dgraph_checker.cc1457 void GraphChecker::VisitConstant(HConstant* instruction) { in VisitConstant()
Dcode_generator_x86_64.cc1970 HConstant* constant = source.GetConstant(); in Move()
1989 HConstant* constant = source.GetConstant(); in Move()
2010 HConstant* constant = source.GetConstant(); in Move()
2027 HConstant* constant = source.GetConstant(); in Move()
6414 HConstant* constant = source.GetConstant(); in EmitMove()
Dcode_generator_vector_arm64_sve.cc43 static bool SVECanEncodeConstantAsImmediate(HConstant* constant, HInstruction* instr) { in SVECanEncodeConstantAsImmediate()
Dinliner.cc1278 HConstant* constant; in TryInlinePolymorphicCallToSameTarget()
Dcode_generator_vector_arm64_neon.cc44 inline bool NEONCanEncodeConstantAsImmediate(HConstant* constant, HInstruction* instr) { in NEONCanEncodeConstantAsImmediate()
Dcode_generator_x86.cc1640 HConstant* constant = source.GetConstant(); in Move32()
1704 HConstant* constant = source.GetConstant(); in Move64()
7091 HConstant* constant = source.GetConstant(); in EmitMove()
9014 HConstant *value = insn->GetConstant(); in VisitX86LoadFromConstantTable()

12