Lines Matching refs:OM
57 static void orderValue(const Value *V, OrderMap &OM) { in orderValue() argument
58 if (OM.lookup(V).first) in orderValue()
65 orderValue(Op, OM); in orderValue()
69 OM.index(V); in orderValue()
75 OrderMap OM; in orderModule() local
85 orderValue(G.getInitializer(), OM); in orderModule()
88 orderValue(A.getAliasee(), OM); in orderModule()
91 orderValue(I.getResolver(), OM); in orderModule()
95 orderValue(U.get(), OM); in orderModule()
97 OM.LastGlobalConstantID = OM.size(); in orderModule()
108 orderValue(&F, OM); in orderModule()
110 orderValue(&A, OM); in orderModule()
112 orderValue(&I, OM); in orderModule()
114 orderValue(&G, OM); in orderModule()
115 OM.LastGlobalValueID = OM.size(); in orderModule()
124 orderValue(&BB, OM); in orderModule()
126 orderValue(&A, OM); in orderModule()
132 orderValue(Op, OM); in orderModule()
135 orderValue(&I, OM); in orderModule()
137 return OM; in orderModule()
141 unsigned ID, const OrderMap &OM, in predictValueUseListOrderImpl() argument
148 if (OM.lookup(U.getUser()).first) in predictValueUseListOrderImpl()
155 bool IsGlobalValue = OM.isGlobalValue(ID); in predictValueUseListOrderImpl()
162 auto LID = OM.lookup(LU->getUser()).first; in predictValueUseListOrderImpl()
163 auto RID = OM.lookup(RU->getUser()).first; in predictValueUseListOrderImpl()
171 if (OM.isGlobalValue(LID) && OM.isGlobalValue(RID)) in predictValueUseListOrderImpl()
210 OrderMap &OM, UseListOrderStack &Stack) { in predictValueUseListOrder() argument
211 auto &IDPair = OM[V]; in predictValueUseListOrder()
220 predictValueUseListOrderImpl(V, F, IDPair.first, OM, Stack); in predictValueUseListOrder()
227 predictValueUseListOrder(Op, F, OM, Stack); in predictValueUseListOrder()
231 OrderMap OM = orderModule(M); in predictUseListOrder() local
248 predictValueUseListOrder(&BB, &F, OM, Stack); in predictUseListOrder()
250 predictValueUseListOrder(&A, &F, OM, Stack); in predictUseListOrder()
255 predictValueUseListOrder(Op, &F, OM, Stack); in predictUseListOrder()
258 predictValueUseListOrder(&I, &F, OM, Stack); in predictUseListOrder()
264 predictValueUseListOrder(&G, nullptr, OM, Stack); in predictUseListOrder()
266 predictValueUseListOrder(&F, nullptr, OM, Stack); in predictUseListOrder()
268 predictValueUseListOrder(&A, nullptr, OM, Stack); in predictUseListOrder()
270 predictValueUseListOrder(&I, nullptr, OM, Stack); in predictUseListOrder()
273 predictValueUseListOrder(G.getInitializer(), nullptr, OM, Stack); in predictUseListOrder()
275 predictValueUseListOrder(A.getAliasee(), nullptr, OM, Stack); in predictUseListOrder()
277 predictValueUseListOrder(I.getResolver(), nullptr, OM, Stack); in predictUseListOrder()
280 predictValueUseListOrder(U.get(), nullptr, OM, Stack); in predictUseListOrder()