Searched defs:PointerTypeStorage (Results 1 – 2 of 2) sorted by relevance
446 struct spirv::detail::PointerTypeStorage : public TypeStorage { struct in spirv::detail449 using KeyTy = std::pair<Type, StorageClass>;451 static PointerTypeStorage *construct(TypeStorageAllocator &allocator, in construct()457 bool operator==(const KeyTy &key) const { in operator ==()461 PointerTypeStorage(const KeyTy &key) in PointerTypeStorage() function464 Type pointeeType;465 StorageClass storageClass;
658 struct PointerTypeStorage : public mlir::TypeStorage { struct659 using KeyTy = mlir::Type;661 static unsigned hashKey(const KeyTy &key) { return llvm::hash_combine(key); } in hashKey()663 bool operator==(const KeyTy &key) const { return key == getElementType(); } in operator ==()665 static PointerTypeStorage *construct(mlir::TypeStorageAllocator &allocator, in construct()672 mlir::Type getElementType() const { return eleTy; } in getElementType()675 mlir::Type eleTy;679 explicit PointerTypeStorage(mlir::Type eleTy) : eleTy{eleTy} {} in PointerTypeStorage() function