Home
last modified time | relevance | path

Searched refs:typeID (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/
H A Dmlir-support.gdb27 # 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 DTypeSupport.h53 typeID); in get()
82 TypeID getTypeID() const { return typeID; } in getTypeID()
88 hasTraitFn(std::move(hasTrait)), typeID(typeID) {} in AbstractType()
110 const TypeID typeID; variable
190 [&, typeID](TypeStorage *storage) { in getWithTypeID()
193 typeID, std::forward<Args>(args)...); in getWithTypeID()
201 getWithTypeID(MLIRContext *ctx, TypeID typeID) { in getWithTypeID()
235 registerType(MLIRContext *ctx, TypeID typeID) { in registerType()
237 typeID); in registerType()
245 registerType(MLIRContext *ctx, TypeID typeID) { in registerType()
[all …]
H A DAttributeSupport.h56 std::move(hasTrait), typeID); in get()
86 TypeID getTypeID() const { return typeID; } in getTypeID()
90 HasTraitFn &&hasTrait, TypeID typeID) in AbstractAttribute() argument
92 hasTraitFn(std::move(hasTrait)), typeID(typeID) {} in AbstractAttribute()
114 const TypeID typeID; variable
212 [typeID, ctx](AttributeStorage *storage) { in getWithTypeID()
219 typeID, std::forward<Args>(args)...); in getWithTypeID()
227 getWithTypeID(MLIRContext *ctx, TypeID typeID) { in getWithTypeID() argument
259 registerAttribute(MLIRContext *ctx, TypeID typeID) { in registerAttribute() argument
269 registerAttribute(MLIRContext *ctx, TypeID typeID) { in registerAttribute() argument
[all …]
H A DExtensibleDialect.h369 TypeID getTypeID() { return typeID; } in getTypeID()
428 TypeID typeID; variable
456 ExtensibleDialect(StringRef name, MLIRContext *ctx, TypeID typeID);
H A DDialect.h220 void addType(TypeID typeID, AbstractType &&typeInfo);
231 void addAttribute(TypeID typeID, AbstractAttribute &&attrInfo);
H A DOperationSupport.h110 TypeID typeID; member
273 insert(StringRef name, Dialect &dialect, TypeID typeID,
287 TypeID getTypeID() const { return impl->typeID; } in getTypeID()
H A DDialectRegistry.h136 void insert(TypeID typeID, StringRef name,
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/
H A DSerializer.cpp328 typeID = getTypeID(type); in processTypeImpl()
329 if (typeID) in processTypeImpl()
332 typeID = getNextID(); in processTypeImpl()
335 operands.push_back(typeID); in processTypeImpl()
347 typeIDMap[type] = typeID; in processTypeImpl()
653 uint32_t typeID = 0; in prepareConstant() local
679 uint32_t typeID = 0; in prepareArrayConstant() local
722 uint32_t typeID = 0; in prepareDenseElementsConstant() local
771 uint32_t typeID = 0; in prepareConstantBool() local
800 uint32_t typeID = 0; in prepareConstantInt() local
[all …]
H A DSerializeOps.cpp85 uint32_t typeID = 0; in processSpecConstantCompositeOp() local
86 if (failed(processType(op.getLoc(), op.type(), typeID))) { in processSpecConstantCompositeOp()
93 operands.push_back(typeID); in processSpecConstantCompositeOp()
121 uint32_t typeID = 0; in processSpecConstantOperationOp() local
122 if (failed(processType(op.getLoc(), op.getType(), typeID))) { in processSpecConstantOperationOp()
129 operands.push_back(typeID); in processSpecConstantOperationOp()
167 uint32_t typeID = 0; in processUndefOp() local
168 if (failed(processType(op.getLoc(), undefType, typeID))) in processUndefOp()
171 {typeID, id}); in processUndefOp()
H A DSerializer.h167 LogicalResult processType(Location loc, Type type, uint32_t &typeID);
168 LogicalResult processTypeImpl(Location loc, Type type, uint32_t &typeID,
/llvm-project-15.0.7/mlir/lib/IR/
H A DExtensibleDialect.cpp300 : typeID(dialect->allocateTypeID()), in DynamicOpDefinition()
384 TypeID typeID) in ExtensibleDialect() argument
385 : Dialect(name, ctx, typeID) { in ExtensibleDialect()
392 TypeID typeID = type->getTypeID(); in registerDynamicType() local
400 auto registered = dynTypes.try_emplace(typeID, std::move(type)).second; in registerDynamicType()
411 DynamicType::getHasTraitFn(), typeID); in registerDynamicType()
414 addType(typeID, std::move(abstractType)); in registerDynamicType()
421 auto typeID = attr->getTypeID(); in registerDynamicAttr() local
440 DynamicAttr::getHasTraitFn(), typeID); in registerDynamicAttr()
443 addAttribute(typeID, std::move(abstractAttr)); in registerDynamicAttr()
[all …]
H A DMLIRContext.cpp602 void Dialect::addType(TypeID typeID, AbstractType &&typeInfo) { in addType() argument
610 if (!impl.registeredTypes.insert({typeID, newInfo}).second) in addType()
622 if (!impl.registeredAttributes.insert({typeID, newInfo}).second) in addAttribute()
631 const AbstractAttribute &AbstractAttribute::lookup(TypeID typeID, in lookup() argument
633 const AbstractAttribute *abstract = lookupMutable(typeID, context); in lookup()
640 AbstractAttribute *AbstractAttribute::lookupMutable(TypeID typeID, in lookupMutable() argument
643 auto it = impl.registeredAttributes.find(typeID); in lookupMutable()
715 StringRef name, Dialect &dialect, TypeID typeID, in insert() argument
767 impl.typeID = typeID; in insert()
785 const AbstractType *type = lookupMutable(typeID, context); in lookup()
[all …]
H A DDialect.cpp155 void DialectRegistry::insert(TypeID typeID, StringRef name, in insert() argument
158 std::make_pair(std::string(name), std::make_pair(typeID, ctor))); in insert()
159 if (!inserted.second && inserted.first->second.first != typeID) { in insert()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DTypeDetail.h22 Storage(TypeID typeID) : typeID(typeID) {} in Storage()
25 TypeID typeID; member
H A DTypes.cpp30 TypeID Type::getTypeID() const { return impl->typeID; } in MLIR_DEFINE_EXPLICIT_TYPE_ID()
/llvm-project-15.0.7/mlir/include/mlir-c/
H A DSupport.h150 static inline bool mlirTypeIDIsNull(MlirTypeID typeID) { return !typeID.ptr; } in mlirTypeIDIsNull() argument
156 MLIR_CAPI_EXPORTED size_t mlirTypeIDHashValue(MlirTypeID typeID);
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h127 TypeID getTypeID() const { return typeID; } in getTypeID()
148 Node(TypeID typeID, SMRange loc) : typeID(typeID), loc(loc) {} in Node() argument
152 TypeID typeID;
239 OpRewriteStmt(TypeID typeID, SMRange loc, Expr *rootOp) in OpRewriteStmt() argument
240 : Stmt(typeID, loc), rootOp(rootOp) {} in OpRewriteStmt()
353 Expr(TypeID typeID, SMRange loc, Type type) : Stmt(typeID, loc), type(type) {} in Expr() argument
641 Decl(TypeID typeID, SMRange loc, const Name *name = nullptr)
642 : Node(typeID, loc), name(name) {} in Node() argument
666 ConstraintDecl(TypeID typeID, SMRange loc, const Name *name = nullptr)
667 : Decl(typeID, loc, name) {} in Decl() argument
[all …]
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DSupport.cpp40 size_t mlirTypeIDHashValue(MlirTypeID typeID) { in mlirTypeIDHashValue() argument
41 return hash_value(unwrap(typeID)); in mlirTypeIDHashValue()
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DModuleTranslation.h195 TypeID getTypeID() const { return typeID; } in getTypeID()
198 explicit StackFrame(TypeID typeID) : typeID(typeID) {} in StackFrame() argument
201 const TypeID typeID;
/llvm-project-15.0.7/mlir/include/mlir/Analysis/
H A DDataFlowFramework.h73 TypeID getTypeID() const { return typeID; } in getTypeID()
83 explicit GenericProgramPoint(TypeID typeID) : typeID(typeID) {} in GenericProgramPoint() argument
87 TypeID typeID;
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DDataLayoutInterfaces.h63 TypeID typeID);
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DDataLayoutInterfaces.cpp218 TypeID typeID) { in filterEntriesForType() argument
220 entries, [typeID](DataLayoutEntryInterface entry) { in filterEntriesForType()
222 return type && type.getTypeID() == typeID; in filterEntriesForType()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/
H A DFIRType.h275 mlir::Type fromRealTypeID(mlir::MLIRContext *context, llvm::Type::TypeID typeID,
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRType.cpp947 llvm::Type::TypeID typeID, fir::KindTy kind) { in fromRealTypeID() argument
948 switch (typeID) { in fromRealTypeID()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestDialect.cpp442 void *TestDialect::getRegisteredInterfaceForOp(TypeID typeID, in getRegisteredInterfaceForOp() argument
445 typeID == TypeID::get<TestEffectOpInterface>()) in getRegisteredInterfaceForOp()

12