Lines Matching refs:Key
122 CVPLatticeVal ComputeLatticeVal(CVPLatticeKey Key) override { in ComputeLatticeVal() argument
123 switch (Key.getInt()) { in ComputeLatticeVal()
125 if (isa<Instruction>(Key.getPointer())) { in ComputeLatticeVal()
127 } else if (auto *A = dyn_cast<Argument>(Key.getPointer())) { in ComputeLatticeVal()
130 } else if (auto *C = dyn_cast<Constant>(Key.getPointer())) { in ComputeLatticeVal()
136 if (auto *GV = dyn_cast<GlobalVariable>(Key.getPointer())) { in ComputeLatticeVal()
139 } else if (auto *F = cast<Function>(Key.getPointer())) in ComputeLatticeVal()
202 void PrintLatticeKey(CVPLatticeKey Key, raw_ostream &OS) override { in PrintLatticeKey() argument
203 if (Key.getInt() == IPOGrouping::Register) in PrintLatticeKey()
205 else if (Key.getInt() == IPOGrouping::Memory) in PrintLatticeKey()
207 else if (Key.getInt() == IPOGrouping::Return) in PrintLatticeKey()
209 if (isa<Function>(Key.getPointer())) in PrintLatticeKey()
210 OS << Key.getPointer()->getName(); in PrintLatticeKey()
212 OS << *Key.getPointer(); in PrintLatticeKey()
359 static inline Value *getValueFromLatticeKey(CVPLatticeKey Key) { in getValueFromLatticeKey()
360 return Key.getPointer(); in getValueFromLatticeKey()