| /arkcompiler/runtime_core/compiler/tests/ |
| D | inst_generator.h | 72 ParameterInst *CreateParamInst(Graph *graph, DataType::Type type, uint8_t slot); 103 std::map<Opcode, std::vector<DataType::Type>> &GetMap() in GetMap() 123 void GenerateIntrinsic(DataType::Type Type, RuntimeInterface::IntrinsicId intrinsic_id) in GenerateIntrinsic() 131 …std::vector<DataType::Type> integer_types_ {DataType::UINT8, DataType::INT8, DataType::UINT16, D… 132 … DataType::UINT32, DataType::INT32, DataType::UINT64, DataType::INT64}; 134 …std::vector<DataType::Type> numeric_types_ {DataType::BOOL, DataType::UINT8, DataType::INT8, … 135 … DataType::INT16, DataType::UINT32, DataType::INT32, DataType::UINT64, 136 … DataType::INT64, DataType::FLOAT32, DataType::FLOAT64}; 138 std::vector<DataType::Type> ref_num_types_ { 139 …DataType::REFERENCE, DataType::BOOL, DataType::UINT8, DataType::INT8, DataType::UINT16, DataTy… [all …]
|
| D | spill_fills_resolver_test.cpp | 34 #include "optimizer/ir/datatype.h" 66 graph->InitUsedRegs<DataType::INT64>(&used_regs); in InitUsedRegs() 80 sf_inst->AddMove(0, 1, DataType::INT32); 81 sf_inst->AddMove(1, 2, DataType::INT32); 84 expect_sf_inst->AddMove(1, 2, DataType::INT32); 85 expect_sf_inst->AddMove(0, 1, DataType::INT32); 104 sf_inst->AddMemCopy(0, 1, DataType::FLOAT64); 105 sf_inst->AddMemCopy(1, 2, DataType::FLOAT64); 108 expect_sf_inst->AddMemCopy(1, 2, DataType::FLOAT64); 109 expect_sf_inst->AddMemCopy(0, 1, DataType::FLOAT64); [all …]
|
| D | vixl_exec_module.h | 37 T CutValue(uint64_t data, DataType::Type type) in CutValue() 41 case (DataType::VOID): in CutValue() 42 case (DataType::NO_TYPE): in CutValue() 45 case (DataType::BOOL): in CutValue() 47 case (DataType::UINT8): in CutValue() 49 case (DataType::INT8): in CutValue() 51 case (DataType::UINT16): in CutValue() 53 case (DataType::INT16): in CutValue() 55 case (DataType::UINT32): in CutValue() 57 case (DataType::INT32): in CutValue() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | inst_generator.h | 64 void PopulateCall(Graph *graph, BasicBlock *block, Inst *inst, DataType::Type type, int32_t n); 65 void PopulateLoadStoreArray(Graph *graph, Inst *inst, DataType::Type type, int32_t n); 66 void PopulateLoadStoreArrayI(Graph *graph, Inst *inst, DataType::Type type, int32_t n); 67 void PopulateSelect(Graph *graph, Inst *inst, DataType::Type type, int32_t n); 68 void PopulateSelectI(Graph *graph, Inst *inst, DataType::Type type, int32_t n); 69 void PopulateStoreStatic(Graph *graph, BasicBlock *block, Inst *inst, DataType::Type type); 76 void PopulateDefault(Graph *graph, Inst *inst, DataType::Type type, int32_t n); 94 ParameterInst *CreateParamInst(Graph *graph, DataType::Type type, uint8_t slot); 98 DataType::Type type; 146 std::map<Opcode, std::vector<DataType::Type>> &GetMap() in GetMap() [all …]
|
| D | spill_fill_encoder_test.cpp | 32 {{LocationType::REGISTER, LocationType::STACK, 1U, 0U, DataType::Type::INT64}, in TEST_F() 33 {LocationType::REGISTER, LocationType::STACK, 0U, 2U, DataType::Type::INT64}, in TEST_F() 34 {LocationType::REGISTER, LocationType::REGISTER, 0U, 1U, DataType::Type::INT64}, in TEST_F() 35 {LocationType::REGISTER, LocationType::REGISTER, 1U, 2U, DataType::Type::INT64}, in TEST_F() 36 {LocationType::IMMEDIATE, LocationType::REGISTER, 0U, 0U, DataType::Type::INT64}, in TEST_F() 37 {LocationType::IMMEDIATE, LocationType::REGISTER, 0U, 1U, DataType::Type::INT64}, in TEST_F() 38 {LocationType::STACK, LocationType::REGISTER, 0U, 0U, DataType::Type::INT64}, in TEST_F() 39 {LocationType::STACK, LocationType::REGISTER, 1U, 1U, DataType::Type::INT64}, in TEST_F() 40 {LocationType::STACK, LocationType::REGISTER, 2U, 2U, DataType::Type::INT64}, in TEST_F() 41 {LocationType::REGISTER, LocationType::REGISTER, 2U, 4U, DataType::Type::INT64}, in TEST_F() [all …]
|
| D | vixl_exec_module.h | 37 T CutValue(uint64_t data, DataType::Type type) in CutValue() 41 case (DataType::VOID): in CutValue() 42 case (DataType::NO_TYPE): in CutValue() 45 case (DataType::BOOL): in CutValue() 47 case (DataType::UINT8): in CutValue() 49 case (DataType::INT8): in CutValue() 51 case (DataType::UINT16): in CutValue() 53 case (DataType::INT16): in CutValue() 55 case (DataType::UINT32): in CutValue() 57 case (DataType::INT32): in CutValue() [all …]
|
| D | loop_idioms_test.cpp | 24 Graph *CheckFillArrayFullInitial(DataType::Type arrayType) in CheckFillArrayFullInitial() 40 INST(7U, Opcode::Compare).b().Inputs(2U, 6U).CC(CC_LT).SrcType(DataType::INT32); in CheckFillArrayFullInitial() 41 INST(8U, Opcode::IfImm).Inputs(7U).Imm(0U).CC(CC_EQ).SrcType(DataType::BOOL); in CheckFillArrayFullInitial() 49 INST(12U, Opcode::Compare).b().Inputs(6U, 11U).CC(CC_LE).SrcType(DataType::INT32); in CheckFillArrayFullInitial() 50 INST(13U, Opcode::IfImm).Inputs(12U).Imm(0U).CC(CC_NE).SrcType(DataType::BOOL); in CheckFillArrayFullInitial() 62 void BuildExpectedFillArrayFull(Graph *expected, DataType::Type arrayType, in BuildExpectedFillArrayFull() 79 INST(7U, Opcode::Compare).b().Inputs(2U, 6U).CC(CC_LT).SrcType(DataType::INT32); in BuildExpectedFillArrayFull() 80 INST(8U, Opcode::IfImm).Inputs(7U).Imm(0U).CC(CC_EQ).SrcType(DataType::BOOL); in BuildExpectedFillArrayFull() 86 INST(16U, Opcode::Compare).b().Inputs(15U, 20U).SrcType(DataType::INT32).CC(CC_LE); in BuildExpectedFillArrayFull() 87 INST(17U, Opcode::IfImm).Inputs(16U).Imm(0U).CC(CC_NE).SrcType(DataType::BOOL); in BuildExpectedFillArrayFull() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/ |
| D | ets_inst_builder.cpp | 19 #include "optimizer/ir/datatype.h" 38 …DataType::REFERENCE, pc, TypeIdMixin {TypeIdMixin::MEM_PROMISE_CLASS_ID, GetGraph()->GetMethod()},… in BuildLaunch() 58 static RuntimeInterface::IntrinsicId GetIntrinsicId(DataType::Type type) in GetIntrinsicId() 61 case DataType::REFERENCE: in GetIntrinsicId() 63 case DataType::FLOAT64: in GetIntrinsicId() 65 case DataType::FLOAT32: in GetIntrinsicId() 67 case DataType::UINT64: in GetIntrinsicId() 68 case DataType::INT64: in GetIntrinsicId() 70 case DataType::UINT8: in GetIntrinsicId() 71 case DataType::INT8: in GetIntrinsicId() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
| D | reg_type.h | 23 inline DataType::Type ConvertRegTypeNotFloat(const Graph *graph, DataType::Type type) in ConvertRegTypeNotFloat() 25 if (graph->IsBytecodeOptimizer() && type == DataType::REFERENCE) { in ConvertRegTypeNotFloat() 30 if (useReg32 && DataType::Is32Bits(type, graph->GetArch())) { in ConvertRegTypeNotFloat() 31 return DataType::Type::UINT32; in ConvertRegTypeNotFloat() 34 return DataType::Type::UINT64; in ConvertRegTypeNotFloat() 37 inline DataType::Type ConvertRegType(const Graph *graph, DataType::Type type) in ConvertRegType() 39 if (DataType::IsFloatType(type)) { in ConvertRegType() 41 return type == DataType::FLOAT32 ? DataType::UINT32 : DataType::UINT64; in ConvertRegType() 46 …ASSERT(GetCommonType(type) == DataType::INT64 || type == DataType::REFERENCE || type == DataType::… in ConvertRegType() 47 type == DataType::ANY); in ConvertRegType()
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
| D | reg_type.h | 23 inline DataType::Type ConvertRegType(const Graph *graph, DataType::Type type) in ConvertRegType() 25 if (DataType::IsFloatType(type)) { in ConvertRegType() 26 return DataType::Type::UINT64; in ConvertRegType() 29 …ASSERT(GetCommonType(type) == DataType::INT64 || type == DataType::REFERENCE || type == DataType::… in ConvertRegType() 30 type == DataType::ANY); in ConvertRegType() 31 if (type == DataType::REFERENCE) { in ConvertRegType() 35 if (DataType::Is32Bits(type, graph->GetArch())) { in ConvertRegType() 36 return DataType::Type::UINT32; in ConvertRegType() 39 return DataType::Type::UINT64; in ConvertRegType()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/templates/ |
| D | instructions.rb | 73 Tokens::Types::INT8 => "DataType::INT8", 74 Tokens::Types::INT16 => "DataType::INT16", 75 Tokens::Types::INT32 => "DataType::INT32", 76 Tokens::Types::INT64 => "DataType::INT64", 77 Tokens::Types::UINT8 => "DataType::UINT8", 78 Tokens::Types::UINT16 => "DataType::UINT16", 79 Tokens::Types::UINT32 => "DataType::UINT32", 80 Tokens::Types::UINT64 => "DataType::UINT64", 81 Tokens::Types::BOOL => "DataType::BOOL", 82 Tokens::Types::FLOAT32 => "DataType::FLOAT32", [all …]
|
| D | inst_builder_gen.cpp.erb | 55 'u1' => 'DataType::BOOL', 56 'i8' => 'DataType::INT8', 57 'i16' => 'DataType::INT16', 58 'i32' => 'DataType::INT32', 59 'i64' => 'DataType::INT64', 60 'u8' => 'DataType::UINT8', 61 'u16' => 'DataType::UINT16', 62 'u32' => 'DataType::UINT32', 63 'u64' => 'DataType::UINT64', 64 'b32' => 'DataType::UINT32', [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | instructions.rb | 73 Tokens::Types::INT8 => "DataType::INT8", 74 Tokens::Types::INT16 => "DataType::INT16", 75 Tokens::Types::INT32 => "DataType::INT32", 76 Tokens::Types::INT64 => "DataType::INT64", 77 Tokens::Types::UINT8 => "DataType::UINT8", 78 Tokens::Types::UINT16 => "DataType::UINT16", 79 Tokens::Types::UINT32 => "DataType::UINT32", 80 Tokens::Types::UINT64 => "DataType::UINT64", 81 Tokens::Types::BOOL => "DataType::BOOL", 82 Tokens::Types::FLOAT32 => "DataType::FLOAT32", [all …]
|
| D | ir-dyn-base-types.h.erb | 19 #include "compiler/optimizer/ir/datatype.h" 37 inline AnyBaseType NumericDataTypeToAnyType([[maybe_unused]] panda::compiler::DataType::Type type, 39 …ASSERT(type == panda::compiler::DataType::Type::UINT8 || type == panda::compiler::DataType::Type::… 40 …type == panda::compiler::DataType::Type::UINT16 || type == panda::compiler::DataType::Type::INT16 … 41 …type == panda::compiler::DataType::Type::UINT32 || type == panda::compiler::DataType::Type::INT32 … 42 …type == panda::compiler::DataType::Type::UINT64 || type == panda::compiler::DataType::Type::INT64 … 43 …type == panda::compiler::DataType::Type::FLOAT32 || type == panda::compiler::DataType::Type::FLOAT… 45 case panda::compiler::DataType::Type::INT8: 46 case panda::compiler::DataType::Type::UINT8: 47 case panda::compiler::DataType::Type::INT16: [all …]
|
| /arkcompiler/runtime_core/libabckit/src/templates/abckit_intrinsics/ |
| D | inst_builder_abckit_intrinsics.inc.erb | 23 'u1' => 'DataType::BOOL', 24 'i8' => 'DataType::INT8', 25 'i16' => 'DataType::INT16', 26 'i32' => 'DataType::INT32', 27 'i64' => 'DataType::INT64', 28 'u8' => 'DataType::UINT8', 29 'u16' => 'DataType::UINT16', 30 'u32' => 'DataType::UINT32', 31 'u64' => 'DataType::UINT64', 32 'b32' => 'DataType::UINT32', [all …]
|
| /arkcompiler/runtime_core/libabckit/src/codegen/ |
| D | codegen_static.cpp | 162 void DoSta(compiler::DataType::Type type, compiler::Register reg, std::vector<pandasm::Ins> &result) in DoSta() 164 if (compiler::DataType::Is64Bits(type, Arch::NONE)) { in DoSta() 297 ASSERT(sf.GetType() != compiler::DataType::NO_TYPE); in EncodeSpillFillData() 306 case compiler::DataType::INT64: in EncodeSpillFillData() 307 case compiler::DataType::UINT64: in EncodeSpillFillData() 308 case compiler::DataType::FLOAT64: in EncodeSpillFillData() 311 case compiler::DataType::REFERENCE: in EncodeSpillFillData() 344 ASSERT(compiler::DataType::Is32Bits(type, Arch::NONE)); in VisitConstant32() 351 case compiler::DataType::BOOL: in VisitConstant32() 352 case compiler::DataType::INT8: in VisitConstant32() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/js_interop/ |
| D | js_interop_inst_builder.cpp | 24 template <RuntimeInterface::IntrinsicId ID, DataType::Type RET_TYPE, DataType::Type... PARAM_TYPES> 36 …der<RuntimeInterface::IntrinsicId::INTRINSIC_COMPILER_CONVERT_JS_VALUE_TO_LOCAL, DataType::POINTER, 37 DataType::REFERENCE>; 39 …der<RuntimeInterface::IntrinsicId::INTRINSIC_COMPILER_RESOLVE_QUALIFIED_JS_CALL, DataType::POINTER, 40 DataType::POINTER, DataType::UINT32, DataType::UINT32, DataType::UINT32>; 42 …der<RuntimeInterface::IntrinsicId::INTRINSIC_COMPILER_LOAD_RESOLVED_JS_FUNCTION, DataType::POINTER, 43 DataType::POINTER>; 45 …r<RuntimeInterface::IntrinsicId::INTRINSIC_COMPILER_CONVERT_LOCAL_TO_JS_VALUE, DataType::REFERENCE, 46 DataType::POINTER>; 48 …IntrinsicBuilder<RuntimeInterface::IntrinsicId::INTRINSIC_COMPILER_CREATE_LOCAL_SCOPE, DataType::V… [all …]
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
| D | codegen.cpp | 62 void DoSta(compiler::DataType::Type type, compiler::Register reg, std::vector<pandasm::Ins> &result) in DoSta() 64 if (compiler::DataType::Is64Bits(type, Arch::NONE)) { in DoSta() 210 ASSERT(sf.GetType() != compiler::DataType::NO_TYPE); in EncodeSpillFillData() 223 case compiler::DataType::INT64: in EncodeSpillFillData() 224 case compiler::DataType::UINT64: in EncodeSpillFillData() 225 case compiler::DataType::FLOAT64: in EncodeSpillFillData() 228 case compiler::DataType::REFERENCE: in EncodeSpillFillData() 261 ASSERT(compiler::DataType::Is32Bits(type, Arch::NONE)); in VisitConstant32() 268 case compiler::DataType::BOOL: in VisitConstant32() 269 case compiler::DataType::INT8: in VisitConstant32() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | const_folding.cpp | 18 #include "optimizer/ir/datatype.h" 27 uint64_t ConvertIntToInt(T value, DataType::Type targetType) in ConvertIntToInt() 30 case DataType::BOOL: in ConvertIntToInt() 32 case DataType::UINT8: in ConvertIntToInt() 34 case DataType::INT8: in ConvertIntToInt() 36 case DataType::UINT16: in ConvertIntToInt() 38 case DataType::INT16: in ConvertIntToInt() 40 case DataType::UINT32: in ConvertIntToInt() 42 case DataType::INT32: in ConvertIntToInt() 44 case DataType::UINT64: in ConvertIntToInt() [all …]
|
| D | memory_coalescing.h | 48 static bool AcceptedType(DataType::Type type) in AcceptedType() 51 case DataType::UINT32: in AcceptedType() 52 case DataType::INT32: in AcceptedType() 53 case DataType::UINT64: in AcceptedType() 54 case DataType::INT64: in AcceptedType() 55 case DataType::FLOAT32: in AcceptedType() 56 case DataType::FLOAT64: in AcceptedType() 57 case DataType::ANY: in AcceptedType() 59 case DataType::REFERENCE: in AcceptedType()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
| D | ets_interop_runtime_interface-inl.h | 19 static std::pair<IntrinsicId, compiler::DataType::Type> GetInfoForInteropConvert(panda_file::Type::… in GetInfoForInteropConvert() 23 … return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_VOID_TO_LOCAL, compiler::DataType::NO_TYPE}; in GetInfoForInteropConvert() 25 return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_U1_TO_LOCAL, compiler::DataType::BOOL}; in GetInfoForInteropConvert() 27 return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_I8_TO_LOCAL, compiler::DataType::INT8}; in GetInfoForInteropConvert() 29 return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_U8_TO_LOCAL, compiler::DataType::UINT8}; in GetInfoForInteropConvert() 31 … return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_I16_TO_LOCAL, compiler::DataType::INT16}; in GetInfoForInteropConvert() 33 … return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_U16_TO_LOCAL, compiler::DataType::UINT16}; in GetInfoForInteropConvert() 35 … return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_I32_TO_LOCAL, compiler::DataType::INT32}; in GetInfoForInteropConvert() 37 … return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_U32_TO_LOCAL, compiler::DataType::UINT32}; in GetInfoForInteropConvert() 39 … return {IntrinsicId::INTRINSIC_COMPILER_CONVERT_I64_TO_LOCAL, compiler::DataType::INT64}; in GetInfoForInteropConvert() [all …]
|
| /arkcompiler/runtime_core/libabckit/src/adapter_static/ |
| D | abckit_inst_builder.h | 34 void AbcKitBuildLoadObject(const BytecodeInstruction *bcInst, DataType::Type type); 36 void AbcKitBuildStoreObject(const BytecodeInstruction *bcInst, DataType::Type type); 43 void BuildLoadStatic(const BytecodeInstruction *bcInst, DataType::Type type) override; 44 void BuildStoreStatic(const BytecodeInstruction *bcInst, DataType::Type type) override; 45 void BuildLoadArray(const BytecodeInstruction *bcInst, DataType::Type type) override; 47 void BuildStoreArray(const BytecodeInstruction *bcInst, DataType::Type type) override; 56 void BuildAbcKitLoadObjectIntrinsic(const BytecodeInstruction *bcInst, DataType::Type rawType); 58 void BuildAbcKitStoreObjectIntrinsic(const BytecodeInstruction *bcInst, DataType::Type rawType); 59 void BuildAbcKitLoadStaticIntrinsic(const BytecodeInstruction *bcInst, DataType::Type rawType); 60 void BuildAbcKitStoreStaticIntrinsic(const BytecodeInstruction *bcInst, DataType::Type rawType); [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | type_info.h | 32 #include "compiler/optimizer/ir/datatype.h" 185 static TypeInfo FromDataType(DataType::Type type, Arch arch) in FromDataType() 188 case DataType::BOOL: in FromDataType() 189 case DataType::UINT8: in FromDataType() 190 case DataType::INT8: { in FromDataType() 193 case DataType::UINT16: in FromDataType() 194 case DataType::INT16: { in FromDataType() 197 case DataType::UINT32: in FromDataType() 198 case DataType::INT32: { in FromDataType() 201 case DataType::UINT64: in FromDataType() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
| D | ir_build_intrinsics_ets.cpp | 38 auto itype = type == DataType::FLOAT32 ? DataType::INT32 : DataType::INT64; in BuildIsFiniteIntrinsic() 40 auto fpFractSize = type == DataType::FLOAT32 ? 23 : 52; in BuildIsFiniteIntrinsic() 42 auto fpExpMask = type == DataType::FLOAT32 ? 0xff : 0x7ff; in BuildIsFiniteIntrinsic() 49 auto cmp = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), mask, in BuildIsFiniteIntrinsic() 59 …GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), GetArgDefinition(bcInst… in BuildStdRuntimeEquals() 60 … GetArgDefinition(bcInst, 2, accRead), DataType::REFERENCE, ConditionCode::CC_EQ); in BuildStdRuntimeEquals() 67 auto bitcast = GetGraph()->CreateInstBitcast(DataType::INT64, GetPc(bcInst->GetAddress()), in BuildSignbitIntrinsic() 68 … GetArgDefinition(bcInst, 0, accRead), DataType::FLOAT64); in BuildSignbitIntrinsic() 71 …GetGraph()->CreateInstShr(DataType::INT64, GetPc(bcInst->GetAddress()), bitcast, FindOrCreateConst… in BuildSignbitIntrinsic()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | spill_fill_data.h | 19 #include "datatype.h" 30 …ocationType src_type, LocationType dst_type, unsigned src_val, unsigned dst_val, DataType::Type tp) in SpillFillData() 34 …SpillFillData(Location src, Location dst, DataType::Type type) : src_(src), dst_(dst), type_(type)… in SpillFillData() 68 DataType::Type GetType() const in GetType() 72 DataType::Type GetCommonType() const in GetCommonType() 74 return DataType::GetCommonType(type_); in GetCommonType() 76 void SetType(DataType::Type type) in SetType() 92 DataType::Type type_ {DataType::NO_TYPE};
|