Home
last modified time | relevance | path

Searched refs:GetArch (Results 1 - 25 of 109) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/irtoc/backend/compiler/
H A Dcodegen_boundary.cpp56 auto tlsFrameOffset = GetRuntime()->GetTlsFrameOffset(GetArch()); in GeneratePrologue()
67 GetCalleeRegsMask(GetArch(), false) & ~GetTarget().GetTempRegsMask().to_ulong() & ~ThreadReg().GetId(); in GeneratePrologue()
68 auto calleeVregs = GetCalleeRegsMask(GetArch(), true) & ~GetTarget().GetTempVRegsMask().to_ulong(); in GeneratePrologue()
69 auto callerRegs = GetCallerRegsMask(GetArch(), false) & ~GetTarget().GetTempRegsMask().to_ulong(); in GeneratePrologue()
70 auto callerVregs = GetCallerRegsMask(GetArch(), true) & ~GetTarget().GetTempVRegsMask().to_ulong(); in GeneratePrologue()
78 encoder->SaveRegisters(callerRegs, false, -offset, base, GetCallerRegsMask(GetArch(), false)); in GeneratePrologue()
81 encoder->SaveRegisters(callerVregs, true, -offset, base, GetCallerRegsMask(GetArch(), true)); in GeneratePrologue()
86 encoder->SaveRegisters(calleeRegs, false, frame->GetCalleesOffset(), base, GetCalleeRegsMask(GetArch(), false)); in GeneratePrologue()
88 GetCalleeRegsMask(GetArch(), true)); in GeneratePrologue()
104 auto target = Target(GetGraph()->GetArch()); in CreateFrameInfo()
[all...]
H A Dcodegen_fastpath.cpp27 auto fpReg = Target(fl.GetArch()).GetFrameReg(); in SaveCallerRegistersInFrame()
29 mask &= GetCallerRegsMask(fl.GetArch(), isFp); in SaveCallerRegistersInFrame()
31 encoder->SaveRegisters(mask, isFp, -startSlot, fpReg, GetCallerRegsMask(fl.GetArch(), isFp)); in SaveCallerRegistersInFrame()
39 auto fpReg = Target(fl.GetArch()).GetFrameReg(); in RestoreCallerRegistersFromFrame()
41 mask &= GetCallerRegsMask(fl.GetArch(), isFp); in RestoreCallerRegistersFromFrame()
43 encoder->LoadRegisters(mask, isFp, -startSlot, fpReg, GetCallerRegsMask(fl.GetArch(), isFp)); in RestoreCallerRegistersFromFrame()
112 auto callerRegs = RegMask(GetCallerRegsMask(GetArch(), false)); in GeneratePrologue()
119 savedRegisters_ = GetUsedRegs() & RegMask(GetCalleeRegsMask(GetArch(), false)); in GeneratePrologue()
126 SaveCallerRegistersInFrame(GetUsedVRegs() & GetCallerRegsMask(GetArch(), true), GetEncoder(), GetFrameLayout(), in GeneratePrologue()
128 savedFpRegisters_ = GetUsedVRegs() & VRegMask(GetCalleeRegsMask(GetArch(), tru in GeneratePrologue()
[all...]
H A Ddangling_pointers_checker.cpp67 return imm != static_cast<uint64_t>(cross_values::GetFrameAccOffset(inst->GetBasicBlock()->GetGraph()->GetArch())); in IsObjectDef()
72 auto arch = GetGraph()->GetArch(); in InitLiveIns()
157 auto arch = GetGraph()->GetArch(); in GetAccAndFrameDefs()
197 auto arch = GetGraph()->GetArch(); in IsAccTagDef()
216 auto arch = GetGraph()->GetArch(); in IsAccTagPtr()
231 auto arch = GetGraph()->GetArch(); in IsAccPtr()
428 auto arch = GetGraph()->GetArch(); in IsSaveAcc()
449 // StoreI(last_frame_def, last_acc_def).Imm(cross_values::GetFrameAccOffset(GetArch()))
469 // StoreI(acc_ptr, last_acc_tag_def).Imm(cross_values::GetFrameAccMirrorOffset(GetArch()))
474 auto arch = GetGraph()->GetArch(); in CheckStoreAccTag()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/
H A Dtriple_ut_test.cpp27 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64); in TEST()
32 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64); in TEST()
37 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64_be); in TEST()
42 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64_be); in TEST()
47 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64_be); in TEST()
52 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64_be); in TEST()
57 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64); in TEST()
63 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64); in TEST()
81 ASSERT_EQ(Triple::GetTriple().GetArch(), Triple::ArchType::aarch64_be); in TEST()
94 ASSERT_EQ(Triple::GetTriple().GetArch(), Tripl in TEST()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_driver/include/
H A Dtriple.h36 ArchType GetArch() const in GetArch() function in maple::Triple
47 return (GetArch() == ArchType::aarch64_be); in IsBigEndian()
52 return (GetArch() == ArchType::aarch64_be) || (GetArch() == ArchType::aarch64); in IsAarch64BeOrLe()
/arkcompiler/runtime_core/static_core/libllvmbackend/
H A Dllvm_irtoc_compiler.cpp64 .SetFeatures(GetFeaturesForArch(GetArch())) in LLVMIrtocCompiler()
65 .SetTriple(GetTripleForArch(GetArch())) in LLVMIrtocCompiler()
93 ASSERT(graph->GetArch() == GetArch()); in TryAddGraph()
143 for (const auto &feature : GetFeaturesForArch(GetArch())) { in GetFastPathFeatures()
147 switch (GetArch()) { in GetFastPathFeatures()
178 module_->setTargetTriple(GetTripleForArch(GetArch()).getTriple()); in InitializeModule()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dcodegen.cpp147 codeBuilder_(allocator_->New<CodeInfoBuilder>(graph->GetArch(), allocator_)), in Codegen()
150 frameLayout_(CFrameLayout(graph->GetArch(), graph->GetStackSlotsCount(), !graph->GetMode().IsFastPath())), in Codegen()
154 target_(graph->GetArch()), in Codegen()
240 if (GetArch() == Arch::AARCH64 && !isFastpath) { in FillOnlyParameters()
290 if (GetArch() == Arch::AARCH64 && !g_options.IsCpuFeatureEnabled(CpuFeature::ATOMICS)) { in EmitAtomicByteOr()
321 ASSERT(GetRuntime()->GetObjMarkWordOffset(GetArch()) == 0); in CreateIrtocIntrinsic()
325 ASSERT(GetRuntime()->GetObjMarkWordOffset(GetArch()) == 0); in CreateIrtocIntrinsic()
329 ASSERT(GetRuntime()->GetObjMarkWordOffset(GetArch()) == 0); in CreateIrtocIntrinsic()
386 GetEncoder()->SetCodeOffset(GetGraph()->GetAotData()->GetCodeOffset() + CodeInfo::GetCodeOffset(GetArch())); in BeginMethod()
409 GetEncoder()->EncodeSti(1, 1, MemRef(ThreadReg(), GetRuntime()->GetTlsFrameKindOffset(GetArch()))); in GeneratePrologue()
[all...]
H A Dencode_visitor.cpp115 auto arch = enc->GetCodegen()->GetArch(); \
148 auto arch = enc->GetCodegen()->GetArch(); in VisitMod()
267 auto arch = enc->GetCodegen()->GetArch(); in VisitCast()
354 auto ref = MemRef(enc->GetCodegen()->ThreadReg(), runtime->GetTlsUndefinedObjectOffset(graph->GetArch())); in VisitLoadUndefined()
429 auto returnReg = codegen->GetTarget().GetReturnReg(codegen->ConvertDataType(inst->GetType(), codegen->GetArch())); in VisitReturnI()
487 auto arch = enc->cg_->GetGraph()->GetArch(); in VisitFillConstArray()
490 auto offset = runtime->GetArrayDataOffset(enc->GetCodegen()->GetArch()); in VisitFillConstArray()
503 encoder->EncodeLdr(methodReg, false, MemRef(methodReg, runtime->GetBinaryFileBaseOffset(enc->GetArch()))); in VisitFillConstArray()
556 auto offset = enc->cg_->GetGraph()->GetRuntime()->GetArrayDataOffset(enc->GetCodegen()->GetArch()); in VisitStoreArray()
557 auto scale = DataType::ShiftByType(inst->GetType(), enc->GetCodegen()->GetArch()); in VisitStoreArray()
[all...]
H A Dscoped_tmp_reg.h41 reg_ = encoder->AcquireScratchRegister(Is64BitsArch(encoder->GetArch()) ? INT64_TYPE : INT32_TYPE); in ScopedTmpRegImpl()
108 reg_ = encoder_->AcquireScratchRegister(Is64BitsArch(encoder_->GetArch()) ? INT64_TYPE : INT32_TYPE); in Acquire()
120 reg_ = encoder_->AcquireScratchRegister(Is64BitsArch(encoder_->GetArch()) ? INT64_TYPE : INT32_TYPE); in AcquireWithLr()
128 reg_ = encoder_->AcquireScratchRegister(Is64BitsArch(encoder_->GetArch()) ? INT64_TYPE : INT32_TYPE); in AcquireIfInvalid()
H A Dmethod_properties.cpp46 if (Codegen::InstEncodedWithLibCall(inst, graph->GetArch())) { in MethodProperties()
73 SetCompactPrologueAllowed(graph->GetArch() == Arch::AARCH64 && !graph->IsOsrMode() && in MethodProperties()
H A Dspill_fill_encoder.h42 return graph->GetArch() == Arch::AARCH64 && g_options.IsCompilerSpillFillPair(); in IsCombiningEnabled()
47 if (graph_->GetArch() == Arch::AARCH32) { in GetDstReg()
H A Dspill_fill_encoder.cpp57 if (!DataType::Is64Bits(pred.GetCommonType(), graph->GetArch())) { in CanCombineSpillFills()
175 auto storeSize = Codegen::ConvertDataType(sfType, codegen_->GetArch()).GetSize() / BYTE_SIZE; in EncodeImmWithCorrectType()
210 auto dstReg = GetDstReg(sf.GetDst(), Codegen::ConvertDataType(type, codegen_->GetArch())); in EncodeImmToX()
241 srcReg = srcReg.As(Codegen::ConvertDataType(DataType::REFERENCE, codegen_->GetArch())); in EncodeRegisterToX()
266 auto typeInfo = Codegen::ConvertDataType(sf.GetType(), codegen_->GetArch()); in EncodeStackToX()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Daot_data.cpp22 return -(static_cast<size_t>(RuntimeInterface::IntrinsicId::COUNT) * PointerSize(graph_->GetArch())); in GetEpTableOffset()
31 return offset - (codeAddress_ + pc + CodeInfo::GetCodeOffset(graph_->GetArch())); in GetSharedSlowPathOffset()
36 slowPathData_->SetSharedSlowPathOffset(id, codeAddress_ + pc + CodeInfo::GetCodeOffset(graph_->GetArch())); in SetSharedSlowPathOffset()
44 offset += slotId * static_cast<intptr_t>(PointerSize(graph_->GetArch())); in GetEntrypointOffset()
48 offset -= static_cast<intptr_t>(CodeInfo::GetCodeOffset(graph_->GetArch())); in GetEntrypointOffset()
H A Dgraph.cpp461 encoder_ = Encoder::Create(GetAllocator(), GetArch(), g_options.IsCompilerEmitAsm(), IsDynamicMethod()); in GetEncoder()
473 registers_ = RegistersDescription::Create(GetAllocator(), GetArch()); in GetRegisters()
488 callconv_ = CallingConvention::Create(GetAllocator(), encoder_, GetRegisters(), GetArch(), in GetCallingConvention()
543 auto tempMask = Target(GetArch()).GetTempRegsMask(); in GetArchTempReg()
672 auto param = paramInfo_->GetNativeParam(Codegen::ConvertDataType(type, GetArch())); in GetDataForNativeParam()
692 } else if (DataType::Is32Bits(type, GetArch())) { in GetDataForNativeParam()
872 return graph->GetRuntime()->GetPropertyBoxOffset(graph->GetArch()); in GetObjectOffset()
874 return graph->GetRuntime()->GetElementsOffset(graph->GetArch()); in GetObjectOffset()
876 return graph->GetRuntime()->GetPropertiesOffset(graph->GetArch()); in GetObjectOffset()
878 return graph->GetRuntime()->GetPrototypeHolderOffset(graph->GetArch()); in GetObjectOffset()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/
H A Dasm_printer.cpp30 : Encoder(aa, enc->GetArch()), enc_(enc) in AssemblyPrinter()
53 : Encoder(aa, enc->GetArch()), enc_(enc) in AssemblyPrinter()
75 : Encoder(aa, enc->GetArch()), enc_(enc) in AssemblyPrinter()
/arkcompiler/runtime_core/static_core/compiler/tests/codegen/
H A Dcodegen_test_2.cpp130 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
152 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
174 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
196 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
218 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
239 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
260 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
281 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
302 if (GetGraph()->GetArch() != Arch::AARCH64) { in TEST_F()
341 if (GetGraph()->GetArch() ! in TEST_F()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_alloc_base.cpp196 if (GetGraph()->GetArch() != Arch::AARCH32 || !mask.IsSet(sf.SrcValue())) { in SetPreassignedRegisters()
242 if (GetGraph()->GetArch() == Arch::AARCH32) { in ReserveTempRegisters()
255 if (GetGraph()->GetArch() != Arch::NONE) { in GetTotalSlotsCount()
256 langExtSlots = GetGraph()->GetRuntime()->GetLanguageExtensionSize(GetGraph()->GetArch()) / in GetTotalSlotsCount()
257 PointerSize(GetGraph()->GetArch()); in GetTotalSlotsCount()
293 COMPILER_LOG(DEBUG, REGALLOC) << interval->GetLocation().ToString(graph->GetArch()) in TryToSpillConstant()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dcg_phasemanager.cpp76 CHECK_FATAL(Triple::GetTriple().GetArch() != Triple::ArchType::UnknownArch, "should have triple init before!"); in GenerateOutPutFile()
78 if (Triple::GetTriple().GetArch() == Triple::ArchType::x64) { in GenerateOutPutFile()
85 } else if (Triple::GetTriple().GetArch() == Triple::ArchType::aarch64) { in GenerateOutPutFile()
115 if (Triple::GetTriple().GetArch() == Triple::ArchType::x64) { in PostOutPut()
123 } else if (Triple::GetTriple().GetArch() == Triple::ArchType::aarch64) { in PostOutPut()
151 } else if (Triple::GetTriple().GetArch() == Triple::ArchType::x64) { in PhaseRun()
265 if (Triple::GetTriple().GetArch() == Triple::ArchType::x64) { in CreateCGAndBeCommon()
274 } else if (Triple::GetTriple().GetArch() == Triple::ArchType::aarch64) { in CreateCGAndBeCommon()
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/
H A Dcodegen_intrinsics_ets.cpp131 enc->EncodeLdr(klass, false, MemRef(cg->ThreadReg(), runtime->GetArrayU16ClassPointerTlsOffset(cg->GetArch()))); in GenerateSbAppendCall()
143 auto type = ConvertDataType(DataType::INT64, GetArch()); in CreateStringBuilderAppendNumber()
182 auto slotMemRef = MemRef(slot.As(Codegen::ConvertDataType(DataType::REFERENCE, cg->GetArch()))); in EncodeSbInsertStringIntoSlot()
214 enc->EncodeShl(reg1, reg2, Imm(compiler::DataType::ShiftByType(compiler::DataType::REFERENCE, cg->GetArch()))); in EncodeSbAppendString()
255 ASSERT(GetArch() != Arch::AARCH32); in CreateStringBuilderAppendString()
393 ASSERT(GetArch() != Arch::AARCH32); in CreateStringBuilderToString()
401 enc->EncodeLdr(klass, false, MemRef(ThreadReg(), GetRuntime()->GetStringClassPointerTlsOffset(GetArch()))); in CreateStringBuilderToString()
412 ASSERT(GetArch() != Arch::AARCH32); in CreateDoubleToStringDecimal()
424 ASSERT(GetArch() != Arch::AARCH32); in CreateCharIsWhiteSpace()
483 MemRef(ThreadReg(), runtime->GetArrayU8ClassPointerTlsOffset(GetArch()))); in CreateStringGetBytesTlab()
[all...]
/arkcompiler/runtime_core/static_core/irtoc/backend/
H A Dfunction.h105 return PointerSize(GetArch()); in WordSize()
177 return GetArch() != Arch::AARCH32 ? argsCount_ : 0U; in GetArgsCount()
208 Arch GetArch() const in GetArch() function in ark::irtoc::Function
210 return GetGraph()->GetArch(); in GetArch()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dreg_alloc_resolver_test.cpp61 Target target(GetGraph()->GetArch()); in ResolveFixedInputsRunLiveness()
113 Target target(GetGraph()->GetArch()); in TEST_F()
148 f << sf_data::ToString(esf, GetGraph()->GetArch()) << ", "; in TEST_F()
150 ASSERT_TRUE(found) << "Spill fill " << sf_data::ToString(expSf, GetGraph()->GetArch()) << " not found among " in TEST_F()
/arkcompiler/runtime_core/compiler/tests/
H A Dreg_alloc_common_test.cpp101 auto arch = check_graph->GetArch(); in TestParametersLocations()
105 if (Arch::AARCH64 == check_graph->GetArch()) { in TestParametersLocations()
113 } else if (Arch::AARCH32 == check_graph->GetArch()) { in TestParametersLocations()
173 if (graph->GetArch() == Arch::AARCH32) { in TEST_F()
255 auto reg = Target(check_graph->GetArch()).GetParamRegId(1); in TEST_F()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dcframe_layout.h120 return GetCalleeRegsStartSlot() + ::panda::GetCalleeRegsCount(GetArch(), false); in GetCalleeFpRegsStartSlot()
125 return GetCalleeFpRegsStartSlot() + ::panda::GetCalleeRegsCount(GetArch(), true); in GetCallerRegsStartSlot()
130 return GetCallerRegsStartSlot() + ::panda::GetCallerRegsCount(GetArch(), false); in GetCallerFpRegsStartSlot()
135 return GetCallerFpRegsStartSlot() + ::panda::GetCallerRegsCount(GetArch(), true); in GetSpillsStartSlot()
144 constexpr Arch GetArch() const in GetArch() function in panda::CFrameLayout::FrameKind
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dcframe_layout.h117 return GetCalleeRegsStartSlot() + ::ark::GetCalleeRegsCount(GetArch(), false); in GetCalleeFpRegsStartSlot()
122 return GetCalleeFpRegsStartSlot() + ::ark::GetCalleeRegsCount(GetArch(), true); in GetCallerRegsStartSlot()
127 return GetCallerRegsStartSlot() + ::ark::GetCallerRegsCount(GetArch(), false); in GetCallerFpRegsStartSlot()
132 return GetCallerFpRegsStartSlot() + ::ark::GetCallerRegsCount(GetArch(), true); in GetSpillsStartSlot()
141 constexpr Arch GetArch() const in GetArch() function in ark::CFrameLayout::FrameKind
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dadjust_arefs.cpp172 auto off = GetGraph()->GetRuntime()->GetArrayDataOffset(GetGraph()->GetArch()); in ProcessChain()
177 auto scale = DataType::ShiftByType(inst->GetType(), GetGraph()->GetArch()); in ProcessChain()
186 uint32_t size = DataType::GetTypeSize(DataType::POINTER, GetGraph()->GetArch()); in InsertPointerArithmetic()
245 auto scale = DataType::ShiftByType(mem->GetType(), GetGraph()->GetArch()); in ProcessIndex()
246 uint64_t off = GetGraph()->GetRuntime()->GetArrayDataOffset(GetGraph()->GetArch()); in ProcessIndex()

Completed in 21 milliseconds

12345