| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | TypeID.h | 104 class TypeID { 112 TypeID() : TypeID(get<void>()) {} in TypeID() function 124 static TypeID get(); 126 static TypeID get(); 192 static TypeID resolveTypeID() { in resolveTypeID() 214 static TypeID resolveTypeID() { in resolveTypeID() 232 TypeID TypeID::get() { in get() 236 TypeID TypeID::get() { in get() 296 TypeID allocate() { return TypeID(ids.Allocate()); } in allocate() 324 TypeID getTypeID() const { return TypeID::getFromOpaquePointer(this); } in getTypeID() [all …]
|
| H A D | StorageUniquer.h | 149 void registerParametricStorageType(TypeID id) { in registerParametricStorageType() 169 void registerSingletonStorageType(TypeID id, in registerSingletonStorageType() 180 void registerSingletonStorageType(TypeID id) { in registerSingletonStorageType() 230 Storage *get(TypeID id) { in get() 236 return get<Storage>(TypeID::get<Storage>()); in get() 242 bool isSingletonStorageInitialized(TypeID id); 247 bool isParametricStorageInitialized(TypeID id); 264 TypeID id, unsigned hashValue, 276 BaseStorage *getSingletonImpl(TypeID id); 281 registerSingletonImpl(TypeID id, [all …]
|
| H A D | InterfaceSupport.h | 90 static TypeID getInterfaceID() { return TypeID::get<ConcreteType>(); } in getInterfaceID() 117 static TypeID getInterfaceID() { return TypeID::get<ConcreteType>(); } in getInterfaceID() 199 std::array<std::pair<TypeID, void *>, numInterfaces> elements; 200 std::pair<TypeID, void *> *elementIt = elements.data(); 220 InterfaceMap(MutableArrayRef<std::pair<TypeID, void *>> elements); 228 std::pair<TypeID, void *> elements[] = { 249 addModelAndUpdateIterator(std::pair<TypeID, void *> *&) {} 252 void insert(ArrayRef<std::pair<TypeID, void *>> elements); 255 static bool compare(TypeID lhs, TypeID rhs) { 261 void *lookup(TypeID id) const { [all …]
|
| H A D | DebugAction.h | 55 TypeID getHandlerID() const { return handlerID; } in getHandlerID() 58 HandlerBase(TypeID handlerID) : handlerID(handlerID) {} in HandlerBase() 62 TypeID handlerID; 74 GenericHandler() : HandlerBase(TypeID::get<GenericHandler>()) {} in GenericHandler() 86 return handler->getHandlerID() == TypeID::get<GenericHandler>(); in classof() 199 TypeID::get<typename DebugAction<ParameterTs...>::Handler>()) {} in Handler() 212 TypeID::get<typename DebugAction<ParameterTs...>::Handler>(); in classof()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | type_id.h | 22 struct TypeID { struct 23 friend bool operator==(TypeID const& LHS, TypeID const& RHS) 25 friend bool operator!=(TypeID const& LHS, TypeID const& RHS) 35 TypeID(const TypeID&) = delete; 36 TypeID& operator=(TypeID const&) = delete; argument 39 template <class T> friend TypeID const& makeTypeIDImp(); argument 44 inline TypeID const& makeTypeIDImp() { in makeTypeIDImp() 46 static const TypeID id(__FUNCSIG__); in makeTypeIDImp() 48 static const TypeID id(__PRETTY_FUNCTION__); in makeTypeIDImp() 57 inline TypeID const& makeTypeID() { in makeTypeID() [all …]
|
| H A D | container_test_types.h | 99 struct TypeID { struct 100 friend bool operator==(TypeID const& LHS, TypeID const& RHS) 102 friend bool operator!=(TypeID const& LHS, TypeID const& RHS) 105 explicit constexpr TypeID(const int* xid) : m_id(xid) {} in TypeID() function 116 typedef TypeID ID; 136 inline constexpr TypeID const& makeTypeID() { return TypeInfo<T>::GetID(); } in makeTypeID() 144 inline constexpr TypeID const& makeArgumentID() { in makeArgumentID() 155 const detail::TypeID* m_expected_args; 168 bool check(detail::TypeID const& tid) { in check() 185 void expect(detail::TypeID const& tid) { in expect()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | Binary.h | 34 unsigned int TypeID; 107 return TypeID > ID_StartObjects && TypeID < ID_EndObjects; in isObject() 123 return TypeID >= ID_ELF32L && TypeID <= ID_ELF64B; in isELF() 127 return TypeID >= ID_MachO32L && TypeID <= ID_MachO64B; in isMachO() 131 return TypeID == ID_COFF; in isCOFF() 134 bool isXCOFF() const { return TypeID == ID_XCOFF32 || TypeID == ID_XCOFF64; } in isXCOFF() 141 return TypeID == ID_COFFImportFile; in isCOFFImportFile() 145 return TypeID == ID_IR; in isIR() 153 return !(TypeID == ID_ELF32B || TypeID == ID_ELF64B || in isLittleEndian() 154 TypeID == ID_MachO32B || TypeID == ID_MachO64B || in isLittleEndian() [all …]
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/ |
| H A D | mlir-support.gdb | 27 # CHECK: typeID = mlir::TypeID::get<mlir::IndexType>() 31 # CHECK: typeID = mlir::TypeID::get<mlir::IntegerType>() 36 # CHECK: typeID = mlir::TypeID::get<mlir::Float32Type>() 40 # CHECK: typeID = mlir::TypeID::get<mlir::MemRefType>() 50 # CHECK: typeID = mlir::TypeID::get<mlir::VectorType>() 55 # CHECK: typeID = mlir::TypeID::get<mlir::TupleType>() 85 # CHECK: typeID = mlir::TypeID::get<mlir::OpaqueLoc>() 91 # CHECK: typeID = mlir::TypeID::get<mlir::NameLoc>() 105 # CHECK: typeID = mlir::TypeID::get<mlir::FusedLoc>() 109 # CHECK: typeID = mlir::TypeID::get<mlir::NameLoc>() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | AttributeSupport.h | 34 using HasTraitFn = llvm::unique_function<bool(TypeID) const>; 54 HasTraitFn &&hasTrait, TypeID typeID) { in get() 72 bool hasInterface(TypeID interfaceID) const { in hasInterface() 79 return hasTraitFn(TypeID::get<Trait>()); in hasTrait() 86 TypeID getTypeID() const { return typeID; } in getTypeID() 90 HasTraitFn &&hasTrait, TypeID typeID) in AbstractAttribute() 114 const TypeID typeID; 202 getWithTypeID(MLIRContext *ctx, TypeID typeID, Args &&...args) { in getWithTypeID() 227 getWithTypeID(MLIRContext *ctx, TypeID typeID) { in getWithTypeID() 259 registerAttribute(MLIRContext *ctx, TypeID typeID) { in registerAttribute() [all …]
|
| H A D | TypeSupport.h | 32 using HasTraitFn = llvm::unique_function<bool(TypeID) const>; 51 HasTraitFn &&hasTrait, TypeID typeID) { in get() 68 bool hasInterface(TypeID interfaceID) const { in hasInterface() 75 return hasTraitFn(TypeID::get<Trait>()); in hasTrait() 82 TypeID getTypeID() const { return typeID; } in getTypeID() 86 HasTraitFn &&hasTrait, TypeID typeID) in AbstractType() 110 const TypeID typeID; 180 getWithTypeID(MLIRContext *ctx, TypeID typeID, Args &&...args) { in getWithTypeID() 201 getWithTypeID(MLIRContext *ctx, TypeID typeID) { in getWithTypeID() 235 registerType(MLIRContext *ctx, TypeID typeID) { in registerType() [all …]
|
| H A D | StorageUniquerSupport.h | 74 bool hasTrait(TypeID traitID) { in hasTrait() 75 TypeID traitIDs[] = {TypeID::get<Traits>()...}; in hasTrait() 84 inline bool hasTrait(TypeID traitID) { in hasTrait() 101 using HasTraitFn = bool (*)(TypeID); 104 static TypeID getTypeID() { return TypeID::get<ConcreteT>(); } in getTypeID() 124 return [](TypeID id) { in getHasTraitFn() 136 ConcreteT::AbstractTy::lookupMutable(TypeID::get<ConcreteT>(), in attachInterface()
|
| H A D | Dialect.h | 60 TypeID getTypeID() const { return dialectID; } in getTypeID() 160 const DialectInterface *getRegisteredInterface(TypeID interfaceID) { in getRegisteredInterface() 172 virtual void *getRegisteredInterfaceForOp(TypeID interfaceID, in getRegisteredInterfaceForOp() 201 Dialect(StringRef name, MLIRContext *context, TypeID id); 220 void addType(TypeID typeID, AbstractType &&typeInfo); 231 void addAttribute(TypeID typeID, AbstractAttribute &&attrInfo); 264 TypeID dialectID; 280 DenseMap<TypeID, std::unique_ptr<DialectInterface>> registeredInterfaces; 295 return mlir::TypeID::get<T>() == dialect.getTypeID();
|
| H A D | DialectInterface.h | 33 static TypeID getInterfaceID() { return TypeID::get<ConcreteType>(); } in getInterfaceID() 54 TypeID getID() const { return interfaceID; } in getID() 57 DialectInterface(Dialect *dialect, TypeID id) in DialectInterface() 65 TypeID interfaceID; 97 DialectInterfaceCollectionBase(MLIRContext *ctx, TypeID interfaceKind);
|
| H A D | OperationSupport.h | 110 TypeID typeID; 146 return hasTrait(TypeID::get<Trait>()); in hasTrait() 148 bool hasTrait(TypeID traitID) const { in hasTrait() 157 return mightHaveTrait(TypeID::get<Trait>()); in mightHaveTrait() 159 bool mightHaveTrait(TypeID traitID) const { in mightHaveTrait() 174 return hasInterface(TypeID::get<T>()); in hasInterface() 176 bool hasInterface(TypeID interfaceID) const { in hasInterface() 185 return mightHaveInterface(TypeID::get<T>()); in mightHaveInterface() 187 bool mightHaveInterface(TypeID interfaceID) const { in mightHaveInterface() 287 TypeID getTypeID() const { return impl->typeID; } in getTypeID() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Support/ |
| H A D | StorageUniquer.cpp | 278 getOrCreate(TypeID id, unsigned hashValue, in getOrCreate() 291 mutate(TypeID id, BaseStorage *storage, in mutate() 304 BaseStorage *getSingleton(TypeID id) { in getSingleton() 318 DenseMap<TypeID, std::unique_ptr<ParametricStorageUniquer>> 323 DenseMap<TypeID, BaseStorage *> singletonInstances; 345 TypeID id, unsigned hashValue, in getParametricStorageTypeImpl() 354 TypeID id, function_ref<void(BaseStorage *)> destructorFn) { in registerParametricStorageTypeImpl() 361 auto StorageUniquer::getSingletonImpl(TypeID id) -> BaseStorage * { in getSingletonImpl() 366 bool StorageUniquer::isSingletonStorageInitialized(TypeID id) { in isSingletonStorageInitialized() 371 bool StorageUniquer::isParametricStorageInitialized(TypeID id) { in isParametricStorageInitialized() [all …]
|
| H A D | InterfaceSupport.cpp | 22 MutableArrayRef<std::pair<TypeID, void *>> elements) in InterfaceMap() argument 30 ArrayRef<std::pair<TypeID, void *>> elements) { in insert() argument 33 TypeID id = element.first; in insert() 34 auto *it = llvm::lower_bound(interfaces, id, [](const auto &it, TypeID id) { in insert()
|
| H A D | TypeID.cpp | 29 TypeID lookupOrInsert(StringRef typeName) { in lookupOrInsert() 66 auto it = typeNameToID.try_emplace(typeName, TypeID()); in lookupOrInsert() 79 DenseMap<StringRef, TypeID> typeNameToID; in lookupOrInsert() 83 TypeID detail::FallbackTypeIDResolver::registerImplicitTypeID(StringRef name) { in registerImplicitTypeID()
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | SideEffectInterfaces.h | 35 static TypeID getEffectID() { return TypeID::get<DerivedEffect>(); } in getEffectID() 53 TypeID getEffectID() const { return id; } in getEffectID() 66 Effect(TypeID id) : id(id) {} in Effect() 70 TypeID id; 96 static TypeID getResourceID() { return TypeID::get<DerivedResource>(); } in getResourceID() 108 TypeID getResourceID() const { return id; } in getResourceID() 114 Resource(TypeID id) : id(id) {} in Resource() 118 TypeID id;
|
| /llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/ |
| H A D | PredicateTree.h | 79 TypeID getMatcherTypeID() const { return matcherTypeID; } in getMatcherTypeID() 82 MatcherNode(TypeID matcherTypeID, Position *position = nullptr, 100 TypeID matcherTypeID; 117 return node->getMatcherTypeID() == TypeID::get<BoolNode>(); in classof() 139 ExitNode() : MatcherNode(TypeID::get<ExitNode>()) {} in ExitNode() 144 return node->getMatcherTypeID() == TypeID::get<ExitNode>(); in classof() 161 return node->getMatcherTypeID() == TypeID::get<SuccessNode>(); in classof() 190 return node->getMatcherTypeID() == TypeID::get<SwitchNode>(); in classof()
|
| /llvm-project-15.0.7/llvm/tools/dsymutil/ |
| H A D | CFBundle.cpp | 151 auto PrintError = [&](CFTypeID TypeID) { in getBundleInfo() argument 152 CFString TypeIDCFStr(::CFCopyTypeIDDescription(TypeID)); in getBundleInfo() 164 CFTypeID TypeID = ::CFGetTypeID(TypeRef); in getBundleInfo() local 165 if (TypeID == ::CFStringGetTypeID()) in getBundleInfo() 168 PrintError(TypeID); in getBundleInfo() 172 CFTypeID TypeID = ::CFGetTypeID(TypeRef); in getBundleInfo() local 173 if (TypeID == ::CFStringGetTypeID()) in getBundleInfo() 176 PrintError(TypeID); in getBundleInfo()
|
| /llvm-project-15.0.7/mlir/include/mlir/Pass/ |
| H A D | AnalysisManager.h | 35 void preserveAll() { preservedIDs.insert(TypeID::get<AllAnalysesType>()); } in preserveAll() 39 return preservedIDs.count(TypeID::get<AllAnalysesType>()); in isAll() 48 preserve(TypeID::get<AnalysisT>()); in preserve() 55 void preserve(TypeID id) { preservedIDs.insert(id); } in preserve() 62 return isPreserved(TypeID::get<AnalysisT>()); in isPreserved() 64 bool isPreserved(TypeID id) const { return preservedIDs.count(id); } in isPreserved() 70 preservedIDs.erase(TypeID::get<AnalysisT>()); in unpreserve() 78 SmallPtrSet<TypeID, 2> preservedIDs; 138 using ConceptMap = llvm::MapVector<TypeID, std::unique_ptr<AnalysisConcept>>; 172 auto res = analyses.find(TypeID::get<AnalysisT>()); in getCachedAnalysis() [all …]
|
| H A D | Pass.h | 55 TypeID getTypeID() const { return passID; } in getTypeID() 162 explicit Pass(TypeID passID, Optional<StringRef> opName = llvm::None) 244 void markAnalysesPreserved(TypeID id) { in markAnalysesPreserved() 301 TypeID passID; 352 OperationPass(TypeID passID) : Pass(passID, OpT::getOperationName()) {} in OperationPass() 391 OperationPass(TypeID passID) : Pass(passID) {} in OperationPass() 444 return pass->getTypeID() == TypeID::get<PassT>(); in classof() 448 PassWrapper() : BaseT(TypeID::get<PassT>()) {} in PassWrapper()
|
| H A D | PassInstrumentation.h | 76 virtual void runBeforeAnalysis(StringRef name, TypeID id, Operation *op) {} in runBeforeAnalysis() 81 virtual void runAfterAnalysis(StringRef name, TypeID id, Operation *op) {} in runAfterAnalysis() 113 void runBeforeAnalysis(StringRef name, TypeID id, Operation *op); 116 void runAfterAnalysis(StringRef name, TypeID id, Operation *op);
|
| /llvm-project-15.0.7/mlir/include/mlir/Analysis/ |
| H A D | DataFlowFramework.h | 73 TypeID getTypeID() const { return typeID; } in getTypeID() 83 explicit GenericProgramPoint(TypeID typeID) : typeID(typeID) {} in GenericProgramPoint() 87 TypeID typeID; 113 : GenericProgramPoint(TypeID::get<ConcreteT>()), in GenericProgramPointBase() 136 return point->getTypeID() == TypeID::get<ConcreteT>(); in classof() 209 auto it = analysisStates.find({ProgramPoint(point), TypeID::get<StateT>()}); in lookupState() 259 DenseMap<std::pair<ProgramPoint, TypeID>, std::unique_ptr<AnalysisState>> 450 analysisStates[{ProgramPoint(point), TypeID::get<StateT>()}]; in getOrCreateState()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/ |
| H A D | TypeDetail.h | 22 Storage(TypeID typeID) : typeID(typeID) {} in Storage() 25 TypeID typeID; 37 : Type::Storage(TypeID::get<ConcreteT>()), key(key) {} in TypeStorageBase() 58 TypeStorageBase() : Type::Storage(TypeID::get<ConcreteT>()) {}
|