Home
last modified time | relevance | path

Searched refs:KeyTy (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DTypeDetail.h46 struct KeyTy { struct
77 AnyQuantizedTypeStorage(const KeyTy &key) in AnyQuantizedTypeStorage()
81 bool operator==(const KeyTy &key) const {
82 return KeyTy::genericIsEqual(*this, key);
96 struct KeyTy { struct
143 bool operator==(const KeyTy &key) const {
144 return KeyTy::genericIsEqual(*this, key);
161 struct KeyTy { struct
227 bool operator==(const KeyTy &key) const {
257 struct KeyTy { struct
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DAttributeDetail.h58 struct KeyTy { struct
77 bool operator==(const KeyTy &key) const {
103 return KeyTy(ty, data, 0); in getKey()
148 return KeyTy(ty, data.take_front(1), in getKeyForBoolData()
176 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
211 struct KeyTy { struct
230 bool operator==(const KeyTy &key) const {
247 return KeyTy(ty, data, 0); in getKey()
330 using KeyTy = std::pair<StringRef, Type>; member
331 bool operator==(const KeyTy &key) const {
[all …]
H A DAffineExprDetail.h35 using KeyTy = std::tuple<unsigned, AffineExpr, AffineExpr>; member
37 bool operator==(const KeyTy &key) const {
43 construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key) { in construct()
58 using KeyTy = std::pair<unsigned, unsigned>; member
60 bool operator==(const KeyTy &key) const {
66 construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key) { in construct()
79 using KeyTy = int64_t; member
81 bool operator==(const KeyTy &key) const { return constant == key; }
84 construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key) { in construct()
H A DTypeDetail.h34 using KeyTy = std::pair<unsigned, IntegerType::SignednessSemantics>; member
36 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
40 bool operator==(const KeyTy &key) const {
41 return KeyTy(width, signedness) == key;
45 KeyTy key) { in construct()
62 using KeyTy = std::pair<TypeRange, TypeRange>; member
63 bool operator==(const KeyTy &key) const {
71 const KeyTy &key) { in construct()
102 using KeyTy = TypeRange; member
120 bool operator==(const KeyTy &key) const { return key == getTypes(); }
H A DIntegerSetDetail.h25 using KeyTy = member
38 bool operator==(const KeyTy &key) const {
44 construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key) { in construct()
H A DAffineMapDetail.h29 using KeyTy = std::tuple<unsigned, unsigned, ArrayRef<AffineExpr>>; member
42 bool operator==(const KeyTy &key) const {
50 construct(StorageUniquer::StorageAllocator &allocator, const KeyTy &key) { in construct()
H A DExtensibleDialect.cpp99 using KeyTy = std::pair<DynamicTypeDefinition *, ArrayRef<Attribute>>; typedef
105 bool operator==(const KeyTy &key) const { in operator ==()
109 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
114 const KeyTy &key) { in construct()
216 using KeyTy = std::pair<DynamicAttrDefinition *, ArrayRef<Attribute>>; typedef
222 bool operator==(const KeyTy &key) const { in operator ==()
226 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
231 const KeyTy &key) { in construct()
/llvm-project-15.0.7/llvm/tools/dsymutil/
H A DBinaryHolder.h102 struct KeyTy { struct
106 KeyTy() {} in KeyTy() argument
107 KeyTy(StringRef Filename, TimestampTy Timestamp) in KeyTy() function
121 DenseMap<KeyTy, std::unique_ptr<ObjectEntry>> MemberCache;
148 template <> struct DenseMapInfo<dsymutil::BinaryHolder::ArchiveEntry::KeyTy> {
150 static inline dsymutil::BinaryHolder::ArchiveEntry::KeyTy getEmptyKey() {
151 return dsymutil::BinaryHolder::ArchiveEntry::KeyTy();
154 static inline dsymutil::BinaryHolder::ArchiveEntry::KeyTy getTombstoneKey() {
155 return dsymutil::BinaryHolder::ArchiveEntry::KeyTy("/", {});
159 getHashValue(const dsymutil::BinaryHolder::ArchiveEntry::KeyTy &K) {
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DTypeDetail.h147 using KeyTy = Key; member
200 LLVMStructTypeStorage(const KeyTy &key) { in LLVMStructTypeStorage()
331 using KeyTy = std::tuple<Type, ArrayRef<Type>, bool>; member
348 static unsigned hashKey(const KeyTy &key) { in hashKey()
354 bool operator==(const KeyTy &key) const {
388 using KeyTy = std::tuple<Type, unsigned>; member
390 LLVMPointerTypeStorage(const KeyTy &key) in LLVMPointerTypeStorage()
399 bool operator==(const KeyTy &key) const {
415 using KeyTy = std::tuple<Type, unsigned>; member
417 LLVMTypeAndSizeStorage(const KeyTy &key) in LLVMTypeAndSizeStorage()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Linker/
H A DIRMover.h28 struct KeyTy { struct
31 KeyTy(ArrayRef<Type *> E, bool P);
32 KeyTy(const StructType *ST);
33 bool operator==(const KeyTy &that) const;
34 bool operator!=(const KeyTy &that) const;
38 static unsigned getHashValue(const KeyTy &Key);
40 static bool isEqual(const KeyTy &LHS, const StructType *RHS);
/llvm-project-15.0.7/mlir/unittests/Support/
H A DStorageUniquerTest.cpp19 using KeyTy = std::tuple<Args...>; typedef
21 SimpleStorage(KeyTy key) : key(key) {} in SimpleStorage()
32 KeyTy key) { in construct()
34 ConcreteT(std::forward<KeyTy>(key)); in construct()
36 bool operator==(const KeyTy &key) const { return this->key == key; } in operator ==()
38 KeyTy key;
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp35 bool operator==(const KeyTy &key) const { in operator ==()
39 ArrayTypeStorage(const KeyTy &key) in ArrayTypeStorage()
208 bool operator==(const KeyTy &key) const { in operator ==()
313 bool operator==(const KeyTy &key) const { in operator ==()
318 ImageTypeStorage(const KeyTy &key) in ImageTypeStorage()
389 bool operator==(const KeyTy &key) const { in operator ==()
393 PointerTypeStorage(const KeyTy &key) in PointerTypeStorage()
438 using KeyTy = std::pair<Type, unsigned>; typedef
717 using KeyTy = Type; typedef
721 bool operator==(const KeyTy &key) const { return key == KeyTy(imageType); } in operator ==()
[all …]
H A DSPIRVAttributes.cpp36 using KeyTy = std::tuple<Attribute, Attribute, Attribute>; typedef
43 bool operator==(const KeyTy &key) const { in operator ==()
49 construct(AttributeStorageAllocator &allocator, const KeyTy &key) { in construct()
61 using KeyTy = std::tuple<Attribute, Attribute, Attribute>; typedef
67 bool operator==(const KeyTy &key) const { in operator ==()
73 construct(AttributeStorageAllocator &allocator, const KeyTy &key) { in construct()
85 using KeyTy = std::tuple<Attribute, Vendor, DeviceType, uint32_t, Attribute>; typedef
93 bool operator==(const KeyTy &key) const { in operator ==()
99 construct(AttributeStorageAllocator &allocator, const KeyTy &key) { in construct()
/llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/
H A DPredicate.h85 using KeyTy = Key;
110 const KeyTy &getValue() const { return key; } in getValue()
113 KeyTy key;
174 explicit AttributePosition(const KeyTy &key);
212 explicit OperandPosition(const KeyTy &key);
227 explicit OperandGroupPosition(const KeyTy &key);
230 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
256 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
308 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
359 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
[all …]
H A DPredicate.cpp30 AttributePosition::AttributePosition(const KeyTy &key) : Base(key) { in AttributePosition()
37 OperandPosition::OperandPosition(const KeyTy &key) : Base(key) { in OperandPosition()
44 OperandGroupPosition::OperandGroupPosition(const KeyTy &key) : Base(key) { in OperandGroupPosition()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DTypeDetail.h34 using KeyTy = KeyT; member
36 TypeStorageBase(KeyTy key) in TypeStorageBase()
41 const KeyTy &key) { in construct()
46 bool operator==(const KeyTy &key) const { return this->key == key; }
49 const KeyTy &getValue() const { return key; } in getValue()
52 KeyTy key;
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVDuplicatesTracker.h55 template <typename KeyTy> class SPIRVDuplicatesTrackerBase {
60 using StorageTy = MapVector<KeyTy, SPIRV::DTSortableEntry>;
66 void add(KeyTy V, const MachineFunction *MF, Register R) { in add()
73 typename std::remove_pointer<KeyTy>::type>::type>() || in add()
76 typename std::remove_pointer<KeyTy>::type>::type>()) in add()
80 typename std::remove_pointer<KeyTy>::type>::type>()) in add()
84 Register find(KeyTy V, const MachineFunction *MF) const { in find()
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRAttr.cpp26 using KeyTy = std::pair<int, llvm::APFloat>; typedef
30 RealAttributeStorage(const KeyTy &key) in RealAttributeStorage()
33 static unsigned hashKey(const KeyTy &key) { return llvm::hash_value(key); } in hashKey()
35 bool operator==(const KeyTy &key) const { in operator ==()
41 construct(mlir::AttributeStorageAllocator &allocator, const KeyTy &key) { in construct()
56 using KeyTy = mlir::Type; typedef
63 bool operator==(const KeyTy &key) const { return key == value; } in operator ==()
67 construct(mlir::AttributeStorageAllocator &allocator, KeyTy key) { in construct()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/GPU/IR/
H A DGPUDialect.h56 using KeyTy = std::tuple<ArrayRef<int64_t>, Type, StringRef>; member
57 bool operator==(const KeyTy &key) const {
58 return key == KeyTy(getShape(), elementType, operand);
63 const KeyTy &key) { in construct()
/llvm-project-15.0.7/llvm/lib/IR/
H A DLLVMContextImpl.h93 struct KeyTy { struct
99 KeyTy(const StructType *ST) in KeyTy() argument
126 return getHashValue(KeyTy(ST)); in getHashValue()
132 return LHS == KeyTy(RHS); in isEqual()
141 struct KeyTy { struct
148 KeyTy(const FunctionType *FT) in KeyTy() function
179 return getHashValue(KeyTy(FT)); in getHashValue()
185 return LHS == KeyTy(RHS); in isEqual()
237 using KeyTy = MDNodeKeyImpl<NodeTy>; member
1268 using KeyTy = MDNodeKeyImpl<NodeTy>;
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/DLTI/
H A DDLTI.cpp31 using KeyTy = std::pair<DataLayoutEntryKey, Attribute>; typedef in mlir::impl::DataLayoutEntryStorage
37 const KeyTy &key) { in construct()
42 bool operator==(const KeyTy &other) const { in operator ==()
114 using KeyTy = ArrayRef<DataLayoutEntryInterface>; typedef in mlir::impl::DataLayoutSpecStorage
119 bool operator==(const KeyTy &key) const { return key == entries; } in operator ==()
122 const KeyTy &key) { in construct()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestTypes.h102 using KeyTy = ::llvm::StringRef;
107 bool operator==(const KeyTy &other) const { return name == other; }
110 construct(::mlir::TypeStorageAllocator &allocator, const KeyTy &key) {
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp489 using KeyTy = llvm::ArrayRef<mlir::Type>; typedef
498 bool operator==(const KeyTy &key) const { return key == elementTypes; } in operator ==()
504 static llvm::hash_code hashKey(const KeyTy &key) { in hashKey()
513 static KeyTy getKey(llvm::ArrayRef<mlir::Type> elementTypes) { in getKey()
514 return KeyTy(elementTypes); in getKey()
522 const KeyTy &key) { in construct()
/llvm-project-15.0.7/llvm/lib/Linker/
H A DIRMover.cpp1647 IRMover::StructTypeKeyInfo::KeyTy::KeyTy(ArrayRef<Type *> E, bool P) in KeyTy() function in IRMover::StructTypeKeyInfo::KeyTy
1650 IRMover::StructTypeKeyInfo::KeyTy::KeyTy(const StructType *ST) in KeyTy() function in IRMover::StructTypeKeyInfo::KeyTy
1653 bool IRMover::StructTypeKeyInfo::KeyTy::operator==(const KeyTy &That) const { in operator ==()
1657 bool IRMover::StructTypeKeyInfo::KeyTy::operator!=(const KeyTy &That) const { in operator !=()
1669 unsigned IRMover::StructTypeKeyInfo::getHashValue(const KeyTy &Key) { in getHashValue()
1675 return getHashValue(KeyTy(ST)); in getHashValue()
1678 bool IRMover::StructTypeKeyInfo::isEqual(const KeyTy &LHS, in isEqual()
1682 return LHS == KeyTy(RHS); in isEqual()
1689 return KeyTy(LHS) == KeyTy(RHS); in isEqual()
1713 IRMover::StructTypeKeyInfo::KeyTy Key(ETypes, IsPacked); in findNonOpaque()
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DStorageUniquer.h301 typename ImplTy::KeyTy>::type
310 typename ImplTy::KeyTy>::type
312 return typename ImplTy::KeyTy(args...); in getKey()

12