Home
last modified time | relevance | path

Searched refs:MachineIR (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/
Dloop_guest_context_optimizer.h42 void ReplaceGetAndUpdateMap(MachineIR* ir,
45 void ReplacePutAndUpdateMap(MachineIR* ir,
48 void GenerateGetInsns(MachineIR* ir, MachineBasicBlock* bb, const MemRegMap& mem_reg_map);
49 void GeneratePutInsns(MachineIR* ir, MachineBasicBlock* bb, const MemRegMap& mem_reg_map);
50 void GenerateGetsInPreloop(MachineIR* ir, const Loop* loop, const MemRegMap& mem_reg_map);
51 void GeneratePutsInPostloop(MachineIR* ir, const Loop* loop, const MemRegMap& mem_reg_map);
52 ArenaVector<int> CountGuestRegAccesses(const MachineIR* ir, const Loop* loop);
55 OffsetCounterMap GetSortedOffsetCounters(MachineIR* ir, Loop* loop);
62 void OptimizeLoop(MachineIR* machine_ir,
67 void RemoveLoopGuestContextAccesses(MachineIR* machine_ir);
Dmachine_ir_opt.h24 void RemoveDeadCode(MachineIR* machine_ir);
25 void RemoveCriticalEdges(MachineIR* machine_ir);
26 void RemoveRedundantPut(MachineIR* ir);
27 void RemoveForwarderBlocks(MachineIR* machine_ir);
28 void ReorderBasicBlocksInReversePostOrder(MachineIR* machine_ir);
Dmachine_ir_analysis.h32 LoopTreeNode(MachineIR* ir, Loop* loop = nullptr) : loop_(loop), innerloop_nodes_(ir->arena()) {} in loop_()
47 LoopTree(MachineIR* ir) : ir_(ir), root_(NewInArena<LoopTreeNode>(ir->arena(), ir)) {} in LoopTree()
62 MachineIR* ir_;
66 LoopVector FindLoops(MachineIR* ir);
67 LoopTree BuildLoopTree(MachineIR* ir);
69 MachineBasicBlockList GetReversePostOrderBBList(MachineIR* ir);
Dmachine_ir_test_corpus.h33 BuildDataFlowAcrossBasicBlocks(x86_64::MachineIR* machine_ir);
36 BuildDataFlowFromTwoPreds(x86_64::MachineIR* machine_ir);
39 BuildDataFlowToTwoSuccs(x86_64::MachineIR* machine_ir);
45 BuildDiamondControlFlow(x86_64::MachineIR* machine_ir);
52 BuildDataFlowAcrossEmptyLoop(x86_64::MachineIR* machine_ir);
Drename_vregs.h29 explicit VRegMap(MachineIR* machine_ir) in VRegMap()
45 MachineIR* machine_ir_;
50 void RenameVRegs(MachineIR* machine_ir);
Dinsn_folding.h65 explicit InsnFolding(DefMap& def_map, MachineIR* machine_ir) in InsnFolding()
72 MachineIR* machine_ir_;
81 void FoldInsns(MachineIR* machine_ir);
83 void FoldWriteFlags(MachineIR* machine_ir);
Dcontext_liveness_analyzer.h30 explicit ContextLivenessAnalyzer(const MachineIR* ir) in ContextLivenessAnalyzer()
41 const MachineIR* machine_ir_;
/frameworks/libs/binary_translation/backend/include/berberis/backend/common/
Dmachine_ir_opt.h22 class MachineIR; variable
24 void RemoveNopPseudoCopy(MachineIR* machine_ir);
25 void RemoveForwarderBlocks(MachineIR* machine_ir);
26 void MoveColdBlocksToEnd(MachineIR* machine_ir);
Dreg_alloc.h22 class MachineIR; variable
24 void AllocRegs(MachineIR* machine_ir);
/frameworks/libs/binary_translation/backend/x86_64/
Dmachine_ir_check_test.cc34 x86_64::MachineIR machine_ir(&arena); in TEST()
51 x86_64::MachineIR machine_ir(&arena); in TEST()
68 x86_64::MachineIR machine_ir(&arena); in TEST()
87 x86_64::MachineIR machine_ir(&arena); in TEST()
108 x86_64::MachineIR machine_ir(&arena); in TEST()
123 x86_64::MachineIR machine_ir(&arena); in TEST()
149 x86_64::MachineIR machine_ir1(&arena); in TEST()
153 x86_64::MachineIR machine_ir2(&arena); in TEST()
157 x86_64::MachineIR machine_ir3(&arena); in TEST()
161 x86_64::MachineIR machine_ir4(&arena); in TEST()
[all …]
Dmachine_ir_opt_test.cc36 x86_64::MachineIR machine_ir(&arena); in TEST()
65 x86_64::MachineIR machine_ir(&arena); in TEST()
95 x86_64::MachineIR machine_ir(&arena); in TEST()
123 x86_64::MachineIR machine_ir(&arena); in TEST()
154 x86_64::MachineIR machine_ir(&arena); in TEST()
178 x86_64::MachineIR machine_ir(&arena); in TEST()
209 x86_64::MachineIR machine_ir(&arena); in TEST()
226 x86_64::MachineIR machine_ir(&arena); in TEST()
260 TEST(MachineIR, RemoveCriticalEdge) { in TEST() argument
262 berberis::x86_64::MachineIR machine_ir(&arena); in TEST()
[all …]
Dloop_guest_context_optimizer.cc30 void ReplaceGetAndUpdateMap(MachineIR* ir, in ReplaceGetAndUpdateMap()
65 void ReplacePutAndUpdateMap(MachineIR* ir, in ReplacePutAndUpdateMap()
103 void GenerateGetInsns(MachineIR* ir, MachineBasicBlock* bb, const MemRegMap& mem_reg_map) { in GenerateGetInsns()
141 void GeneratePutInsns(MachineIR* ir, MachineBasicBlock* bb, const MemRegMap& mem_reg_map) { in GeneratePutInsns()
176 void GenerateGetsInPreloop(MachineIR* ir, const Loop* loop, const MemRegMap& mem_reg_map) { in GenerateGetsInPreloop()
189 void GeneratePutsInPostloop(MachineIR* ir, const Loop* loop, const MemRegMap& mem_reg_map) { in GeneratePutsInPostloop()
201 ArenaVector<int> CountGuestRegAccesses(const MachineIR* ir, const Loop* loop) { in CountGuestRegAccesses()
214 OffsetCounterMap GetSortedOffsetCounters(MachineIR* ir, Loop* loop) { in GetSortedOffsetCounters()
232 void OptimizeLoop(MachineIR* machine_ir, Loop* loop, const OptimizeLoopParams& params) { in OptimizeLoop()
290 void OptimizeLoopTree(MachineIR* machine_ir, LoopTreeNode* node, PredicateFunction predicate) { in OptimizeLoopTree()
[all …]
Dliveness_analyzer_test.cc67 x86_64::MachineIR machine_ir(&arena); in TEST()
103 x86_64::MachineIR machine_ir(&arena); in TEST()
122 x86_64::MachineIR machine_ir(&arena); in TEST()
142 x86_64::MachineIR machine_ir(&arena); in TEST()
161 x86_64::MachineIR machine_ir(&arena); in TEST()
182 x86_64::MachineIR machine_ir(&arena); in TEST()
196 x86_64::MachineIR machine_ir(&arena); in TEST()
210 x86_64::MachineIR machine_ir(&arena); in TEST()
224 x86_64::MachineIR machine_ir(&arena); in TEST()
Dmachine_ir_opt.cc37 RegUsageBitSet(const MachineIR* machine_ir) in RegUsageBitSet()
93 void RemoveDeadCode(MachineIR* machine_ir) { in RemoveDeadCode()
145 void InsertNodeOnEdge(MachineIR* ir, MachineEdge* edge, int in_edge_index) { in InsertNodeOnEdge()
164 void RemoveCriticalEdges(MachineIR* machine_ir) { in RemoveCriticalEdges()
206 void RemoveRedundantPut(MachineIR* ir) { in RemoveRedundantPut()
269 void RemoveForwarderBlocks(MachineIR* ir) { in RemoveForwarderBlocks()
282 void ReorderBasicBlocksInReversePostOrder(MachineIR* ir) { in ReorderBasicBlocksInReversePostOrder()
284 ir->set_bb_order(MachineIR::BasicBlockOrder::kReversePostOrder); in ReorderBasicBlocksInReversePostOrder()
Dmachine_ir_analysis.cc34 LoopBuilder(MachineIR* ir, Loop* loop, MachineBasicBlock* loop_head) in LoopBuilder()
76 Loop* CollectLoop(MachineIR* ir, const MachineEdgeVector& back_edges, size_t begin, size_t end) { in CollectLoop()
115 MachineBasicBlockList GetReversePostOrderBBList(MachineIR* ir) { in GetReversePostOrderBBList()
116 if (ir->bb_order() == MachineIR::BasicBlockOrder::kReversePostOrder) { in GetReversePostOrderBBList()
128 LoopVector FindLoops(MachineIR* ir) { in FindLoops()
194 LoopTree BuildLoopTree(MachineIR* ir) { in BuildLoopTree()
Drename_copy_uses_test.cc32 x86_64::MachineIR machine_ir(&arena); in TEST()
66 x86_64::MachineIR machine_ir(&arena); in TEST()
89 x86_64::MachineIR machine_ir(&arena); in TEST()
114 x86_64::MachineIR machine_ir(&arena); in TEST()
140 x86_64::MachineIR machine_ir(&arena); in TEST()
165 x86_64::MachineIR machine_ir(&arena); in TEST()
197 x86_64::MachineIR machine_ir(&arena); in TEST()
218 x86_64::MachineIR machine_ir(&arena); in TEST()
Dmachine_ir_check.cc30 bool CheckBasicBlockInIR(const MachineBasicBlock* bb, const MachineIR& machine_ir) { in CheckBasicBlockInIR()
35 MachineIRCheckStatus CheckNoDanglingEdgesOrBasicBlocks(const MachineIR& machine_ir, in CheckNoDanglingEdgesOrBasicBlocks()
115 MachineIRCheckStatus CheckCFG(const MachineIR& machine_ir) { in CheckCFG()
133 MachineIRCheckStatus CheckMachineIR(const MachineIR& machine_ir) { in CheckMachineIR()
Drename_vregs_local.cc53 MachineIR* machine_ir, in TryRenameRegOperand()
88 void RenameInsnListRegs(VRegMap& vreg_map, MachineInsnList& insn_list, MachineIR* machine_ir) { in RenameInsnListRegs()
109 MachineIR* machine_ir) { in RenameSuccessorsLiveIns()
125 void RenameVRegsLocal(MachineIR* machine_ir) { in RenameVRegsLocal()
Dinsn_folding_test.cc38 MachineIR machine_ir(&arena); in TryRegRegInsnFolding()
86 MachineIR machine_ir(&arena); in TryMovInsnFolding()
134 MachineIR machine_ir(&arena); in TEST()
184 MachineIR machine_ir(&arena); in TEST()
222 MachineIR machine_ir(&arena); in TEST()
260 MachineIR machine_ir(&arena); in TEST()
294 MachineIR machine_ir(&arena); in TEST()
384 MachineIR machine_ir(&arena); in TEST()
401 MachineIR machine_ir(&arena); in TEST()
433 MachineIR machine_ir(&arena); in TEST()
[all …]
Dlocal_guest_context_optimizer.cc29 explicit LocalGuestContextOptimizer(x86_64::MachineIR* machine_ir) in LocalGuestContextOptimizer()
44 MachineIR* machine_ir_;
95 void RemoveLocalGuestContextAccesses(x86_64::MachineIR* machine_ir) { in RemoveLocalGuestContextAccesses()
Drename_vregs_local_test.cc31 x86_64::MachineIR machine_ir(&arena); in TEST()
64 x86_64::MachineIR machine_ir(&arena); in TEST()
99 x86_64::MachineIR machine_ir(&arena); in TEST()
138 x86_64::MachineIR machine_ir(&arena); in TEST()
179 x86_64::MachineIR machine_ir(&arena); in TEST()
216 x86_64::MachineIR machine_ir(&arena); in TEST()
259 x86_64::MachineIR machine_ir(&arena); in TEST()
Dmachine_ir_test.cc30 TEST(MachineIR, SplitBasicBlock) { in TEST() argument
32 x86_64::MachineIR machine_ir(&arena); in TEST()
56 TEST(MachineIR, SplitBasicBlockWithOutcomingEdges) { in TEST() argument
58 x86_64::MachineIR machine_ir(&arena); in TEST()
Dloop_guest_context_optimizer_test.cc37 MachineIR machine_ir(&arena); in TEST()
62 MachineIR machine_ir(&arena); in TEST()
87 MachineIR machine_ir(&arena); in TEST()
121 MachineIR machine_ir(&arena); in TEST()
149 MachineIR machine_ir(&arena); in TEST()
177 MachineIR machine_ir(&arena); in TEST()
205 MachineIR machine_ir(&arena); in TEST()
233 MachineIR machine_ir(&arena); in TEST()
261 MachineIR machine_ir(&arena); in TEST()
286 MachineIR machine_ir(&arena); in TEST()
[all …]
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dfrontend_tests.cc58 MachineBasicBlock* FindEntryBasicBlock(const MachineIR* machine_ir) { in FindEntryBasicBlock()
67 const MachineBasicBlock* FindEntrySuccessor(const MachineIR* machine_ir) { in FindEntrySuccessor()
87 x86_64::MachineIR machine_ir(&arena); in TEST()
126 x86_64::MachineIR machine_ir(&arena); in TEST()
167 x86_64::MachineIR machine_ir(&arena); in TEST()
180 x86_64::MachineIR machine_ir(&arena); in TEST()
202 x86_64::MachineIR machine_ir(&arena); in TEST()
232 x86_64::MachineIR machine_ir(&arena); in TEST()
288 x86_64::MachineIR machine_ir(&arena); in TEST()
/frameworks/libs/binary_translation/backend/common/
Dmachine_ir_opt.cc29 void RemoveNopPseudoCopy(MachineIR* machine_ir) { in RemoveNopPseudoCopy()
41 void RemoveForwarderBlocks(MachineIR* machine_ir) { in RemoveForwarderBlocks()
136 void MoveColdBlocksToEnd(MachineIR* machine_ir) { in MoveColdBlocksToEnd()

123