Home
last modified time | relevance | path

Searched full:anybasetype (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/runtime_core/compiler/optimizer/templates/
Dir-dyn-base-types.h.erb37 inline AnyBaseType NumericDataTypeToAnyType([[maybe_unused]] panda::compiler::DataType::Type type,
50 return panda::compiler::AnyBaseType::ECMASCRIPT_INT_TYPE;
55 return panda::compiler::AnyBaseType::UNDEFINED_TYPE;
57 return panda::compiler::AnyBaseType::ECMASCRIPT_DOUBLE_TYPE;
60 return panda::compiler::AnyBaseType::UNDEFINED_TYPE;
64 inline AnyBaseType GetAnyStringType([[maybe_unused]] panda::compiler::SourceLanguage language) {
65 return panda::compiler::AnyBaseType::ECMASCRIPT_STRING_TYPE;
77 inline std::optional<bool> IsAnyTypeCanBeSubtypeOf([[maybe_unused]] AnyBaseType super_type,
78 [[maybe_unused]] AnyBaseType type,
85 case panda::compiler::AnyBaseType::ECMASCRIPT_OBJECT_TYPE:
[all …]
Dsource_languages.h.erb28 enum class AnyBaseType : uint32_t {
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dtypes_resolving.cpp70 AnyBaseType TypesResolving::GetAssumedAnyType(Inst *inst) in GetAssumedAnyType()
79 if (type == AnyBaseType::UNDEFINED_TYPE) { in GetAssumedAnyType()
85 return AnyBaseType::UNDEFINED_TYPE; in GetAssumedAnyType()
120 ASSERT(type != AnyBaseType::UNDEFINED_TYPE); in CheckInputsAnyTypesRec()
121 if (any_type_ == AnyBaseType::UNDEFINED_TYPE) { in CheckInputsAnyTypesRec()
183 any_type_ = AnyBaseType::UNDEFINED_TYPE; in TryResolvePhi()
198 AnyBaseType type = AnyBaseType::UNDEFINED_TYPE; in TryInline()
205 if (input_type != AnyBaseType::UNDEFINED_TYPE) { in TryInline()
213 if (type == AnyBaseType::UNDEFINED_TYPE) { in TryInline()
218 if (curr_type == AnyBaseType::UNDEFINED_TYPE) { in TryInline()
Dtypes_resolving.h50 AnyBaseType GetAssumedAnyType(Inst *inst);
56 ArenaVector<AnyBaseType> types_;
58 AnyBaseType any_type_ {AnyBaseType::UNDEFINED_TYPE};
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Dtypes_analysis.cpp28 void TypesAnalysis::MarkedPhiRec(PhiInst *phi, AnyBaseType type) in MarkedPhiRec()
34 phi->SetAssumedAnyType(AnyBaseType::UNDEFINED_TYPE); in MarkedPhiRec()
52 ASSERT(type != AnyBaseType::UNDEFINED_TYPE); in VisitCastValueToAnyType()
65 if (type == AnyBaseType::UNDEFINED_TYPE) { in VisitAnyTypeCheck()
Dtypes_analysis.h57 void MarkedPhiRec(PhiInst *phi, AnyBaseType type);
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h23 Inst *InstBuilder::BuildAnyTypeCheckInst(size_t bc_addr, Inst *input, Inst *save_state, AnyBaseType in BuildAnyTypeCheckInst()
86 ASSERT(any_type != AnyBaseType::UNDEFINED_TYPE); in BuildCastToAnyString()
113 ASSERT(any_type != AnyBaseType::UNDEFINED_TYPE); in BuildCastToAnyNumber()
Dinst_builder.h251 AnyBaseType type = AnyBaseType::UNDEFINED_TYPE);
Dinst_templates.yaml196 cvat->SetAnyType(panda::compiler::AnyBaseType::ECMASCRIPT_UNDEFINED_TYPE);
211 cvat->SetAnyType(panda::compiler::AnyBaseType::ECMASCRIPT_BOOLEAN_TYPE);
/arkcompiler/runtime_core/bytecode_optimizer/
Dcodegen.cpp401 case compiler::AnyBaseType::ECMASCRIPT_UNDEFINED_TYPE: in IsEcmaConstTemplate()
403 case compiler::AnyBaseType::ECMASCRIPT_INT_TYPE: in IsEcmaConstTemplate()
405 case compiler::AnyBaseType::ECMASCRIPT_DOUBLE_TYPE: in IsEcmaConstTemplate()
407 case compiler::AnyBaseType::ECMASCRIPT_BOOLEAN_TYPE: in IsEcmaConstTemplate()
409 case compiler::AnyBaseType::ECMASCRIPT_NULL_TYPE: in IsEcmaConstTemplate()
575 case compiler::AnyBaseType::ECMASCRIPT_NULL_TYPE: in VisitCastValueToAnyType()
578 case compiler::AnyBaseType::ECMASCRIPT_UNDEFINED_TYPE: in VisitCastValueToAnyType()
585 case compiler::AnyBaseType::ECMASCRIPT_INT_TYPE: { in VisitCastValueToAnyType()
591 case compiler::AnyBaseType::ECMASCRIPT_DOUBLE_TYPE: { in VisitCastValueToAnyType()
597 case compiler::AnyBaseType::ECMASCRIPT_BOOLEAN_TYPE: { in VisitCastValueToAnyType()
[all …]
/arkcompiler/runtime_core/irtoc/lang/
Dcpp_function.rb52 params = "IntrinsicInst *inst, #{@params.keys.map { |x| "AnyBaseType #{x}"}.join(', ')}"
/arkcompiler/runtime_core/irtoc/scripts/
Dcommon.irt138 DYN_INT_TYPE = "AnyBaseType::UNDEFINED_TYPE"
139 DYN_DOUBLE_TYPE = "AnyBaseType::UNDEFINED_TYPE"
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinst.h2607 void SetAnyType(AnyBaseType any_type) in SetAnyType()
2612 AnyBaseType GetAnyType() const in GetAnyType()
2619 … typename T::LastField::template NextField<AnyBaseType, MinimumBitsToStore(AnyBaseType::COUNT)>;
2632 …CompareAnyTypeInst(Opcode opcode, uint32_t pc, AnyBaseType any_type) : BaseInst(opcode, DataType::… in CompareAnyTypeInst()
2662 CastAnyTypeValueInst(Opcode opcode, uint32_t pc, AnyBaseType any_type) in CastAnyTypeValueInst()
2684 AnyBaseType any_type = GetAnyType(); in Clone()
2729 …AnyTypeCheckInst(Opcode opcode, uint32_t pc, AnyBaseType any_type) : BaseInst(opcode, DataType::AN… in AnyTypeCheckInst()
3103 AnyBaseType GetAssumedAnyType() in GetAssumedAnyType()
3108 void SetAssumedAnyType(AnyBaseType type) in SetAssumedAnyType()
Druntime_interface.h880 virtual uint64_t GetPackConstantByPrimitiveType(compiler::AnyBaseType type, uint64_t imm) const in GetPackConstantByPrimitiveType()
Dir_constructor.h604 IrConstructor &AnyType(AnyBaseType any_type) in AnyType()
/arkcompiler/runtime_core/compiler/tests/
Dcodegen_test.cpp2493 INST(2, Opcode::CompareAnyType).b().AnyType(AnyBaseType::UNDEFINED_TYPE).Inputs(0); in TEST_F()
2526 INST(2, Opcode::CastAnyTypeValue).b().AnyType(AnyBaseType::UNDEFINED_TYPE).Inputs(0); in TEST_F()
Dir_builder_test.cpp6311 INST(2, Opcode::CompareAnyType).b().AnyType(AnyBaseType::UNDEFINED_TYPE).Inputs(0); in TEST_F()
6321 EXPECT_TRUE(cati->GetAnyType() == AnyBaseType::UNDEFINED_TYPE); in TEST_F()
6336 INST(2, Opcode::CastAnyTypeValue).AnyType(AnyBaseType::UNDEFINED_TYPE).Inputs(0).u64(); in TEST_F()
6346 EXPECT_TRUE(catvi->GetAnyType() == AnyBaseType::UNDEFINED_TYPE); in TEST_F()
/arkcompiler/runtime_core/compiler/optimizer/code_generator/
Dcodegen.cpp5285 if (cati->GetAnyType() == AnyBaseType::UNDEFINED_TYPE) { in VisitCompareAnyType()
5340 if (check_inst->GetAnyType() == AnyBaseType::UNDEFINED_TYPE) { in VisitAnyTypeCheck()