Lines Matching defs:KnownConstants
131 if (KnownConstants.contains(&I))
151 static Constant *findConstantFor(Value *V, ConstMap &KnownConstants) {
154 return KnownConstants.lookup(V);
186 if (KnownConstants.contains(User))
190 LastVisited = Use ? KnownConstants.insert({Use, C}).first
191 : KnownConstants.end();
207 KnownConstants.insert({User, C});
231 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
256 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
297 if (Constant *C = findConstantFor(V, KnownConstants)) {
332 if (Constant *C = findConstantFor(V, KnownConstants)) {
372 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
389 Constant *C = findConstantFor(V, KnownConstants);
400 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
413 Constant *C = findConstantFor(V, KnownConstants);
424 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
431 Constant *C = findConstantFor(V, KnownConstants);
441 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
445 Constant *Other = findConstantFor(V, KnownConstants);
456 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
462 assert(LastVisited != KnownConstants.end() && "Invalid iterator!");
466 Constant *Other = findConstantFor(V, KnownConstants);