Lines Matching refs:key

89   explicit PredicateBase(KeyT &&key)  in PredicateBase()  argument
90 : BaseT(Kind), key(std::forward<KeyT>(key)) {} in PredicateBase()
101 KeyT &&key) { in construct() argument
102 return new (alloc.allocate<ConcreteT>()) ConcreteT(std::forward<KeyT>(key)); in construct()
106 bool operator==(const KeyTy &key) const { return this->key == key; }
110 const KeyTy &getValue() const { return key; } in getValue()
113 KeyTy key;
174 explicit AttributePosition(const KeyTy &key);
177 StringAttr getName() const { return key.second; } in getName()
197 explicit ForEachPosition(const KeyTy &key) : Base(key) { parent = key.first; } in ForEachPosition()
201 unsigned getID() const { return key.second; } in getID()
212 explicit OperandPosition(const KeyTy &key);
215 unsigned getOperandNumber() const { return key.second; } in getOperandNumber()
227 explicit OperandGroupPosition(const KeyTy &key);
230 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
231 return llvm::hash_value(key); in hashKey()
236 Optional<unsigned> getOperandGroupNumber() const { return std::get<1>(key); } in getOperandGroupNumber()
240 bool isVariadic() const { return std::get<2>(key); } in isVariadic()
251 explicit OperationPosition(const KeyTy &key) : Base(key) { in OperationPosition()
252 parent = key.first; in OperationPosition()
256 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
257 return llvm::hash_value(key); in hashKey()
271 unsigned getDepth() const { return key.second; } in getDepth()
288 explicit ResultPosition(const KeyTy &key) : Base(key) { parent = key.first; } in ResultPosition()
291 unsigned getResultNumber() const { return key.second; } in getResultNumber()
303 explicit ResultGroupPosition(const KeyTy &key) : Base(key) { in ResultGroupPosition()
304 parent = std::get<0>(key); in ResultGroupPosition()
308 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
309 return llvm::hash_value(key); in hashKey()
314 Optional<unsigned> getResultGroupNumber() const { return std::get<1>(key); } in getResultGroupNumber()
318 bool isVariadic() const { return std::get<2>(key); } in isVariadic()
328 explicit TypePosition(const KeyTy &key) : Base(key) { in TypePosition()
330 ResultPosition, ResultGroupPosition>(key)) && in TypePosition()
332 parent = key; in TypePosition()
356 explicit UsersPosition(const KeyTy &key) : Base(key) { parent = key.first; } in UsersPosition()
359 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
360 return llvm::hash_value(key); in hashKey()
364 bool useRepresentative() const { return key.second; } in useRepresentative()
454 StringRef getName() const { return std::get<0>(key); } in getName()
457 ArrayRef<Position *> getArgs() const { return std::get<1>(key); } in getArgs()
461 KeyTy key) { in construct()
462 return Base::construct(alloc, KeyTy{alloc.copyInto(std::get<0>(key)), in construct()
463 alloc.copyInto(std::get<1>(key))}); in construct()