Home
last modified time | relevance | path

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

/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVTypes.cpp446 struct spirv::detail::PointerTypeStorage : public TypeStorage { struct in spirv::detail
449 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() function
464 Type pointeeType;
465 StorageClass storageClass;
/external/llvm-project/flang/lib/Optimizer/Dialect/
DFIRType.cpp658 struct PointerTypeStorage : public mlir::TypeStorage { struct
659 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