Lines Matching defs:OM

85 static void orderValue(const Value *V, OrderMap &OM) {
86 if (OM.lookup(V).first)
93 orderValue(Op, OM);
96 orderValue(CE->getShuffleMaskForBitcode(), OM);
102 OM.index(V);
108 OrderMap OM;
118 orderValue(G.getInitializer(), OM);
121 orderValue(A.getAliasee(), OM);
124 orderValue(I.getResolver(), OM);
128 orderValue(U.get(), OM);
136 auto orderConstantValue = [&OM](const Value *V) {
138 orderValue(V, OM);
158 OM.LastGlobalConstantID = OM.size();
169 orderValue(&F, OM);
171 orderValue(&A, OM);
173 orderValue(&I, OM);
175 orderValue(&G, OM);
176 OM.LastGlobalValueID = OM.size();
185 orderValue(&BB, OM);
187 orderValue(&A, OM);
193 orderValue(Op, OM);
195 orderValue(SVI->getShuffleMaskForBitcode(), OM);
199 orderValue(&I, OM);
201 return OM;
205 unsigned ID, const OrderMap &OM,
212 if (OM.lookup(U.getUser()).first)
219 bool IsGlobalValue = OM.isGlobalValue(ID);
226 auto LID = OM.lookup(LU->getUser()).first;
227 auto RID = OM.lookup(RU->getUser()).first;
235 if (OM.isGlobalValue(LID) && OM.isGlobalValue(RID)) {
275 OrderMap &OM, UseListOrderStack &Stack) {
276 auto &IDPair = OM[V];
285 predictValueUseListOrderImpl(V, F, IDPair.first, OM, Stack);
292 predictValueUseListOrder(Op, F, OM, Stack);
295 predictValueUseListOrder(CE->getShuffleMaskForBitcode(), F, OM,
302 OrderMap OM = orderModule(M);
318 predictValueUseListOrder(&BB, &F, OM, Stack);
320 predictValueUseListOrder(&A, &F, OM, Stack);
325 predictValueUseListOrder(Op, &F, OM, Stack);
327 predictValueUseListOrder(SVI->getShuffleMaskForBitcode(), &F, OM,
332 predictValueUseListOrder(&I, &F, OM, Stack);
338 predictValueUseListOrder(&G, nullptr, OM, Stack);
340 predictValueUseListOrder(&F, nullptr, OM, Stack);
342 predictValueUseListOrder(&A, nullptr, OM, Stack);
344 predictValueUseListOrder(&I, nullptr, OM, Stack);
347 predictValueUseListOrder(G.getInitializer(), nullptr, OM, Stack);
349 predictValueUseListOrder(A.getAliasee(), nullptr, OM, Stack);
351 predictValueUseListOrder(I.getResolver(), nullptr, OM, Stack);
354 predictValueUseListOrder(U.get(), nullptr, OM, Stack);