Lines Matching refs:Key
124 CVPLatticeVal ComputeLatticeVal(CVPLatticeKey Key) override { in ComputeLatticeVal() argument
125 switch (Key.getInt()) { in ComputeLatticeVal()
127 if (isa<Instruction>(Key.getPointer())) { in ComputeLatticeVal()
129 } else if (auto *A = dyn_cast<Argument>(Key.getPointer())) { in ComputeLatticeVal()
132 } else if (auto *C = dyn_cast<Constant>(Key.getPointer())) { in ComputeLatticeVal()
138 if (auto *GV = dyn_cast<GlobalVariable>(Key.getPointer())) { in ComputeLatticeVal()
141 } else if (auto *F = cast<Function>(Key.getPointer())) in ComputeLatticeVal()
204 void PrintLatticeKey(CVPLatticeKey Key, raw_ostream &OS) override { in PrintLatticeKey() argument
205 if (Key.getInt() == IPOGrouping::Register) in PrintLatticeKey()
207 else if (Key.getInt() == IPOGrouping::Memory) in PrintLatticeKey()
209 else if (Key.getInt() == IPOGrouping::Return) in PrintLatticeKey()
211 if (isa<Function>(Key.getPointer())) in PrintLatticeKey()
212 OS << Key.getPointer()->getName(); in PrintLatticeKey()
214 OS << *Key.getPointer(); in PrintLatticeKey()
361 static inline Value *getValueFromLatticeKey(CVPLatticeKey Key) { in getValueFromLatticeKey()
362 return Key.getPointer(); in getValueFromLatticeKey()