Home
last modified time | relevance | path

Searched defs:SimpleStorage (Results 1 – 1 of 1) sorted by relevance

/llvm-project/mlir/unittests/Support/
H A DStorageUniquerTest.cpp17 struct SimpleStorage : public StorageUniquer::BaseStorage { struct
18 using Base = SimpleStorage<ConcreteT, Args...>;
19 using KeyTy = std::tuple<Args...>;
21 SimpleStorage(KeyTy key) : key(key) {} in SimpleStorage() argument
25 static ConcreteT *get(StorageUniquer &uniquer, ParamsT &&...params) { in get()
31 static ConcreteT *construct(StorageUniquer::StorageAllocator &alloc, in construct()
36 bool operator==(const KeyTy &key) const { return this->key == key; } in operator ==()
38 KeyTy key;