Home
last modified time | relevance | path

Searched refs:GetCommonType (Results 1 - 25 of 30) sorted by relevance

12

/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dspill_fill_encoder.cpp27 bool sameArgumentType = pred.GetCommonType() == succ.GetCommonType(); in AreConsecutiveOps()
57 if (!DataType::Is64Bits(pred.GetCommonType(), graph->GetArch())) { in CanCombineSpillFills()
217 auto sfType = sf.GetCommonType(); in EncodeImmToX()
248 auto srcReg = codegen_->ConvertRegister(sf.SrcValue(), sf.GetCommonType()); in EncodeRegisterToX()
254 auto nextReg = codegen_->ConvertRegister(next->SrcValue(), next->GetCommonType()); in EncodeRegisterToX()
274 auto curReg = codegen_->ConvertRegister(sf.DstValue(), sf.GetCommonType()); in EncodeStackToX()
275 auto nextReg = codegen_->ConvertRegister(next->DstValue(), next->GetCommonType()); in EncodeStackToX()
/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dspill_fill_data.h72 DataType::Type GetCommonType() const in GetCommonType() function in panda::compiler::SpillFillData
74 return DataType::GetCommonType(type_); in GetCommonType()
H A Dgraph_checker.h128 return DataType::GetCommonType(type1) == DataType::GetCommonType(type2); in CheckCommonTypes()
H A Ddatatype.h89 constexpr inline Type GetCommonType(Type type) in GetCommonType() function
H A Dgraph_checker.cpp815 DataType::GetCommonType(op1->GetType()) == DataType::INT64 || in VisitIfImm()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Dspill_fill_data.h72 DataType::Type GetCommonType() const in GetCommonType() function in ark::compiler::SpillFillData
74 return DataType::GetCommonType(type_); in GetCommonType()
H A Dgraph_checker.cpp252 [[maybe_unused]] auto inputType = GetCommonType(inst->GetInputType(i)); in CheckInputType()
253 [[maybe_unused]] auto realInputType = GetCommonType(input->GetType()); in CheckInputType()
1237 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1249 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1296 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1302 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1308 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1314 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1324 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckUserOfInt32()
1334 CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(v, DataType::GetCommonType(ins in CheckUserOfInt32()
[all...]
H A Dgraph_checker.h279 return DataType::GetCommonType(type1) == DataType::GetCommonType(type2); in CheckCommonTypes()
295 v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckBinaryOperationTypes()
358 v, DataType::GetCommonType(inst->GetType()) == DataType::INT64, in CheckTernaryOperationTypes()
H A Ddatatype.h97 constexpr inline Type GetCommonType(Type type) in GetCommonType() function
H A Danalysis.cpp332 return DataType::GetCommonType(inputType) == DataType::INT64 && in ApplyForCastJoin()
333 DataType::GetCommonType(currType) == DataType::INT64 && in ApplyForCastJoin()
334 DataType::GetCommonType(origType) == DataType::INT64 && in ApplyForCastJoin()
H A Dinst.h2567 ASSERT(GetCommonType(inputType) == GetCommonType(type) || inputType == DataType::POINTER ||
2568 DataType::GetCommonType(inputType) == DataType::INT64);
2572 ASSERT(GetCommonType(inputType) == GetCommonType(type) ||
2573 DataType::GetCommonType(inputType) == DataType::INT64);
2594 ASSERT(GetCommonType(inputType) == GetCommonType(type) || inputType == DataType::POINTER);
2598 ASSERT(DataType::GetCommonType(inputType) == DataType::GetCommonType(GetTyp member in DynObjectAccessType::BinaryImmOperation::DataType
[all...]
H A Dinst.cpp412 return DataType::IsFloatType(GetInputType(0U)) && DataType::GetCommonType(GetType()) == DataType::INT64 && in IsDynamicCast()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dconst_folding.cpp108 ASSERT(DataType::GetCommonType(targetType) == DataType::INT64); in ConvertFloatToInt()
183 auto instType = DataType::GetCommonType(inst->GetType()); in ConstFoldingCastIntConst()
206 auto instType = DataType::GetCommonType(inst->GetType()); in ConstFoldingCastConst()
272 switch (DataType::GetCommonType(inst->GetType())) { in ConstFoldingNeg()
299 switch (DataType::GetCommonType(inst->GetType())) { in ConstFoldingAbs()
330 ASSERT(DataType::GetCommonType(inst->GetType()) == DataType::INT64); in ConstFoldingNot()
350 switch (DataType::GetCommonType(inst->GetType())) { in ConstFoldingAdd()
380 switch (DataType::GetCommonType(inst->GetType())) { in ConstFoldingSub()
397 if (input0.GetInst() == input1.GetInst() && DataType::GetCommonType(inst->GetType()) == DataType::INT64) { in ConstFoldingSub()
416 switch (DataType::GetCommonType(ins in ConstFoldingMul()
[all...]
H A Dlowering.h109 // Returns true if all non-constant operands have the same common type (obtained using GetCommonType) as all
116 nonConstType = GetCommonType(operands_[i]->GetType());
126 if (GetCommonType(operands_[i]->GetType()) != GetCommonType(nonConstType)) {
129 } else if (nonConstType != GetCommonType(operands_[i]->GetType())) {
161 // constant arguments have the same common type (obtained using GetCommonType) as all other operands.
178 if (GetCommonType(insts_[i]->GetType()) != GetCommonType(nonConstType)) {
H A Dpeepholes.cpp444 } else if (DataType::GetCommonType(inst->GetType()) == DataType::INT64) { in VisitMulOneConst()
547 } else if (DataType::GetCommonType(inst->GetType()) == DataType::INT64) { in VisitDiv()
704 DataType::GetCommonType(input0->GetInput(0).GetInst()->GetType()) == DataType::INT64 && in ApplyForCastU16()
1274 if (input->GetOpcode() == Opcode::And && DataType::GetCommonType(currType) == DataType::INT64) { in VisitCast()
1491 if (DataType::GetCommonType(inst->GetType()) == DataType::INT64 && typeSize < DOUBLE_WORD_SIZE) { in EliminateInstPrecedingStore()
1516 if (DataType::GetCommonType(inputInst->GetType()) != DataType::INT64) { in EliminateInstPrecedingStore()
2378 switch (DataType::GetCommonType(cnst1->GetType())) { in TryCombineConst()
H A Dloop_unroll.cpp67 ASSERT(DataType::GetCommonType(type) == DataType::INT64); in ConditionOverFlow()
H A Dmemory_coalescing.cpp49 if (GetCommonType(inst->GetType()) == DataType::INT64) { in VariableAnalysis()
61 if (phi->GetInputsCount() != INPUTS_COUNT || GetCommonType(phi->GetType()) != DataType::INT64) { in VariableAnalysis()
H A Dlowering.cpp823 if (DataType::GetCommonType(inst->GetType()) != DataType::INT64) { in LowerMultiplyAddSub()
994 if (GetCommonType(inst->GetType()) != DataType::INT64) { in LowerBinaryOperationWithShiftedOperand()
1028 if (!Matcher::Capture(inst, operands, insts) || GetCommonType(inst->GetType()) != DataType::INT64 || in LowerUnaryOperationWithShiftedOperand()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_type.h29 ASSERT(GetCommonType(type) == DataType::INT64 || type == DataType::REFERENCE || type == DataType::POINTER || in ConvertRegType()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_type.h46 ASSERT(GetCommonType(type) == DataType::INT64 || type == DataType::REFERENCE || type == DataType::POINTER || in ConvertRegType()
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
H A Dphi_resolver.h191 if (type != DataType::NO_TYPE && DataType::GetCommonType(type) != DataType::INT64) { in CheckPhiInputs()
198 if (has_constant_input && DataType::GetCommonType(input_type) != DataType::INT64) { in CheckPhiInputs()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
H A Dphi_resolver.h166 if (type != DataType::NO_TYPE && DataType::GetCommonType(type) != DataType::INT64) { in CheckPhiRealInputs()
173 if (hasConstantInput && DataType::GetCommonType(inputType) != DataType::INT64) { in CheckPhiRealInputs()
/arkcompiler/runtime_core/compiler/tests/
H A Dcompiler_inst_test.cpp623 * @tc.desc: Verify the GetCommonType function.
633 auto value = GetCommonType(type); in HWTEST_F()
636 auto value1 = GetCommonType(type1); in HWTEST_F()
639 auto result = GetCommonType(str); in HWTEST_F()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dcountable_loop_parser.cpp83 return DataType::GetCommonType(cmpType) == DataType::INT64; in ParseLoopExit()
H A Dbounds_analysis.cpp693 ASSERT(inst->GetType() == DataType::REFERENCE || DataType::GetCommonType(inst->GetType()) == DataType::INT64); in FindBoundsRange()
742 ASSERT(inst->GetType() == DataType::REFERENCE || DataType::GetCommonType(inst->GetType()) == DataType::INT64); in SetBoundsRange()
884 if ((DataType::GetCommonType(op0->GetType()) != DataType::INT64 && op0->GetType() != DataType::REFERENCE) || in VisitIfImm()
885 (DataType::GetCommonType(op1->GetType()) != DataType::INT64 && op1->GetType() != DataType::REFERENCE)) { in VisitIfImm()

Completed in 34 milliseconds

12