/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | arch_test.cpp | 25 ASSERT_EQ(GetCallerRegsMask(Arch::AARCH32, false), ArchTraits<Arch::AARCH32>::CALLER_REG_MASK); in HWTEST() 26 ASSERT_EQ(GetCallerRegsMask(Arch::AARCH64, false), ArchTraits<Arch::AARCH64>::CALLER_REG_MASK); in HWTEST() 27 ASSERT_EQ(GetCallerRegsMask(Arch::X86, false), ArchTraits<Arch::X86>::CALLER_REG_MASK); in HWTEST() 28 ASSERT_EQ(GetCallerRegsMask(Arch::X86_64, false), ArchTraits<Arch::X86_64>::CALLER_REG_MASK); in HWTEST() 33 ASSERT_EQ(GetCalleeRegsMask(Arch::AARCH32, false), ArchTraits<Arch::AARCH32>::CALLEE_REG_MASK); in HWTEST() 34 ASSERT_EQ(GetCalleeRegsMask(Arch::AARCH64, false), ArchTraits<Arch::AARCH64>::CALLEE_REG_MASK); in HWTEST() 35 ASSERT_EQ(GetCalleeRegsMask(Arch::X86, false), ArchTraits<Arch::X86>::CALLEE_REG_MASK); in HWTEST() 36 ASSERT_EQ(GetCalleeRegsMask(Arch::X86_64, false), ArchTraits<Arch::X86_64>::CALLEE_REG_MASK); in HWTEST()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | arch.h | 42 struct ArchTraits; 45 struct ArchTraits<Arch::AARCH32> { struct 75 struct ArchTraits<Arch::AARCH64> { struct 99 struct ArchTraits<Arch::X86> { struct 122 struct ArchTraits<Arch::X86_64> { struct 144 struct ArchTraits<Arch::NONE> { struct 162 constexpr std::remove_const_t<decltype(ArchTraits<Arch::AARCH64>::property)> func_name(Arch arch) \ 166 return ArchTraits<Arch::X86>::property; \ 169 return ArchTraits<Arch::X86_64>::property; \ 172 return ArchTraits<Arc [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | arch.h | 42 struct ArchTraits; 45 struct ArchTraits<Arch::AARCH32> { struct 67 struct ArchTraits<Arch::AARCH64> { struct 89 struct ArchTraits<Arch::X86> { struct 112 struct ArchTraits<Arch::X86_64> { struct 134 struct ArchTraits<Arch::NONE> { struct 152 constexpr std::remove_const_t<decltype(ArchTraits<Arch::AARCH64>::property)> func_name(Arch arch) \ 156 return ArchTraits<Arch::X86>::property; \ 159 return ArchTraits<Arch::X86_64>::property; \ 162 return ArchTraits<Arc [all...] |
/arkcompiler/runtime_core/static_core/runtime/arch/ |
H A D | helpers.h | 148 static constexpr size_t GP_ARG_NUM_BYTES = NUM_GP_ARG_REGS * ArchTraits<Arch::AARCH32>::POINTER_SIZE; 150 static constexpr size_t FP_ARG_NUM_BYTES = NUM_FP_ARG_REGS * ArchTraits<Arch::AARCH32>::POINTER_SIZE; 151 static constexpr size_t GPR_SIZE = ArchTraits<Arch::AARCH32>::POINTER_SIZE; 162 static constexpr size_t GP_ARG_NUM_BYTES = NUM_GP_ARG_REGS * ArchTraits<Arch::AARCH32>::POINTER_SIZE; 164 static constexpr size_t FP_ARG_NUM_BYTES = NUM_FP_ARG_REGS * ArchTraits<Arch::AARCH32>::POINTER_SIZE; 165 static constexpr size_t GPR_SIZE = ArchTraits<Arch::AARCH32>::POINTER_SIZE; 166 static constexpr size_t FPR_SIZE = ArchTraits<Arch::AARCH32>::POINTER_SIZE; 177 static constexpr size_t GP_ARG_NUM_BYTES = NUM_GP_ARG_REGS * ArchTraits<Arch::AARCH64>::POINTER_SIZE; 179 static constexpr size_t FP_ARG_NUM_BYTES = NUM_FP_ARG_REGS * ArchTraits<Arch::AARCH64>::POINTER_SIZE; 180 static constexpr size_t GPR_SIZE = ArchTraits<Arc [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | target_info.h | 236 return ArchTraits<ARCH>::IS_64_BITS ? sizeof(uint64_t) : sizeof(uint32_t); 263 return Reg(Target::SP_REG, ArchTraits<ARCH>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); 267 return Reg(Target::FP_REG, ArchTraits<ARCH>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); 271 return Reg(Target::LR_REG, ArchTraits<ARCH>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); 275 return Reg(Target::ZERO_REG, ArchTraits<ARCH>::IS_64_BITS ? INT64_TYPE : INT32_TYPE); 325 return RegMask(ArchTraits<ARCH>::CALLEE_FP_REG_MASK | ArchTraits<ARCH>::CALLER_FP_REG_MASK) &
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | cframe.cpp | 81 if constexpr (!ArchTraits<ARCH>::IS_64_BITS) { in GetVRegValueSlot() 107 if constexpr (!ArchTraits<ARCH>::IS_64_BITS) { in GetVRegValueRegister() 122 if (!ArchTraits<ARCH>::IS_64_BITS && vreg.Has64BitValue()) { in GetVRegValueRegister() 167 if (!ArchTraits<ARCH>::IS_64_BITS && vreg.Has64BitValue()) { in SetVRegValue() 180 if (!ArchTraits<ARCH>::IS_64_BITS && vreg.Has64BitValue()) { in SetVRegValue() 187 if constexpr (!ArchTraits<ARCH>::IS_64_BITS) { in SetVRegValue() 205 auto maxSlot = codeInfo.GetHeader().GetFrameSize() / ArchTraits<RUNTIME_ARCH>::POINTER_SIZE; in Dump()
|
H A D | osr.cpp | 151 ASSERT(IsAligned(bytes, ArchTraits<RUNTIME_ARCH>::POINTER_SIZE)); in PrepareOsrEntry() 152 return bytes / ArchTraits<RUNTIME_ARCH>::POINTER_SIZE; in PrepareOsrEntry() 238 constexpr auto SLOT_SIZE {ArchTraits<RUNTIME_ARCH>::POINTER_SIZE}; in GetStackParamsSize()
|
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/ |
H A D | elf_builder.h | 98 using ElfAddr = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Addr, Elf32_Addr>; 99 using ElfOff = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Off, Elf32_Off>; 100 using ElfHalf = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Half, Elf32_Half>; 101 using ElfWord = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Word, Elf32_Word>; 102 using ElfSword = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Sword, Elf32_Sword>; 103 using ElfXword = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Xword, Elf32_Xword>; 104 using ElfSxword = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Sxword, Elf32_Sxword>; 105 using ElfEhdr = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Ehdr, Elf32_Ehdr>; 106 using ElfShdr = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, Elf64_Shdr, Elf32_Shdr>; 107 using ElfSym = std::conditional_t<ArchTraits<ARC [all...] |
H A D | aot_builder.h | 153 void EmitPlt(Span<typename ArchTraits<ARCH>::WordType> ptrView, size_t gotDataSize);
|
H A D | aot_builder.cpp | 211 using PtrType = typename ArchTraits<ARCH>::WordType; in PrepareElfBuilder() 231 void AotBuilder::EmitPlt(Span<typename ArchTraits<ARCH>::WordType> ptrView, size_t gotDataSize) in EmitPlt()
|
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | instruction_handler_base.h | 337 ASSERT(ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR); in UpdateHotnessOSR() 356 if constexpr (ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR) { in InstrumentBranches()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | stack_walker_base.h | 27 using SlotType = std::conditional_t<ArchTraits<RUNTIME_ARCH>::IS_64_BITS, uint64_t, uint32_t>;
|
/arkcompiler/runtime_core/static_core/compiler/code_info/ |
H A D | code_info.h | 268 if constexpr (ArchTraits<RUNTIME_ARCH>::IS_64_BITS) { in GetMethod() 608 if constexpr (!ArchTraits<RUNTIME_ARCH>::IS_64_BITS) { // NOLINT in EnumerateRoots()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
H A D | callconv.cpp | 216 static_assert(!ArchTraits<Arch::X86_64>::SUPPORT_OSR); in GenerateEpilogue()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | cframe.h | 81 using SlotType = std::conditional_t<ArchTraits<ARCH>::IS_64_BITS, uint64_t, uint32_t>;
|
H A D | stack_walker.h | 83 using SlotType = std::conditional_t<ArchTraits<RUNTIME_ARCH>::IS_64_BITS, uint64_t, uint32_t>;
|
H A D | method-inl.h | 475 if constexpr (!ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR) { in DecrementHotnessCounter()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | code_info_test.cpp | 98 if constexpr (!ArchTraits<RUNTIME_ARCH>::IS_64_BITS) { // NOLINT in TEST_F()
|
H A D | osr_test.cpp | 48 if constexpr (!ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR) { in SetUp()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/ |
H A D | callconv.cpp | 341 static_assert(!ArchTraits<Arch::AARCH32>::SUPPORT_OSR); in GenerateEpilogue()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | stack_walker_test.cpp | 411 if constexpr (ArchTraits<RUNTIME_ARCH>::SUPPORT_DEOPTIMIZATION) { in TEST_F()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/ |
H A D | llvm_ark_interface.cpp | 112 static_assert(ArchTraits<Arch::AARCH64>::THREAD_REG == AARCH64_THREAD_REG); in GetThreadRegister() 116 static_assert(ArchTraits<Arch::X86_64>::THREAD_REG == X86_THREAD_REG); in GetThreadRegister()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | osr_test.cpp | 52 if constexpr (!ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR) {
|
H A D | code_info_test.cpp | 149 if constexpr (!ArchTraits<RUNTIME_ARCH>::IS_64_BITS) { // NOLINT in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
H A D | entrypoints.cpp | 1381 if constexpr (ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR) { in CallCompilerSlowPathOSR() 1382 ASSERT(ArchTraits<RUNTIME_ARCH>::SUPPORT_OSR); in CallCompilerSlowPathOSR()
|