/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | type_info.h | 91 class TypeInfo final { 97 constexpr explicit TypeInfo(T /* unused */) in TypeInfo() function 127 constexpr explicit TypeInfo(TypeId type) : typeId_(type) {} in TypeInfo() function 129 DEFAULT_MOVE_SEMANTIC(TypeInfo); variable 130 DEFAULT_COPY_SEMANTIC(TypeInfo); variable 131 ~TypeInfo() = default; 133 /// Constructor for create invalid TypeInfo 134 constexpr TypeInfo() = default; 175 constexpr bool operator==(const TypeInfo &other) const in operator ==() 180 constexpr bool operator!=(const TypeInfo [all...] |
H A D | operands.h | 63 constexpr Reg(RegIDType id, TypeInfo type) : id_(id), type_(type) {} in Reg() 76 constexpr TypeInfo GetType() const in GetType() 101 Reg As(TypeInfo type) const in As() 125 TypeInfo type_ {INVALID_TYPE}; 255 TypeInfo GetType() const in GetType() 311 TypeInfo GetType() const in GetType() 322 TypeInfo type_ {INVALID_TYPE};
|
H A D | scoped_tmp_reg.h | 46 ScopedTmpRegImpl(Encoder *encoder, TypeInfo type) : encoder_(encoder), reg_(encoder->AcquireScratchRegister(type)) in ScopedTmpRegImpl() 80 TypeInfo GetType() const in GetType() 91 void ChangeType(TypeInfo tp) in ChangeType() 182 ScopedLiveTmpReg(Encoder *encoder, TypeInfo type) : ScopedTmpReg(encoder, type) in ScopedLiveTmpReg()
|
H A D | target_info.h | 246 static constexpr Reg GetReturnReg(TypeInfo type) 415 TARGET_DEFINE_GETTER_1_ARG(GetReturnReg, TypeInfo); 440 constexpr TypeInfo GetPtrRegType() const 445 constexpr Reg GetParamReg(size_t index, TypeInfo type) const 465 constexpr bool FirstParamIsReturnReg(TypeInfo type) const
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/convert/ |
H A D | convert.rb | 15 TypeInfo = Struct.new(:name, :value, :type, :unwrap, :wrap, keyword_init: true) do 24 TypeInfo.new(name: 'String', value: '"abc"', unwrap: 'String'), 25 TypeInfo.new(name: 'boolean', value: 'true', unwrap: 'U1', wrap: 'U1'), 26 TypeInfo.new(name: 'byte', value: '127', unwrap: 'F64', wrap: 'I8'), 27 TypeInfo.new(name: 'short', value: '32767', unwrap: 'F64', wrap: 'I16'), 28 TypeInfo.new(name: 'int', value: '2147483647', unwrap: 'F64', wrap: 'I32'), 29 TypeInfo.new(name: 'long', value: '9223372036854775', unwrap: 'F64', wrap: 'I64'), 30 TypeInfo.new(name: 'char', value: '65535', unwrap: 'F64', wrap: 'U16'), 31 TypeInfo.new(name: 'double', value: '12.34', unwrap: 'F64', wrap: 'F64'), 32 TypeInfo [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | number_speculative_retype.cpp | 32 TypeInfo type = GetOutputTypeInfo(gate); in SetOutputType() 33 TypeInfo old = type; in SetOutputType() 35 type = TypeInfo::INT32; in SetOutputType() 37 type = TypeInfo::FLOAT64; in SetOutputType() 39 type = TypeInfo::INT1; in SetOutputType() 41 type = TypeInfo::TAGGED; in SetOutputType() 49 TypeInfo type = GetOutputTypeInfo(gate); in SetOutputType() 50 TypeInfo old = type; in SetOutputType() 52 type = TypeInfo::INT32; in SetOutputType() 54 type = TypeInfo in SetOutputType() [all...] |
H A D | number_speculative_retype.h | 34 NumberSpeculativeRetype(Circuit* circuit, Chunk* chunk, ChunkVector<TypeInfo>& typeInfos) in NumberSpeculativeRetype() 71 GateRef SetOutputType(GateRef gate, TypeInfo type); 72 TypeInfo GetNumberTypeInfo(GateRef gate); 96 const GateMetaData *GetNewMeta(OpCode op, TypeInfo type); 97 void UpdateMeta(GateRef gate, TypeInfo newType, const GateMetaData *meta); 148 TypeInfo GetNumberInputTypeInfo(GateRef gate, bool skipTagged = false); 165 GateRef ConvertTaggedToNJSValue(GateRef gate, TypeInfo output); 166 TypeInfo GetOutputForPhi(GateRef gate, bool ignoreConstant); 168 TypeInfo GetOutputTypeInfo(GateRef gate) const in GetOutputTypeInfo() 175 void SetOutputTypeInfo(GateRef gate, TypeInfo inf [all...] |
H A D | number_speculative_runner.cpp | 44 typeInfos_.resize(maxId + 1, TypeInfo::NONE); in Run() 63 typeInfos_.resize(maxId + 1, TypeInfo::NONE); in Run() 94 typeInfos_.resize(maxId + 1, TypeInfo::NONE); in Run()
|
H A D | number_speculative_lowering.cpp | 508 TypeInfo output = GetOutputType(gate); in VisitConstant() 510 case TypeInfo::INT32: { in VisitConstant() 516 case TypeInfo::FLOAT64: { in VisitConstant() 528 TypeInfo output = GetOutputType(gate); in VisitPhi() 530 case TypeInfo::INT1: { in VisitPhi() 535 case TypeInfo::INT32: in VisitPhi() 536 case TypeInfo::UINT32: { in VisitPhi() 541 case TypeInfo::FLOAT64: { in VisitPhi() 546 case TypeInfo::CHAR: { in VisitPhi() 617 TypeInfo outpu in VisitLoadProperty() [all...] |
H A D | range_analysis.h | 29 RangeAnalysis(Circuit* circuit, RPOVisitor* visitor, Chunk* chunk, ChunkVector<TypeInfo>& typeInfos, in RangeAnalysis() 59 ChunkVector<TypeInfo>& typeInfos_;
|
H A D | number_speculative_lowering.h | 29 NumberSpeculativeLowering(Circuit* circuit, Chunk* chunk, ChunkVector<TypeInfo>& typeInfos, in NumberSpeculativeLowering() 99 TypeInfo GetOutputType(GateRef gate) const in GetOutputType() 114 ChunkVector<TypeInfo>& typeInfos_;
|
H A D | number_speculative_runner.h | 52 ChunkVector<TypeInfo> typeInfos_;
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | encoder_operands.cpp | 31 TEST(Operands, TypeInfo) in TEST() 45 TypeInfo arr[] = { in TEST() 46 TypeInfo(u8), // 0 in TEST() 47 TypeInfo(u16), in TEST() 48 TypeInfo(u32), in TEST() 49 TypeInfo(u64), in TEST() 50 TypeInfo(i8), // 4 in TEST() 51 TypeInfo(i16), in TEST() 52 TypeInfo(i32), in TEST() 53 TypeInfo(i6 in TEST() [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | encoder_operands.cpp | 38 for (uint64_t i = 0; i < sizeof(arr_) / sizeof(TypeInfo); ++i) { in CheckValid() 58 ASSERT_EQ(sizeof(TypeInfo), sizeof(uint8_t)); in CheckSizes() 60 ASSERT_EQ(TypeInfo(u8_), INT8_TYPE); in CheckSizes() 61 ASSERT_EQ(TypeInfo(u16_), INT16_TYPE); in CheckSizes() 62 ASSERT_EQ(TypeInfo(u32_), INT32_TYPE); in CheckSizes() 63 ASSERT_EQ(TypeInfo(u64_), INT64_TYPE); in CheckSizes() 65 ASSERT_EQ(TypeInfo(f32_), FLOAT32_TYPE); in CheckSizes() 66 ASSERT_EQ(TypeInfo(f64_), FLOAT64_TYPE); in CheckSizes() 139 std::array<TypeInfo, 18U> arr_ { 140 TypeInfo(u8 [all...] |
H A D | asm_printer_test.cpp | 170 Reg GetParameter(TypeInfo type, size_t id = 0U) in GetParameter() 224 void DoTest(TypeInfo typeInfo, std::string_view opName, EncodeFuncType<PARAMS> encodeFunc) in DoTest() 243 for (auto typeId : {TypeInfo::INT8, TypeInfo::INT16, TypeInfo::INT32, TypeInfo::INT64}) { in DoTest() 244 DoTest(TypeInfo {typeId}, opName, func); in DoTest()
|
/arkcompiler/runtime_core/static_core/compiler/tests/aarch32/ |
H A D | encoder32_test.h | 33 Reg GetParameter(TypeInfo type, int id = 0) in GetParameter() 74 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() 82 auto param1 = GetParameter(TypeInfo(T(0)), 0); in PreWork() 83 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() 85 auto storedValue1 = GetParameter(TypeInfo(uint32_t(0)), 0); in PreWork() 86 auto storedValue2 = GetParameter(TypeInfo(uint32_t(0)), 1); in PreWork() 92 auto param1 = GetParameter(TypeInfo(T(0)), 0); in PreWork() 93 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() 95 auto storedValue1 = GetParameter(TypeInfo(uint64_t(0)), 0); in PreWork() 96 auto storedValue2 = GetParameter(TypeInfo(uint64_ in PreWork() [all...] |
H A D | encoder32_test_2.cpp | 32 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestCompare() 33 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestCompare() 87 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestCompare64() 88 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestCompare64() 142 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestCast() 143 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestCast() 353 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestDiv() 354 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestDiv() 485 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestMod() 486 auto param2 = test->GetParameter(TypeInfo( in TestMod() [all...] |
H A D | encoder32_test_1.cpp | 35 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 87 auto param = test->GetParameter(TypeInfo(T(0))); in TestNot() 134 auto param = test->GetParameter(TypeInfo(T(0))); in TestMov() 177 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestMov2() 178 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 302 auto param = test->GetParameter(TypeInfo(T(0))); in TestBitTestAndBranch() 357 auto param = test->GetParameter(TypeInfo(T(0))); in TestJumpCC() 495 auto retVal = test->GetParameter(TypeInfo(T(0))); in TestLdr() 555 auto storedValue = test->GetParameter(TypeInfo(T(0)), 1); in TestStr() 559 storedValue = test->GetParameter(TypeInfo( in TestStr() [all...] |
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
H A D | encoder32_test.cpp | 182 Reg GetParameter(TypeInfo type, int id = 0) in GetParameter() 223 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() 231 auto param1 = GetParameter(TypeInfo(T(0)), 0); in PreWork() 232 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() 234 auto stored_value_1 = GetParameter(TypeInfo(uint32_t(0)), 0); in PreWork() 235 auto stored_value_2 = GetParameter(TypeInfo(uint32_t(0)), 1); in PreWork() 241 auto param1 = GetParameter(TypeInfo(T(0)), 0); in PreWork() 242 auto param2 = GetParameter(TypeInfo(T(0)), 1); in PreWork() 244 auto stored_value_1 = GetParameter(TypeInfo(uint64_t(0)), 0); in PreWork() 245 auto stored_value_2 = GetParameter(TypeInfo(uint64_ in PreWork() [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/ |
H A D | encoder64_test_1.cpp | 26 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 75 auto param = test->GetParameter(TypeInfo(T(0))); in TestNot() 117 auto param = test->GetParameter(TypeInfo(T(0))); in TestMov() 160 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestMov2() 161 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 284 auto param = test->GetParameter(TypeInfo(T(0))); in TestBitTestAndBranch() 337 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestAddOverflow() 338 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestAddOverflow() 339 auto retVal = Target::Current().GetReturnReg(TypeInfo(T(0))); in TestAddOverflow() 403 auto param1 = test->GetParameter(TypeInfo( in TestSubOverflow() [all...] |
H A D | encoder64_test_2.cpp | 31 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestCmp64() 32 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestCmp64() 83 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestCompare() 84 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestCompare() 134 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestCompare64() 135 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestCompare64() 185 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestCast() 186 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestCast() 387 auto input = test->GetParameter(TypeInfo(double(0)), 0); in TestFcvtjzs() 388 auto output = test->GetParameter(TypeInfo(int32_ in TestFcvtjzs() [all...] |
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/ |
H A D | encoder64_test_1.cpp | 28 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 78 auto param = test->GetParameter(TypeInfo(T(0))); in TestNot() 120 auto param = test->GetParameter(TypeInfo(T(0))); in TestMov() 163 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestMov2() 164 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 285 auto param = test->GetParameter(TypeInfo(T(0))); in TestBitTestAndBranch() 340 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestAddOverflow() 341 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestAddOverflow() 342 auto retVal = Target::Current().GetParamReg(0, TypeInfo(T(0))); in TestAddOverflow() 406 auto param1 = test->GetParameter(TypeInfo( in TestSubOverflow() [all...] |
H A D | encoder64_test_2.cpp | 30 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestCompare64() 31 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestCompare64() 81 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestCast() 82 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestCast() 286 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestDiv() 287 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestDiv() 363 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestDivImm() 416 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestMod() 417 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestMod() 494 auto param1 = test->GetParameter(TypeInfo( in TestModImm() [all...] |
/arkcompiler/runtime_core/compiler/tests/amd64/ |
H A D | encoder64_test.cpp | 188 Reg GetParameter(TypeInfo type, int id = 0) in GetParameter() 439 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 491 auto param = test->GetParameter(TypeInfo(T(0))); in TestNot() 535 auto param = test->GetParameter(TypeInfo(T(0))); in TestMov() 580 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestMov2() 581 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 705 auto param = test->GetParameter(TypeInfo(T(0))); in TestBitTestAndBranch() 760 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestAddOverflow() 761 auto param2 = test->GetParameter(TypeInfo(T(0)), 1); in TestAddOverflow() 762 auto ret_val = Target::Current().GetParamReg(0, TypeInfo( in TestAddOverflow() [all...] |
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
H A D | encoder64_test.cpp | 123 auto type_size = panda::compiler::TypeInfo(T(0)).GetSize(); in random_mask_gen() 196 Reg GetParameter(TypeInfo type, int id = 0) in GetParameter() 441 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 493 auto param = test->GetParameter(TypeInfo(T(0))); in TestNot() 537 auto param = test->GetParameter(TypeInfo(T(0))); in TestMov() 582 auto input = test->GetParameter(TypeInfo(Src(0)), 0); in TestMov2() 583 auto output = test->GetParameter(TypeInfo(Dst(0)), 0); in TestMov2() 708 auto param = test->GetParameter(TypeInfo(T(0))); in TestBitTestAndBranch() 761 auto param1 = test->GetParameter(TypeInfo(T(0)), 0); in TestAddOverflow() 762 auto param2 = test->GetParameter(TypeInfo( in TestAddOverflow() [all...] |