/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | arch.h | 34 enum class Arch { class 41 template <Arch ARCH> 45 struct ArchTraits<Arch::AARCH32> { 75 struct ArchTraits<Arch::AARCH64> { 99 struct ArchTraits<Arch::X86> { 122 struct ArchTraits<Arch::X86_64> { 144 struct ArchTraits<Arch::NONE> { 162 constexpr std::remove_const_t<decltype(ArchTraits<Arch::AARCH64>::property)> func_name(Arch arch) \ 164 ASSERT(arch != Arch [all...] |
/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 in HWTEST() [all...] |
H A D | cframe_layout_test.cpp | 25 CFrameLayout cfl1(Arch::AARCH64, 4U); in HWTEST() 28 CFrameLayout cfl2(Arch::X86_64, 0U); in HWTEST() 31 CFrameLayout cfl3(Arch::AARCH32, 2U); in HWTEST() 34 CFrameLayout cfl4(Arch::AARCH32, 1U); in HWTEST() 37 CFrameLayout cfl5(Arch::X86, 5U); in HWTEST()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | arch.h | 34 enum class Arch { class 41 template <Arch arch> 45 struct ArchTraits<Arch::AARCH32> { 67 struct ArchTraits<Arch::AARCH64> { 89 struct ArchTraits<Arch::X86> { 112 struct ArchTraits<Arch::X86_64> { 134 struct ArchTraits<Arch::NONE> { 152 constexpr std::remove_const_t<decltype(ArchTraits<Arch::AARCH64>::property)> func_name(Arch arch) \ 154 ASSERT(arch != Arch [all...] |
/arkcompiler/runtime_core/compiler/tests/ |
H A D | constructor_test.cpp | 44 encoder = Encoder::Create(GetAllocator(), Arch::AARCH32, false); in ~ConstructorTest() 49 encoder = Encoder::Create(GetAllocator(), Arch::AARCH64, false); in ~ConstructorTest() 54 encoder = Encoder::Create(GetAllocator(), Arch::X86, false); in ~ConstructorTest() 61 encoder = Encoder::Create(GetAllocator(), Arch::X86_64, false); in ~ConstructorTest() 82 ASSERT_TRUE(BackendSupport(Arch::AARCH32)); in TEST_F() 84 ASSERT_FALSE(BackendSupport(Arch::AARCH32)); in TEST_F() 87 ASSERT_TRUE(BackendSupport(Arch::AARCH64)); in TEST_F() 89 ASSERT_FALSE(BackendSupport(Arch::AARCH64)); in TEST_F() 95 ASSERT_TRUE(BackendSupport(Arch::X86_64)); in TEST_F() 97 ASSERT_FALSE(BackendSupport(Arch in TEST_F() [all...] |
H A D | asm_printer_test.cpp | 33 template <Arch arch> 55 if constexpr (arch == Arch::AARCH32) { in PrinterTest() argument 64 if constexpr (arch == Arch::AARCH64) { in PrinterTest() argument 73 if constexpr (arch == Arch::X86_64) { in PrinterTest() argument 152 if constexpr (arch == Arch::AARCH32) { in GetParameter() 169 if constexpr (arch == Arch::AARCH32) { in onstexpr() argument 175 if constexpr (arch == Arch::AARCH64) { in onstexpr() argument 181 if constexpr (arch == Arch::X86_64) { in onstexpr() argument 256 using PrinterAarch32Test = PrinterTest<Arch::AARCH32>; 260 using PrinterAarch64Test = PrinterTest<Arch [all...] |
H A D | unit_test.h | 101 Arch GetArch() const in GetArch() 111 Graph *CreateEmptyGraph(Arch arch) const in CreateEmptyGraph() 129 return GetAllocator()->New<Graph>(GetAllocator(), GetLocalAllocator(), Arch::NONE, false, true); in CreateEmptyBytecodeGraph() 131 Graph *CreateEmptyFastpathGraph(Arch arch) const in CreateEmptyFastpathGraph() 191 Arch arch_ {Arch::AARCH32}; 193 Arch arch_ {Arch::AARCH64}; 320 Arch arch_ {RUNTIME_ARCH};
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | constructor_test.cpp | 46 encoder = Encoder::Create(GetAllocator(), Arch::AARCH32, false); 51 encoder = Encoder::Create(GetAllocator(), Arch::AARCH64, false); 56 encoder = Encoder::Create(GetAllocator(), Arch::X86, false); 63 encoder = Encoder::Create(GetAllocator(), Arch::X86_64, false); 87 ASSERT_TRUE(BackendSupport(Arch::AARCH32)); in TEST_F() 89 ASSERT_FALSE(BackendSupport(Arch::AARCH32)); in TEST_F() 92 ASSERT_TRUE(BackendSupport(Arch::AARCH64)); in TEST_F() 94 ASSERT_FALSE(BackendSupport(Arch::AARCH64)); in TEST_F() 100 ASSERT_TRUE(BackendSupport(Arch::X86_64)); in TEST_F() 102 ASSERT_FALSE(BackendSupport(Arch in TEST_F() [all...] |
H A D | intrinsic_codegen_test.cpp | 38 bool TryEncode(DataType::Type type, RuntimeInterface::IntrinsicId intrinsic_id, Arch arch, bool prepare_graph) in TryEncode() 75 std::pair<Arch, std::string> arch = std::pair {Arch::AARCH64, "arm64"}; in TEST_F() 83 std::pair<Arch, std::string> arch = std::pair {Arch::X86_64, "amd64"}; in TEST_F() 91 std::pair<Arch, std::string> arch = std::pair {Arch::AARCH32, "arm32"}; in TEST_F()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/ |
H A D | target.cpp | 45 bool BackendSupport(Arch arch) in BackendSupport() 50 case Arch::AARCH32: { in BackendSupport() 55 case Arch::AARCH64: { in BackendSupport() 60 case Arch::X86_64: { in BackendSupport() 69 Encoder *Encoder::Create([[maybe_unused]] ArenaAllocator *arenaAllocator, [[maybe_unused]] Arch arch, in Create() 74 case Arch::AARCH32: { in Create() 84 case Arch::AARCH64: { in Create() 94 case Arch::X86_64: { in Create() 96 arenaAllocator->New<amd64::Amd64Encoder>(arenaAllocator, Arch::X86_64, jsNumberCast); in Create() 110 [[maybe_unused]] Arch arc in Create() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | target_info.h | 225 template <Arch ARCH> 228 ARCH == Arch::X86_64, ArchCallingConventionX8664, 230 ARCH == Arch::X86, ArchCallingConventionX86, 231 std::conditional_t<ARCH == Arch::AARCH64, ArchCallingConventionAarch64, 232 std::conditional_t<ARCH == Arch::AARCH32, ArchCallingConventionAarch32, void>>>>; 249 if constexpr (ARCH == Arch::AARCH32) { 332 constexpr explicit Target(Arch arch) : arch_(arch) {} 339 constexpr Arch GetArch() const 356 case Arch::X86_64: \ 358 return ArchCallingConvention<Arch [all...] |
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/ |
H A D | llvm_aot_builder.cpp | 24 case Arch::AARCH32: in GetSectionsAddresses() 25 return GetSectionsAddressesImpl<Arch::AARCH32>(cmdline, fileName); in GetSectionsAddresses() 26 case Arch::AARCH64: in GetSectionsAddresses() 27 return GetSectionsAddressesImpl<Arch::AARCH64>(cmdline, fileName); in GetSectionsAddresses() 28 case Arch::X86: in GetSectionsAddresses() 29 return GetSectionsAddressesImpl<Arch::X86>(cmdline, fileName); in GetSectionsAddresses() 30 case Arch::X86_64: in GetSectionsAddresses() 31 return GetSectionsAddressesImpl<Arch::X86_64>(cmdline, fileName); in GetSectionsAddresses() 38 template <Arch ARCH>
|
H A D | aot_builder.cpp | 106 case Arch::AARCH32: in Write() 107 return WriteImpl<Arch::AARCH32>(cmdline, fileName); in Write() 108 case Arch::AARCH64: in Write() 109 return WriteImpl<Arch::AARCH64>(cmdline, fileName); in Write() 110 case Arch::X86: in Write() 111 return WriteImpl<Arch::X86>(cmdline, fileName); in Write() 112 case Arch::X86_64: in Write() 113 return WriteImpl<Arch::X86_64>(cmdline, fileName); in Write() 148 template <Arch ARCH> 160 template <Arch ARC [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/ |
H A D | llvm_compiler.h | 33 explicit LLVMCompiler(Arch arch); 35 Arch GetArch() const in GetArch() 52 static llvm::Triple GetTripleForArch(Arch arch); 53 static std::string GetCPUForArch(Arch arch); 55 static void InitializeLLVMTarget(Arch arch); 64 Arch arch_;
|
H A D | llvm_irtoc_compiler.cpp | 45 ark::ArenaAllocator *allocator, ark::Arch arch) in CreateLLVMIrtocCompiler() 51 ark::Arch arch, std::string filename) in LLVMIrtocCompiler() 82 std::vector<std::string> LLVMIrtocCompiler::GetFeaturesForArch(Arch arch) in GetFeaturesForArch() 84 if (arch == Arch::X86_64 && ark::compiler::g_options.IsCpuFeatureEnabled(compiler::SSE42)) { in GetFeaturesForArch() 148 case Arch::AARCH64: in GetFastPathFeatures() 159 void LLVMIrtocCompiler::InitializeSpecificLLVMOptions(Arch arch) in InitializeSpecificLLVMOptions() 161 if (arch == Arch::X86_64) { in InitializeSpecificLLVMOptions() 164 if (arch == Arch::AARCH64) { in InitializeSpecificLLVMOptions()
|
H A D | llvm_compiler.cpp | 37 LLVMCompiler::LLVMCompiler(Arch arch) : arch_(arch) in LLVMCompiler() 187 llvm::Triple LLVMCompiler::GetTripleForArch(Arch arch) in GetTripleForArch() 192 case Arch::AARCH64: in GetTripleForArch() 195 case Arch::X86_64: in GetTripleForArch() 216 std::string LLVMCompiler::GetCPUForArch(Arch arch) in GetCPUForArch() 220 case Arch::AARCH64: in GetCPUForArch() 228 case Arch::X86_64: in GetCPUForArch() 237 void LLVMCompiler::InitializeLLVMTarget(Arch arch) in InitializeLLVMTarget() 240 case Arch::AARCH64: { in InitializeLLVMTarget() 249 case Arch in InitializeLLVMTarget() [all...] |
/arkcompiler/runtime_core/static_core/runtime/arch/ |
H A D | helpers.h | 138 template <Arch A> 143 struct ExtArchTraits<Arch::AARCH32> { 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; 157 struct ExtArchTraits<Arch::AARCH32> { 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 [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | runtime_interface.h | 158 uint32_t GetBinaryFileBaseOffset(Arch arch) const in GetBinaryFileBaseOffset() 577 uint32_t GetAccessFlagsOffset(Arch arch) const in GetAccessFlagsOffset() 581 uint32_t GetVTableIndexOffset(Arch arch) const in GetVTableIndexOffset() 585 uint32_t GetClassOffset(Arch arch) const in GetClassOffset() 589 uint32_t GetBaseClassFlagsOffset(Arch arch) const in GetBaseClassFlagsOffset() 593 uint32_t GetCompiledEntryPointOffset(Arch arch) const in GetCompiledEntryPointOffset() 597 uint32_t GetPandaFileOffset(Arch arch) const in GetPandaFileOffset() 608 size_t GetTlsFrameKindOffset(Arch arch) const in GetTlsFrameKindOffset() 612 uint32_t GetFlagAddrOffset(Arch arch) const in GetFlagAddrOffset() 616 size_t GetTlsFrameOffset(Arch arc in GetFlagAddrOffset() [all...] |
H A D | datatype.h | 172 inline Type GetIntTypeForReference([[maybe_unused]] Arch arch) in GetIntTypeForReference() 175 if (arch == Arch::AARCH32) { in GetIntTypeForReference() 212 inline bool Is32Bits(Type type, Arch arch) in Is32Bits() 233 inline bool Is64Bits(Type type, Arch arch) in Is64Bits() 271 inline uint8_t ShiftByType(Type type, Arch arch) in ShiftByType() 301 inline uint8_t GetTypeSize(Type type, Arch arch) in GetTypeSize() 307 inline uint8_t GetTypeByteSize(Type type, Arch arch) in GetTypeByteSize() 313 inline bool NeedCastIntTypes(Arch arch, DataType::Type typeBefore, DataType::Type typeAfter) in NeedCastIntTypes() 325 inline bool NeedCastForTypes(Arch arch, DataType::Type typeBefore, DataType::Type typeAfter)
|
/arkcompiler/runtime_core/static_core/compiler/tools/debug/ |
H A D | jit_writer.cpp | 93 case Arch::AARCH64: in Write() 94 return WriteImpl<Arch::AARCH64>(); in Write() 95 case Arch::X86_64: in Write() 96 return WriteImpl<Arch::X86_64>(); in Write() 98 case Arch::AARCH32: in Write() 99 return WriteImpl<Arch::AARCH32>(); in Write() 106 template <Arch ARCH>
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
H A D | regfile.cpp | 27 : RegistersDescription(allocator, Arch::X86_64), usedRegs_(allocator->Adapter()) in Amd64RegisterDescription() 53 calleeSaved_ = RegList(GetCalleeRegsMask(Arch::X86_64, false).GetValue()); in SetCalleeSaved() 54 calleeSavedv_ = RegList(GetCalleeRegsMask(Arch::X86_64, true).GetValue()); // empty in SetCalleeSaved() 79 calleeSaved_ = RegList(GetCalleeRegsMask(Arch::X86_64, false).GetValue()); in SetUsedRegs() 80 callerSaved_ = RegList(GetCallerRegsMask(Arch::X86_64, false).GetValue()); in SetUsedRegs() 82 calleeSavedv_ = RegList(GetCalleeRegsMask(Arch::X86_64, true).GetValue()); // empty in SetUsedRegs() 83 callerSavedv_ = RegList(GetCallerRegsMask(Arch::X86_64, true).GetValue()); in SetUsedRegs() 118 return reg.GetId() >= GetFirstCalleeReg(Arch::X86_64, isFp) && reg.GetId() <= GetLastCalleeReg(Arch::X86_64, isFp); in IsCalleeRegister() 149 regMask.set(GetThreadReg(Arch in GetDefaultRegMask() [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/ |
H A D | regfile.cpp | 27 : RegistersDescription(allocator, Arch::AARCH64), usedRegs_(allocator->Adapter()) in Aarch64RegisterDescription() 78 if (GetRegMask().Test(GetThreadReg(Arch::AARCH64))) { in SetCalleeSaved() 79 calleeSaved_.Remove(GetThreadReg(Arch::AARCH64)); in SetCalleeSaved() 96 if (GetRegMask().Test(GetThreadReg(Arch::AARCH64))) { in SetUsedRegs() 97 calleeSaved_.Remove(GetThreadReg(Arch::AARCH64)); in SetUsedRegs() 137 return reg.GetId() >= GetFirstCalleeReg(Arch::AARCH64, isFp) && in IsCalleeRegister() 138 reg.GetId() <= GetLastCalleeReg(Arch::AARCH64, isFp); in IsCalleeRegister() 143 return Target(Arch::AARCH64).GetZeroReg(); in GetZeroReg() 164 regMask.set(Target(Arch::AARCH64).GetZeroReg().GetId()); in GetDefaultRegMask() 165 regMask.set(GetThreadReg(Arch in GetDefaultRegMask() [all...] |
/arkcompiler/runtime_core/compiler/ |
H A D | compiler_options.h | 85 case Arch::AARCH64: { in AdjustCpuFeatures() 91 case Arch::AARCH32: in AdjustCpuFeatures() 93 case Arch::X86: in AdjustCpuFeatures() 95 case Arch::X86_64: in AdjustCpuFeatures() 97 case Arch::NONE: in AdjustCpuFeatures()
|
/arkcompiler/runtime_core/static_core/compiler/ |
H A D | compiler_options.h | 97 case Arch::AARCH64: { in AdjustCpuFeatures() 109 case Arch::AARCH32: in AdjustCpuFeatures() 111 case Arch::X86: in AdjustCpuFeatures() 113 case Arch::X86_64: in AdjustCpuFeatures() 115 case Arch::NONE: in AdjustCpuFeatures()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | datatype.h | 158 inline Type GetIntTypeForReference([[maybe_unused]] Arch arch) in GetIntTypeForReference() 161 if (arch == Arch::AARCH32) { in GetIntTypeForReference() 196 inline bool Is32Bits(Type type, Arch arch) in Is32Bits() 217 inline bool Is64Bits(Type type, Arch arch) in Is64Bits() 258 inline uint8_t ShiftByType(Type type, Arch arch) in ShiftByType() 288 inline uint8_t GetTypeSize(Type type, Arch arch) in GetTypeSize()
|