Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 105) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/compiler/tests/
Dlive_registers_test.cpp33 auto alloc = GetGraph()->GetAllocator(); in TEST_F() local
34 auto intervals = ArenaVector<LifeIntervals *>(alloc->Adapter()); in TEST_F()
35 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(0U, 42… in TEST_F()
41 auto alloc = GetGraph()->GetAllocator(); in TEST_F() local
42 auto intervals = ArenaVector<LifeIntervals *>(alloc->Adapter()); in TEST_F()
43 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(0U, 10… in TEST_F()
44 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(0U, 2U… in TEST_F()
45 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(2U, 3U… in TEST_F()
46 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(5U, 6U… in TEST_F()
47 …intervals.push_back(alloc->New<LifeIntervals>(alloc, GetGraph()->CreateInstAdd(), LiveRange(6U, 8U… in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dstack_like_allocator_test.cpp90 StackLikeAllocator<> alloc; in TEST_F() local
93 array[i] = alloc.Alloc(FRAME_SIZE); in TEST_F()
99 alloc.Free(array[i]); in TEST_F()
104 void AlignmentTest(StackLikeAllocator<ALIGNMENT> &alloc) in AlignmentTest() argument
109 array[i] = alloc.Alloc(i * GetAlignmentInBytes(ALIGNMENT)); in AlignmentTest()
122 alloc.Free(array[i]); in AlignmentTest()
128 StackLikeAllocator<> alloc; in TEST_F() local
129 AlignmentTest(alloc); in TEST_F()
146 StackLikeAllocator<> alloc; in TEST_F() local
151 void *mem = alloc.Alloc(FRAME_SIZE); in TEST_F()
[all …]
Dframe_allocator_test.cpp53 FrameAllocator<> alloc(useMalloc); in SmallAllocateTest() local
56 array[i] = alloc.Alloc(FRAME_SIZE); in SmallAllocateTest()
62 alloc.Free(array[i]); in SmallAllocateTest()
106 FrameAllocator<ALIGNMENT> alloc(useMalloc); in AlignmentTest() local
110 array[i] = alloc.Alloc(i * GetAlignmentInBytes(ALIGNMENT)); in AlignmentTest()
123 alloc.Free(array[i]); in AlignmentTest()
133 FrameAllocator<> alloc(useMalloc); in CycledAllocateFreeForHugeFramesTest() local
138 void *mem = alloc.Alloc(FRAME_SIZE); in CycledAllocateFreeForHugeFramesTest()
148 alloc.Free(lastPair.first); in CycledAllocateFreeForHugeFramesTest()
157 alloc.Free(lastPair.first); in CycledAllocateFreeForHugeFramesTest()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dschedule.h30 RegPressureSchedule(CGFunc &func, MapleAllocator &alloc) in RegPressureSchedule() argument
32 liveReg(alloc.Adapter()), in RegPressureSchedule()
33 scheduledNode(alloc.Adapter()), in RegPressureSchedule()
34 originalNodeSeries(alloc.Adapter()), in RegPressureSchedule()
35 readyList(alloc.Adapter()), in RegPressureSchedule()
36 partialList(alloc.Adapter()), in RegPressureSchedule()
37 partialSet(alloc.Adapter()), in RegPressureSchedule()
38 partialScheduledNode(alloc.Adapter()), in RegPressureSchedule()
39 optimisticScheduledNodes(alloc.Adapter()), in RegPressureSchedule()
40 splitterIndexes(alloc.Adapter()), in RegPressureSchedule()
[all …]
Dlive.h29 …: AnalysisResult(&memPool), cgFunc(&func), memPool(&memPool), alloc(&memPool), stackMp(func.GetSta… in LiveAnalysis()
60 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewLiveIn()
65 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewLiveOut()
70 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewDef()
75 return memPool->New<SparseDataInfo>(def, alloc); in NewDef()
80 return memPool->New<SparseDataInfo>(maxRegCount, alloc); in NewUse()
85 return memPool->New<SparseDataInfo>(use, alloc); in NewUse()
97 MapleAllocator alloc; variable
Dsparse_datainfo.h33 …SparseDataInfo(uint32 bitNum, const MapleAllocator &alloc) : allocator(alloc), info(allocator), ma… in SparseDataInfo() argument
35 SparseDataInfo(const SparseDataInfo &other, const MapleAllocator &alloc) in SparseDataInfo() argument
36 : allocator(alloc), in SparseDataInfo()
49 SparseDataInfo &Clone(MapleAllocator &alloc) const in Clone() argument
51 auto *dataInfo = alloc.New<SparseDataInfo>(*this, alloc); in Clone()
Dreg_alloc_basic.h28 calleeSaveUsed(alloc.Adapter()), in DefaultO0RegAllocator()
29 availRegSet(alloc.Adapter()), in DefaultO0RegAllocator()
30 regMap(std::less<uint32>(), alloc.Adapter()), in DefaultO0RegAllocator()
31 liveReg(std::less<uint8>(), alloc.Adapter()), in DefaultO0RegAllocator()
32 allocatedSet(std::less<Operand *>(), alloc.Adapter()), in DefaultO0RegAllocator()
33 regLiveness(alloc.Adapter()), in DefaultO0RegAllocator()
34 rememberRegs(alloc.Adapter()) in DefaultO0RegAllocator()
Dstackmap.h46 …DeoptInfo(MapleAllocator &alloc) : deoptVreg2Opnd(alloc.Adapter()), deoptVreg2LocationInfo(alloc.A… in DeoptInfo() argument
107 ReferenceMap(MapleAllocator &alloc) : referenceLocations(alloc.Adapter()) {} in ReferenceMap() argument
151 StackMap(MapleAllocator &alloc) : deoptInfo(alloc), referenceMap(alloc) {} in StackMap() argument
Dreg_alloc_lsra.h91 alloc(&memPool), in LiveInterval()
92 ranges(alloc.Adapter()), in LiveInterval()
93 usePositions(alloc.Adapter()), in LiveInterval()
94 noReloadPos(alloc.Adapter()) {} in LiveInterval()
539 MapleAllocator alloc; variable
697 liveIntervalsArray(alloc.Adapter()), in LSRALinearScanRegAllocator()
698 initialQue(alloc.Adapter()), in LSRALinearScanRegAllocator()
699 intParamQueue(alloc.Adapter()), in LSRALinearScanRegAllocator()
700 fpParamQueue(alloc.Adapter()), in LSRALinearScanRegAllocator()
701 callQueue(alloc.Adapter()), in LSRALinearScanRegAllocator()
[all …]
Ddeps.h94 DepNode(Insn &insn, MapleAllocator &alloc) in DepNode() argument
110 preds(alloc.Adapter()), in DepNode()
111 succs(alloc.Adapter()), in DepNode()
112 comments(alloc.Adapter()), in DepNode()
113 cfiInsns(alloc.Adapter()), in DepNode()
114 clinitInsns(alloc.Adapter()), in DepNode()
116 useRegnos(alloc.Adapter()), in DepNode()
117 defRegnos(alloc.Adapter()), in DepNode()
122 DepNode(Insn &insn, MapleAllocator &alloc, Unit *const *unit, uint32 num, Reservation &rev) in DepNode() argument
138 preds(alloc.Adapter()), in DepNode()
[all …]
Dcg_critical_edge.h25 …CriticalEdge(CGFunc &func, MemPool &mem) : cgFunc(&func), alloc(&mem), criticalEdges(alloc.Adapter… in CriticalEdge()
34 MapleAllocator alloc; variable
Dcg_ssu_pre.h36 explicit SPreWorkCand(MapleAllocator *alloc) in SPreWorkCand() argument
37 : occBBs(alloc->Adapter()), in SPreWorkCand()
38 saveBBs(alloc->Adapter()), in SPreWorkCand()
39 restoreAtEntryBBs(alloc->Adapter()), in SPreWorkCand()
40 restoreAtExitBBs(alloc->Adapter()) in SPreWorkCand()
114 SLambdaOcc(BB *bb, MapleAllocator &alloc) : SOcc(kSOccLambda, bb), lambdaRes(alloc.Adapter()) {} in SLambdaOcc() argument
Dpressure.h32 explicit RegPressure(MapleAllocator &alloc) in RegPressure() argument
33 …: regUses(alloc.Adapter()), regDefs(alloc.Adapter()), pressure(alloc.Adapter()), deadDefNum(alloc.… in RegPressure()
Dobj_emit.h140 alloc(&memPool), in ObjFuncEmitInfo()
141 localFixups(alloc.Adapter()), in ObjFuncEmitInfo()
142 globalFixups(alloc.Adapter()), in ObjFuncEmitInfo()
143 relocations(alloc.Adapter()), in ObjFuncEmitInfo()
144 textData(alloc.Adapter()), in ObjFuncEmitInfo()
145 label2Order(alloc.Adapter()), in ObjFuncEmitInfo()
146 switchTableOffset(alloc.Adapter()), in ObjFuncEmitInfo()
147 offset2StackMapInfo(alloc.Adapter()), in ObjFuncEmitInfo()
341 MapleAllocator alloc; variable
360 … : Emitter(cg, objFileName), alloc(memPool), sections(alloc.Adapter()), contents(alloc.Adapter()) in ObjEmitter()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/
Dme_ir.h510 explicit MePhiNode(MapleAllocator *alloc) : opnds(kOperandNumBinary, nullptr, alloc->Adapter()) in MePhiNode() argument
516 MePhiNode(ScalarMeExpr *expr, MapleAllocator *alloc) in MePhiNode() argument
517 : lhs(expr), opnds(kOperandNumBinary, nullptr, alloc->Adapter()) in MePhiNode()
1135 IvarMeExpr(MapleAllocator *alloc, int32 exprid, PrimType t, TyIdx tidx, FieldID fid, Opcode op) in IvarMeExpr() argument
1136 …: MeExpr(exprid, kMeOpIvar, op, t, 1), tyIdx(tidx), fieldID(fid), muList(1, nullptr, alloc->Adapte… in IvarMeExpr()
1140 IvarMeExpr(MapleAllocator *alloc, int32 exprid, PrimType t, TyIdx tidx, FieldID fid) in IvarMeExpr() argument
1141 : IvarMeExpr(alloc, exprid, t, tidx, fid, OP_iread) in IvarMeExpr()
1145 IvarMeExpr(MapleAllocator *alloc, int32 exprid, const IvarMeExpr &ivarme) in IvarMeExpr() argument
1153 muList(ivarme.muList, alloc->Adapter()) in IvarMeExpr()
1965 DassignMeStmt(MapleAllocator *alloc, const StmtNode *stt) in DassignMeStmt() argument
[all …]
Dbb.h66 BB(MapleAllocator *alloc, MapleAllocator *versAlloc, BBId id) in BB() argument
68 pred(kBBVectorInitialSize, nullptr, alloc->Adapter()), in BB()
69 succ(kBBVectorInitialSize, nullptr, alloc->Adapter()), in BB()
70 succFreq(alloc->Adapter()), in BB()
72 mePhiList(alloc->Adapter()), in BB()
73 meVarPiList(alloc->Adapter()), in BB()
82 …BB(MapleAllocator *alloc, MapleAllocator *versAlloc, BBId id, StmtNode *firstStmt, StmtNode *lastS… in BB() argument
84 pred(kBBVectorInitialSize, nullptr, alloc->Adapter()), in BB()
85 succ(kBBVectorInitialSize, nullptr, alloc->Adapter()), in BB()
86 succFreq(alloc->Adapter()), in BB()
[all …]
Dssa_mir_nodes.h262 explicit MayDefPart(MapleAllocator *alloc) : mayDefNodes(alloc->Adapter()) {} in MayDefPart() argument
282 explicit MayUsePart(MapleAllocator *alloc) : mayUseNodes(alloc->Adapter()) {} in MayUsePart() argument
302 explicit MustDefPart(MapleAllocator *alloc) : mustDefNodes(alloc->Adapter()) {} in MustDefPart() argument
322 explicit MayDefPartWithVersionSt(MapleAllocator *alloc) : mayDefNodes(alloc->Adapter()) {} in MayDefPartWithVersionSt() argument
382 …explicit MayDefMayUsePart(MapleAllocator *alloc) : mayDefNodes(alloc->Adapter()), mayUseNodes(allo… in MayDefMayUsePart() argument
413 explicit MayDefMayUseMustDefPart(MapleAllocator *alloc) in MayDefMayUseMustDefPart() argument
414 … : mayDefNodes(alloc->Adapter()), mayUseNodes(alloc->Adapter()), mustDefNodes(alloc->Adapter()) in MayDefMayUseMustDefPart()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Dcg_irbuilder.cpp93 … return mp ? *mp->New<ImmOperand>(value, size, false) : *alloc.New<ImmOperand>(value, size, false); in CreateImm()
99 : *alloc.New<ImmOperand>(symbol, offset, relocs, false); in CreateImm()
104 return mp ? *mp->New<MemOperand>(size) : *alloc.New<MemOperand>(size); in CreateMem()
119 … return mp ? *mp->New<RegOperand>(vRegNO, size, type) : *alloc.New<RegOperand>(vRegNO, size, type); in CreateVReg()
124 … return mp ? *mp->New<RegOperand>(vRegNO, size, type) : *alloc.New<RegOperand>(vRegNO, size, type); in CreateVReg()
129 … return mp ? *mp->New<RegOperand>(pRegNO, size, type) : *alloc.New<RegOperand>(pRegNO, size, type); in CreatePReg()
134 return mp ? *mp->New<ListOperand>(alloc) : *alloc.New<ListOperand>(alloc); in CreateList()
139 return mp ? *mp->New<FuncNameOperand>(symbol) : *alloc.New<FuncNameOperand>(symbol); in CreateFuncNameOpnd()
144 return mp ? *mp->New<LabelOperand>(parent, idx) : *alloc.New<LabelOperand>(parent, idx); in CreateLabel()
149 return mp ? *mp->New<CommentOperand>(s, *mp) : *alloc.New<CommentOperand>(s, *mp); in CreateComment()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_regsaves.h32 explicit SavedRegInfo(MapleAllocator &alloc) in SavedRegInfo() argument
33 … : saveSet(alloc.Adapter()), restoreEntrySet(alloc.Adapter()), restoreExitSet(alloc.Adapter()) in SavedRegInfo()
104 explicit SavedBBInfo(MapleAllocator &alloc) : bbList(alloc.Adapter()) {} in SavedBBInfo() argument
131 bbSavedRegs(alloc.Adapter()), in AArch64RegSavesOpt()
132 regSavedBBs(alloc.Adapter()), in AArch64RegSavesOpt()
133 regOffset(alloc.Adapter()), in AArch64RegSavesOpt()
134 id2bb(alloc.Adapter()) in AArch64RegSavesOpt()
247 bbSavedRegs[bid] = memPool->New<SavedRegInfo>(alloc); in GetbbSavedRegsEntry()
/arkcompiler/runtime_core/libpandabase/tests/
Dalloc_tracker_test.cpp110 AllocInfo alloc; in TEST() local
112 out.read(reinterpret_cast<char *>(&alloc), sizeof(alloc)); in TEST()
115 ASSERT_EQ(DetailAllocTracker::ALLOC_TAG, alloc.tag); in TEST()
116 ASSERT_EQ(0, alloc.id); in TEST()
117 ASSERT_EQ(20, alloc.size); in TEST()
118 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), alloc.space); in TEST()
119 ASSERT_EQ(0, alloc.stacktrace_id); in TEST()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dalloc_tracker_test.cpp113 AllocInfo alloc; in TEST() local
115 out.read(reinterpret_cast<char *>(&alloc), sizeof(alloc)); in TEST()
118 ASSERT_EQ(DetailAllocTracker::ALLOC_TAG, alloc.tag); in TEST()
119 ASSERT_EQ(0U, alloc.id); in TEST()
120 ASSERT_EQ(20U, alloc.size); in TEST()
121 ASSERT_EQ(static_cast<uint32_t>(SpaceType::SPACE_TYPE_INTERNAL), alloc.space); in TEST()
122 ASSERT_EQ(0U, alloc.stacktraceId); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ipa/include/old/
Dea_connection_graph.h92 alloc(allocator), in mirModule()
227 MapleAllocator *alloc; variable
269 …: locInfo(nullptr), mirModule(m), alloc(a), kind(nk), meExpr(nullptr), eaStatus(kNoEscape), id(0),… in EACGBaseNode()
275 …: locInfo(nullptr), mirModule(m), alloc(a), kind(nk), meExpr(expr), eaStatus(initialEas), id(i), e… in EACGBaseNode()
398 MapleAllocator *alloc; variable
438 EACGPointerNode(MIRModule *md, MapleAllocator *alloc, EAConnectionGraph *ec) in EACGPointerNode() argument
439 : EACGBaseNode(md, alloc, kPointerNode, ec), indirectLevel(0) in EACGPointerNode()
443 …EACGPointerNode(MIRModule *md, MapleAllocator *alloc, EAConnectionGraph &ec, MeExpr *expr, EAStatu… in EACGPointerNode() argument
445 … : EACGBaseNode(md, alloc, kPointerNode, ec, expr, initialEas, i), indirectLevel(indirectL) {}; in EACGPointerNode()
512 EACGObjectNode(MIRModule *md, MapleAllocator *alloc, EAConnectionGraph *ec) in EACGObjectNode() argument
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dalloc_tracker.cpp109 AllocInfo *alloc = it->second; in TrackFree() local
114 new (cur_arena_.data()) FreeInfo(alloc->GetId()); in TrackFree()
166 auto alloc = reinterpret_cast<AllocInfo *>(ptr + pos); in Dump() local
167 Write(alloc->GetTag(), out); in Dump()
168 Write(alloc->GetId(), out); in Dump()
169 Write(alloc->GetSize(), out); in Dump()
170 Write(alloc->GetSpace(), out); in Dump()
171 Write(id_map[alloc->GetStacktraceId()], out); in Dump()
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Dalloc_tracker.cpp109 AllocInfo *alloc = it->second; in TrackFree() local
114 new (curArena_.data()) FreeInfo(alloc->GetId()); in TrackFree()
166 auto alloc = reinterpret_cast<AllocInfo *>(ptr + pos); in Dump() local
167 Write(alloc->GetTag(), out); in Dump()
168 Write(alloc->GetId(), out); in Dump()
169 Write(alloc->GetSize(), out); in Dump()
170 Write(alloc->GetSpace(), out); in Dump()
171 Write(idMap[alloc->GetStacktraceId()], out); in Dump()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dgcov_profile.h40 GcovFuncInfo(MapleAllocator *alloc, unsigned funcIdent, unsigned lineno_cs, unsigned cfg_cs) in GcovFuncInfo() argument
41 … : ident(funcIdent), lineno_checksum(lineno_cs), cfg_checksum(cfg_cs), counts(alloc->Adapter()) {}; in GcovFuncInfo()
112 GcovProfileData(MapleAllocator *alloc) : funcsCounter(alloc->Adapter()) {} in GcovProfileData() argument

12345