Home
last modified time | relevance | path

Searched refs:TypeID (Results 1 – 25 of 187) sorted by relevance

12345678

/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_with_tf2xla.cc87 static llvm::SmallDenseSet<mlir::TypeID, 512> ops = { in IsOpAllowedTf2XlaFallback()
88 TypeID::get<TF::AbsOp>(), in IsOpAllowedTf2XlaFallback()
89 TypeID::get<TF::AcoshOp>(), in IsOpAllowedTf2XlaFallback()
90 TypeID::get<TF::AcosOp>(), in IsOpAllowedTf2XlaFallback()
91 TypeID::get<TF::AddNOp>(), in IsOpAllowedTf2XlaFallback()
92 TypeID::get<TF::AddV2Op>(), in IsOpAllowedTf2XlaFallback()
93 TypeID::get<TF::AngleOp>(), in IsOpAllowedTf2XlaFallback()
94 TypeID::get<TF::AdjustContrastv2Op>(), in IsOpAllowedTf2XlaFallback()
95 TypeID::get<TF::AdjustHueOp>(), in IsOpAllowedTf2XlaFallback()
96 TypeID::get<TF::AdjustSaturationOp>(), in IsOpAllowedTf2XlaFallback()
[all …]
/external/llvm-project/mlir/include/mlir/Support/
DTypeID.h51 class TypeID {
59 TypeID() : TypeID(get<void>()) {} in TypeID() function
60 TypeID(const TypeID &) = default;
63 bool operator==(const TypeID &other) const {
66 bool operator!=(const TypeID &other) const { return !(*this == other); }
70 static TypeID get();
72 static TypeID get();
78 static TypeID getFromOpaquePointer(const void *pointer) { in getFromOpaquePointer()
79 return TypeID(reinterpret_cast<const Storage *>(pointer)); in getFromOpaquePointer()
83 friend ::llvm::hash_code hash_value(TypeID id);
[all …]
DStorageUniquer.h137 template <typename Storage> void registerParametricStorageType(TypeID id) { in registerParametricStorageType()
142 registerParametricStorageType<Storage>(TypeID::get<Storage>()); in registerParametricStorageType()
150 void registerSingletonStorageType(TypeID id, in registerSingletonStorageType()
160 template <typename Storage> void registerSingletonStorageType(TypeID id) { in registerSingletonStorageType()
166 registerSingletonStorageType<Storage>(TypeID::get<Storage>(), initFn);
175 Storage *get(function_ref<void(Storage *)> initFn, TypeID id, in get()
203 return get<Storage>(initFn, TypeID::get<Storage>(), in get()
209 template <typename Storage> Storage *get(TypeID id) { in get()
214 return get<Storage>(TypeID::get<Storage>()); in get()
220 bool isSingletonStorageInitialized(TypeID id);
[all …]
DInterfaceSupport.h83 static TypeID getInterfaceID() { return TypeID::get<ConcreteType>(); } in getInterfaceID()
106 static TypeID getInterfaceID() { return TypeID::get<ConcreteType>(); } in getInterfaceID()
191 InterfaceMap(MutableArrayRef<std::pair<TypeID, void *>> elements)
192 : interfaces(std::make_unique<llvm::SmallDenseMap<TypeID, void *>>(
197 std::pair<TypeID, void *> elements[] = {std::make_pair(
205 std::unique_ptr<llvm::SmallDenseMap<TypeID, void *>> interfaces;
/external/llvm-project/libcxx/test/support/
Dtype_id.h24 struct TypeID { struct
25 friend bool operator==(TypeID const& LHS, TypeID const& RHS)
27 friend bool operator!=(TypeID const& LHS, TypeID const& RHS)
35 explicit constexpr TypeID(const char* xid) : m_id(xid) {} in TypeID() function
37 TypeID(const TypeID&) = delete;
38 TypeID& operator=(TypeID const&) = delete; argument
41 template <class T> friend TypeID const& makeTypeIDImp(); argument
46 inline TypeID const& makeTypeIDImp() { in makeTypeIDImp()
48 static const TypeID id(__FUNCSIG__); in makeTypeIDImp()
50 static const TypeID id(__PRETTY_FUNCTION__); in makeTypeIDImp()
[all …]
Dcontainer_test_types.h99 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() argument
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()
/external/libcxx/test/support/
Dtype_id.h27 struct TypeID { struct
28 friend bool operator==(TypeID const& LHS, TypeID const& RHS)
30 friend bool operator!=(TypeID const& LHS, TypeID const& RHS)
43 explicit constexpr TypeID(const char* xid) : m_id(xid) {} in TypeID() function
45 TypeID(const TypeID&) = delete;
46 TypeID& operator=(TypeID const&) = delete; argument
49 template <class T> friend TypeID const& makeTypeIDImp(); argument
54 inline TypeID const& makeTypeIDImp() { in makeTypeIDImp()
55 static const TypeID id(typeid(T).name()); in makeTypeIDImp()
63 inline TypeID const& makeTypeID() { in makeTypeID()
[all …]
Dcontainer_test_types.h100 struct TypeID { struct
101 friend bool operator==(TypeID const& LHS, TypeID const& RHS)
103 friend bool operator!=(TypeID const& LHS, TypeID const& RHS)
106 explicit constexpr TypeID(const int* xid) : m_id(xid) {} in TypeID() function
117 typedef TypeID ID;
137 inline constexpr TypeID const& makeTypeID() { return TypeInfo<T>::GetID(); } in makeTypeID()
145 inline constexpr TypeID const& makeArgumentID() { in makeArgumentID()
156 const detail::TypeID* m_expected_args;
169 bool check(detail::TypeID const& tid) { in check()
186 void expect(detail::TypeID const& tid) { in expect()
/external/llvm-project/llvm/include/llvm/Object/
DBinary.h34 unsigned int TypeID;
101 unsigned int getType() const { return TypeID; } in getType()
105 return TypeID > ID_StartObjects && TypeID < ID_EndObjects; in isObject()
112 bool isArchive() const { return TypeID == ID_Archive; } in isArchive()
115 return TypeID == ID_MachOUniversalBinary; in isMachOUniversalBinary()
118 bool isTapiUniversal() const { return TypeID == ID_TapiUniversal; } in isTapiUniversal()
121 return TypeID >= ID_ELF32L && TypeID <= ID_ELF64B; in isELF()
125 return TypeID >= ID_MachO32L && TypeID <= ID_MachO64B; in isMachO()
129 return TypeID == ID_COFF; in isCOFF()
132 bool isXCOFF() const { return TypeID == ID_XCOFF32 || TypeID == ID_XCOFF64; } in isXCOFF()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DBinary.h34 unsigned int TypeID;
99 unsigned int getType() const { return TypeID; } in getType()
103 return TypeID > ID_StartObjects && TypeID < ID_EndObjects; in isObject()
110 bool isArchive() const { return TypeID == ID_Archive; } in isArchive()
113 return TypeID == ID_MachOUniversalBinary; in isMachOUniversalBinary()
116 bool isTapiUniversal() const { return TypeID == ID_TapiUniversal; } in isTapiUniversal()
119 return TypeID >= ID_ELF32L && TypeID <= ID_ELF64B; in isELF()
123 return TypeID >= ID_MachO32L && TypeID <= ID_MachO64B; in isMachO()
127 return TypeID == ID_COFF; in isCOFF()
130 bool isXCOFF() const { return TypeID == ID_XCOFF32 || TypeID == ID_XCOFF64; } in isXCOFF()
[all …]
/external/llvm/include/llvm/Object/
DBinary.h34 unsigned int TypeID; variable
87 unsigned int getType() const { return TypeID; } in getType()
91 return TypeID > ID_StartObjects && TypeID < ID_EndObjects; in isObject()
99 return TypeID == ID_Archive; in isArchive()
103 return TypeID == ID_MachOUniversalBinary; in isMachOUniversalBinary()
107 return TypeID >= ID_ELF32L && TypeID <= ID_ELF64B; in isELF()
111 return TypeID >= ID_MachO32L && TypeID <= ID_MachO64B; in isMachO()
115 return TypeID == ID_COFF; in isCOFF()
119 return TypeID == ID_COFFImportFile; in isCOFFImportFile()
123 return TypeID == ID_IR; in isIR()
[all …]
/external/llvm-project/mlir/include/mlir/IR/
DDialect.h50 TypeID getTypeID() const { return dialectID; } in getTypeID()
131 const DialectInterface *getRegisteredInterface(TypeID interfaceID) { in getRegisteredInterface()
148 Dialect(StringRef name, MLIRContext *context, TypeID id);
192 void addAttribute(TypeID typeID, AbstractAttribute &&attrInfo);
200 void addType(TypeID typeID, AbstractType &&typeInfo);
207 TypeID dialectID;
223 DenseMap<TypeID, std::unique_ptr<DialectInterface>> registeredInterfaces;
236 std::map<std::string, std::pair<TypeID, DialectAllocatorFunction>>;
241 insert(TypeID::get<ConcreteDialect>(), in insert()
258 void insert(TypeID typeID, StringRef name, DialectAllocatorFunction ctor);
[all …]
DDialectInterface.h32 static TypeID getInterfaceID() { return TypeID::get<ConcreteType>(); } in getInterfaceID()
53 TypeID getID() const { return interfaceID; } in getID()
56 DialectInterface(Dialect *dialect, TypeID id) in DialectInterface()
64 TypeID interfaceID;
96 DialectInterfaceCollectionBase(MLIRContext *ctx, TypeID interfaceKind);
DAttributeSupport.h35 static const AbstractAttribute &lookup(TypeID typeID, MLIRContext *context);
54 TypeID getTypeID() const { return typeID; } in getTypeID()
58 TypeID typeID) in AbstractAttribute()
69 TypeID typeID;
207 MLIRContext *ctx, TypeID attrID);
DTypeSupport.h34 static const AbstractType &lookup(TypeID typeID, MLIRContext *context);
53 TypeID getTypeID() const { return typeID; } in getTypeID()
57 TypeID typeID) in AbstractType()
68 TypeID typeID;
/external/llvm-project/mlir/lib/Support/
DStorageUniquer.cpp247 bool hasParametricStorage(TypeID id) { return parametricUniquers.count(id); } in hasParametricStorage()
251 getOrCreate(TypeID id, unsigned hashValue, in getOrCreate()
264 mutate(TypeID id, BaseStorage *storage, in mutate()
277 BaseStorage *getSingleton(TypeID id) { in getSingleton()
284 bool hasSingleton(TypeID id) const { return singletonInstances.count(id); } in hasSingleton()
291 DenseMap<TypeID, std::unique_ptr<ParametricStorageUniquer>>
296 DenseMap<TypeID, BaseStorage *> singletonInstances;
318 TypeID id, unsigned hashValue, in getParametricStorageTypeImpl()
326 void StorageUniquer::registerParametricStorageTypeImpl(TypeID id) { in registerParametricStorageTypeImpl()
333 auto StorageUniquer::getSingletonImpl(TypeID id) -> BaseStorage * { in getSingletonImpl()
[all …]
/external/llvm-project/mlir/lib/Conversion/PDLToPDLInterp/
DPredicateTree.h79 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()
184 return node->getMatcherTypeID() == TypeID::get<SwitchNode>(); in classof()
/external/llvm-project/mlir/include/mlir/Interfaces/
DSideEffectInterfaces.h35 static TypeID getEffectID() { return TypeID::get<DerivedEffect>(); } in getEffectID()
53 TypeID getEffectID() const { return id; } in getEffectID()
65 Effect(TypeID id) : id(id) {} in Effect()
69 TypeID id;
95 static TypeID getResourceID() { return TypeID::get<DerivedResource>(); } in getResourceID()
107 TypeID getResourceID() const { return id; } in getResourceID()
113 Resource(TypeID id) : id(id) {} in Resource()
117 TypeID id;
/external/llvm-project/llvm/tools/dsymutil/
DCFBundle.cpp151 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()
/external/llvm-project/mlir/include/mlir/Pass/
DAnalysisManager.h32 void preserveAll() { preservedIDs.insert(TypeID::get<AllAnalysesType>()); } in preserveAll()
36 return preservedIDs.count(TypeID::get<AllAnalysesType>()); in isAll()
44 preserve(TypeID::get<AnalysisT>()); in preserve()
51 void preserve(TypeID id) { preservedIDs.insert(id); } in preserve()
57 return isPreserved(TypeID::get<AnalysisT>()); in isPreserved()
59 bool isPreserved(TypeID id) const { return preservedIDs.count(id); } in isPreserved()
63 SmallPtrSet<TypeID, 2> preservedIDs;
117 using ConceptMap = DenseMap<TypeID, std::unique_ptr<AnalysisConcept>>;
148 auto res = analyses.find(TypeID::get<AnalysisT>()); in getCachedAnalysis()
174 TypeID id = TypeID::get<AnalysisT>(); in getAnalysisImpl()
DPass.h56 TypeID getTypeID() const { return passID; } in getTypeID()
59 static const PassInfo *lookupPassInfo(TypeID passID);
61 return lookupPassInfo(TypeID::get<PassT>()); in lookupPassInfo()
150 explicit Pass(TypeID passID, Optional<StringRef> opName = llvm::None)
217 void markAnalysesPreserved(TypeID id) { in markAnalysesPreserved()
274 TypeID passID;
317 OperationPass(TypeID passID) : Pass(passID, OpT::getOperationName()) {} in OperationPass()
349 OperationPass(TypeID passID) : Pass(passID) {} in OperationPass()
383 return pass->getTypeID() == TypeID::get<PassT>(); in classof()
387 PassWrapper() : BaseT(TypeID::get<PassT>()) {} in PassWrapper()
DPassInstrumentation.h74 virtual void runBeforeAnalysis(StringRef name, TypeID id, Operation *op) {} in runBeforeAnalysis()
79 virtual void runAfterAnalysis(StringRef name, TypeID id, Operation *op) {} in runAfterAnalysis()
111 void runBeforeAnalysis(StringRef name, TypeID id, Operation *op);
114 void runAfterAnalysis(StringRef name, TypeID id, Operation *op);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DARMException.cpp125 unsigned TypeID = *I; in emitTypeInfos() local
128 if (TypeID != 0) in emitTypeInfos()
132 Asm->EmitTTypeReference((TypeID == 0 ? nullptr : TypeInfos[TypeID - 1]), in emitTypeInfos()
/external/llvm-project/llvm/lib/CodeGen/AsmPrinter/
DARMException.cpp125 unsigned TypeID = *I; in emitTypeInfos() local
128 if (TypeID != 0) in emitTypeInfos()
132 Asm->emitTTypeReference((TypeID == 0 ? nullptr : TypeInfos[TypeID - 1]), in emitTypeInfos()
/external/llvm/lib/CodeGen/AsmPrinter/
DARMException.cpp129 unsigned TypeID = *I; in emitTypeInfos() local
132 if (TypeID != 0) in emitTypeInfos()
136 Asm->EmitTTypeReference((TypeID == 0 ? nullptr : TypeInfos[TypeID - 1]), in emitTypeInfos()

12345678