Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/libs/binary_translation/backend/x86_64/
Dmachine_ir_check_test.cc33 Arena arena; in TEST() local
34 x86_64::MachineIR machine_ir(&arena); in TEST()
41 auto* bad_edge = NewInArena<MachineEdge>(&arena, &arena, bb1, bb2); in TEST()
42 auto* good_edge = NewInArena<MachineEdge>(&arena, &arena, bb2, bb1); in TEST()
50 Arena arena; in TEST() local
51 x86_64::MachineIR machine_ir(&arena); in TEST()
58 auto* bad_edge = NewInArena<MachineEdge>(&arena, &arena, bb2, bb1); in TEST()
59 auto* good_edge = NewInArena<MachineEdge>(&arena, &arena, bb1, bb2); in TEST()
67 Arena arena; in TEST() local
68 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dmachine_ir_analysis.cc35 : loop_(loop), is_bb_in_loop_(ir->NumBasicBlocks(), false, ir->arena()) { in LoopBuilder()
77 Arena* arena = ir->arena(); in CollectLoop() local
78 auto* loop = NewInArena<Loop>(arena, arena); in CollectLoop()
122 ArenaVector<bool> is_visited(ir->NumBasicBlocks(), false, ir->arena()); in GetReversePostOrderBBList()
123 MachineBasicBlockList rpo_list(ir->arena()); in GetReversePostOrderBBList()
129 Arena* arena = ir->arena(); in FindLoops() local
130 ArenaVector<bool> is_visited(ir->NumBasicBlocks(), false, arena); in FindLoops()
131 LoopVector loops_vector(arena); in FindLoops()
136 ArenaVector<MachineEdge*> back_edges(arena); in FindLoops()
157 auto empty_edge = MachineEdge(arena, nullptr, nullptr); in FindLoops()
[all …]
Dliveness_analyzer_test.cc66 Arena arena; in TEST() local
67 x86_64::MachineIR machine_ir(&arena); in TEST()
102 Arena arena; in TEST() local
103 x86_64::MachineIR machine_ir(&arena); in TEST()
121 Arena arena; in TEST() local
122 x86_64::MachineIR machine_ir(&arena); in TEST()
141 Arena arena; in TEST() local
142 x86_64::MachineIR machine_ir(&arena); in TEST()
160 Arena arena; in TEST() local
161 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dloop_guest_context_optimizer_test.cc36 Arena arena; in TEST() local
37 MachineIR machine_ir(&arena); in TEST()
48 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
61 Arena arena; in TEST() local
62 MachineIR machine_ir(&arena); in TEST()
73 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
86 Arena arena; in TEST() local
87 MachineIR machine_ir(&arena); in TEST()
100 MemRegMap mem_reg_map(sizeof(CPUState), std::nullopt, machine_ir.arena()); in TEST()
120 Arena arena; in TEST() local
[all …]
Dinsn_folding_test.cc37 Arena arena; in TryRegRegInsnFolding() local
38 MachineIR machine_ir(&arena); in TryRegRegInsnFolding()
58 DefMap def_map(machine_ir.NumVReg(), machine_ir.arena()); in TryRegRegInsnFolding()
85 Arena arena; in TryMovInsnFolding() local
86 MachineIR machine_ir(&arena); in TryMovInsnFolding()
105 DefMap def_map(machine_ir.NumVReg(), machine_ir.arena()); in TryMovInsnFolding()
133 Arena arena; in TEST() local
134 MachineIR machine_ir(&arena); in TEST()
153 DefMap def_map(machine_ir.NumVReg(), machine_ir.arena()); in TEST()
183 Arena arena; in TEST() local
[all …]
Drename_copy_uses_test.cc31 Arena arena; in TEST() local
32 x86_64::MachineIR machine_ir(&arena); in TEST()
65 Arena arena; in TEST() local
66 x86_64::MachineIR machine_ir(&arena); in TEST()
88 Arena arena; in TEST() local
89 x86_64::MachineIR machine_ir(&arena); in TEST()
113 Arena arena; in TEST() local
114 x86_64::MachineIR machine_ir(&arena); in TEST()
139 Arena arena; in TEST() local
140 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dmachine_ir_analysis_test.cc47 Arena arena; in TEST() local
48 x86_64::MachineIR machine_ir(&arena); in TEST()
79 Arena arena; in TEST() local
80 x86_64::MachineIR machine_ir(&arena); in TEST()
116 Arena arena; in TEST() local
117 x86_64::MachineIR machine_ir(&arena); in TEST()
156 Arena arena; in TEST() local
157 x86_64::MachineIR machine_ir(&arena); in TEST()
203 Arena arena; in TEST() local
204 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dmachine_ir_opt_test.cc35 Arena arena; in TEST() local
36 x86_64::MachineIR machine_ir(&arena); in TEST()
64 Arena arena; in TEST() local
65 x86_64::MachineIR machine_ir(&arena); in TEST()
94 Arena arena; in TEST() local
95 x86_64::MachineIR machine_ir(&arena); in TEST()
122 Arena arena; in TEST() local
123 x86_64::MachineIR machine_ir(&arena); in TEST()
153 Arena arena; in TEST() local
154 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Drename_vregs_local_test.cc30 Arena arena; in TEST() local
31 x86_64::MachineIR machine_ir(&arena); in TEST()
63 Arena arena; in TEST() local
64 x86_64::MachineIR machine_ir(&arena); in TEST()
98 Arena arena; in TEST() local
99 x86_64::MachineIR machine_ir(&arena); in TEST()
137 Arena arena; in TEST() local
138 x86_64::MachineIR machine_ir(&arena); in TEST()
178 Arena arena; in TEST() local
179 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Drename_vregs_test.cc32 Arena arena; in TEST() local
33 x86_64::MachineIR machine_ir(&arena); in TEST()
59 Arena arena; in TEST() local
60 x86_64::MachineIR machine_ir(&arena); in TEST()
96 Arena arena; in TEST() local
97 x86_64::MachineIR machine_ir(&arena); in TEST()
159 Arena arena; in TEST() local
160 x86_64::MachineIR machine_ir(&arena); in TEST()
202 Arena arena; in TEST() local
203 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dcontext_liveness_analyzer_test.cc53 Arena arena; in TEST() local
54 x86_64::MachineIR machine_ir(&arena); in TEST()
72 Arena arena; in TEST() local
73 x86_64::MachineIR machine_ir(&arena); in TEST()
99 Arena arena; in TEST() local
100 x86_64::MachineIR machine_ir(&arena); in TEST()
127 Arena arena; in TEST() local
128 x86_64::MachineIR machine_ir(&arena); in TEST()
Dlocal_guest_context_optimizer_test.cc33 Arena arena; in TEST() local
34 x86_64::MachineIR machine_ir(&arena); in TEST()
65 Arena arena; in TEST() local
66 x86_64::MachineIR machine_ir(&arena); in TEST()
95 Arena arena; in TEST() local
96 x86_64::MachineIR machine_ir(&arena); in TEST()
120 Arena arena; in TEST() local
121 x86_64::MachineIR machine_ir(&arena); in TEST()
Dmachine_ir_exec_test.cc58 &machine_code, machine_ir.FrameSize(), machine_ir.bb_list().size(), machine_ir.arena()); in Init()
123 Arena arena; in TEST() local
124 x86_64::MachineIR machine_ir(&arena); in TEST()
149 Arena arena; in TEST() local
150 x86_64::MachineIR machine_ir(&arena); in TEST()
173 Arena arena; in TEST() local
174 x86_64::MachineIR machine_ir(&arena); in TEST()
220 Arena arena; in TEST() local
221 x86_64::MachineIR machine_ir(&arena); in TEST()
262 Arena arena; in TEST() local
[all …]
Dmachine_ir_test.cc31 Arena arena; in TEST() local
32 x86_64::MachineIR machine_ir(&arena); in TEST()
57 Arena arena; in TEST() local
58 x86_64::MachineIR machine_ir(&arena); in TEST()
/frameworks/libs/binary_translation/base/include/berberis/base/
Darena_alloc.h124 T* NewInArena(Arena* arena, Args... args) { in NewInArena() argument
125 void* ptr = arena->Alloc(sizeof(T), alignof(T)); in NewInArena()
130 T* NewArrayInArena(Arena* arena, size_t size) { in NewArrayInArena() argument
131 void* ptr = arena->Alloc(sizeof(T) * size, alignof(T)); in NewArrayInArena()
142 ArenaAllocator(Arena* arena) : arena_(arena) {} // NOLINT(runtime/explicit) in ArenaAllocator() argument
145 ArenaAllocator(const ArenaAllocator<U>& other) : arena_(other.arena()) {} in ArenaAllocator()
149 return reinterpret_cast<T*>(arena()->Alloc(size, alignof(T))); in allocate()
154 bool operator==(const ArenaAllocator<T>& other) const { return arena() == other.arena(); }
156 bool operator!=(const ArenaAllocator<T>& other) const { return arena() != other.arena(); }
158 Arena* arena() const { return arena_; } in arena() function
Darena_zeroed_array.h34 ArenaZeroedArray(size_t size, Arena* arena) in ArenaZeroedArray() argument
35 : size_(size), array_(NewArrayInArena<T>(arena, size)) { in ArenaZeroedArray()
/frameworks/libs/binary_translation/base/
Darena_zeroed_array_test.cc27 Arena arena; in TEST() local
28 ArenaZeroedArray<int> array(3, &arena); in TEST()
54 Arena arena; in TEST() local
55 ArenaZeroedArray<int> array(3, &arena); in TEST()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dfrontend_tests.cc86 Arena arena; in TEST() local
87 x86_64::MachineIR machine_ir(&arena); in TEST()
125 Arena arena; in TEST() local
126 x86_64::MachineIR machine_ir(&arena); in TEST()
166 Arena arena; in TEST() local
167 x86_64::MachineIR machine_ir(&arena); in TEST()
179 Arena arena; in TEST() local
180 x86_64::MachineIR machine_ir(&arena); in TEST()
201 Arena arena; in TEST() local
202 x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dheavy_optimize_region.cc39 Arena arena; in HeavyOptimizeRegion() local
40 x86_64::MachineIR machine_ir(&arena); in HeavyOptimizeRegion()
/frameworks/libs/binary_translation/backend/include/berberis/backend/common/
Dlifetime.h101 VRegLiveRange(Arena* arena, int begin) : begin_(begin), end_(begin), use_list_(arena) {} in VRegLiveRange() argument
103 VRegLiveRange(Arena* arena, const VRegUse& use) in VRegLiveRange() argument
104 : begin_(use.begin()), end_(use.end()), use_list_(1, use, arena) {} in VRegLiveRange()
210 VRegLifetime(Arena* arena, int begin) in VRegLifetime() argument
211 : arena_(arena), in VRegLifetime()
212 range_list_(1, VRegLiveRange(arena, begin), arena), in VRegLifetime()
219 VRegLifetime(Arena* arena, const VRegUse& use) in VRegLifetime() argument
220 : arena_(arena), in VRegLifetime()
221 range_list_(1, VRegLiveRange(arena, use), arena), in VRegLifetime()
Dlifetime_analysis.h31 VRegLifetimeAnalysis(Arena* arena, int num_vreg, VRegLifetimeList* lifetimes) in VRegLifetimeAnalysis() argument
32 : arena_(arena), in VRegLifetimeAnalysis()
36 vreg_lifetimes_(num_vreg, nullptr, arena) {} in VRegLifetimeAnalysis()
Dmachine_ir.h294 MachineEdge(Arena* arena, MachineBasicBlock* src, MachineBasicBlock* dst) in MachineEdge() argument
295 : src_(src), dst_(dst), insn_list_(arena) {} in MachineEdge()
316 MachineBasicBlock(Arena* arena, uint32_t id) in MachineBasicBlock() argument
318 insn_list_(arena), in MachineBasicBlock()
319 in_edges_(arena), in MachineBasicBlock()
320 out_edges_(arena), in MachineBasicBlock()
321 live_in_(arena), in MachineBasicBlock()
322 live_out_(arena), in MachineBasicBlock()
364 MachineIR(Arena* arena, int num_vreg, uint32_t num_bb) in MachineIR() argument
366 arena_(arena), in MachineIR()
[all …]
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/
Drename_vregs.h33 ArenaVector<MachineReg>(machine_ir->NumVReg(), kInvalidMachineReg, machine_ir->arena()), in VRegMap()
34 machine_ir->arena()), in VRegMap()
35 max_size_(machine_ir->NumVReg(), 0, machine_ir->arena()) {} in VRegMap()
/frameworks/libs/binary_translation/backend/common/
Dreg_alloc.cc106 explicit HardRegAllocation(Arena* arena) in HardRegAllocation() argument
107 : arena_(arena), lifetimes_(arena), new_lifetime_(nullptr), spills_(arena) {} in HardRegAllocation()
273 HardRegAllocation(machine_ir->arena()), in VRegLifetimeAllocator()
274 machine_ir->arena()) {} in VRegLifetimeAllocator()
371 VRegLifetimeAnalysis lifetime_analysis(machine_ir->arena(), 2 * machine_ir->NumVReg(), lifetimes); in CollectLifetimes()
393 VRegLifetimeList lifetimes(machine_ir->arena()); in AllocRegs()
/frameworks/libs/binary_translation/kernel_api/
Dopen_emulation.cc106 ArenaVector<String> SplitLines(Arena* arena, const String& content) { in SplitLines() argument
107 ArenaVector<String> lines(arena); in SplitLines()
125 Arena arena; in OpenatProcSelfMapsForGuest() local
126 ArenaString file_data(&arena); in OpenatProcSelfMapsForGuest()
137 auto lines = SplitLines(&arena, file_data); in OpenatProcSelfMapsForGuest()
138 ArenaString guest_maps(&arena); in OpenatProcSelfMapsForGuest()

12