Home
last modified time | relevance | path

Searched refs:TypeType (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dpdl_types.py23 assert not pdl.TypeType.isinstance(parsedType)
29 assert not pdl.TypeType.isinstance(constructedType)
50 assert not pdl.TypeType.isinstance(parsedType)
56 assert not pdl.TypeType.isinstance(constructedType)
79 assert not pdl.TypeType.isinstance(parsedType)
85 assert not pdl.TypeType.isinstance(constructedType)
104 constructedType = pdl.TypeType.get()
109 assert pdl.TypeType.isinstance(parsedType)
115 assert pdl.TypeType.isinstance(constructedType)
136 assert not pdl.TypeType.isinstance(parsedType)
[all …]
/llvm-project-15.0.7/mlir/python/mlir/_mlir_libs/_mlir/dialects/
H A Dpdl.pyi14 'TypeType',
51 class TypeType(Type):
56 def get(context: Optional[Context] = None) -> TypeType: ...
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DTypes.cpp106 return range && range.getElementType().isa<TypeType>(); in classof()
110 return RangeType::get(context, TypeType::get(context)).cast<TypeRangeType>(); in get()
161 TypeType TypeType::get(Context &context) { in get()
H A DNodePrinter.cpp154 .Case([&](TypeType) { os << "Type"; }) in print() argument
/llvm-project-15.0.7/mlir/lib/CAPI/Dialect/
H A DPDL.cpp72 return unwrap(type).isa<pdl::TypeType>(); in mlirTypeIsAPDLTypeType()
76 return wrap(pdl::TypeType::get(unwrap(ctx))); in mlirPDLTypeTypeGet()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DMLIRGen.cpp166 .Case([&](ast::TypeType astType) -> Type { in genType()
167 return builder.getType<pdl::TypeType>(); in genType()
337 if (type.isa<ast::TypeType>()) in genNonInitializerVar()
346 loc, pdl::RangeType::get(builder.getType<pdl::TypeType>()), in genNonInitializerVar()
357 if (eleTy.isa<ast::TypeType>()) in genNonInitializerVar()
531 builder.getType<pdl::TypeType>(), in genExprImpl()
H A DCPPGen.cpp180 .Case([&](ast::TypeType) { return "::mlir::Type"; }) in getNativeTypeName() argument
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DTypes.h270 class TypeType : public Type::TypeBase<detail::TypeTypeStorage> {
275 static TypeType get(Context &context);
H A DNodes.h614 : Base(loc, TypeType::get(ctx)), value(value) {} in TypeExpr()
/llvm-project-15.0.7/mlir/python/mlir/dialects/
H A D_pdl_ops_ext.py263 result = pdl.TypeType.get()
277 result = pdl.RangeType.get(pdl.TypeType.get())
/llvm-project-15.0.7/mlir/include/mlir/Dialect/PDL/IR/
H A DPDLTypes.td75 // pdl::TypeType
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DOpImplementation.h1124 template <typename TypeType>
1125 ParseResult parseColonType(TypeType &result) { in parseColonType()
1134 result = type.dyn_cast<TypeType>(); in parseColonType()
/llvm-project-15.0.7/mlir/lib/Rewrite/
H A DByteCode.cpp393 if (rangeTy.getElementType().isa<pdl::TypeType>()) in appendPDLValueKind()
397 .Case<pdl::TypeType>([](Type) { return PDLValue::Kind::Type; }) in appendPDLValueKind()
531 if (elementTy.isa<pdl::TypeType>()) in allocateMemoryIndices()
606 else if (eleType.isa<pdl::TypeType>()) in allocateMemoryIndices()
876 .Case([](pdl::TypeType) { return OpCode::ExtractType; }) in generate() argument
/llvm-project-15.0.7/mlir/include/mlir/Dialect/PDLInterp/IR/
H A DPDLInterpOps.td476 build($_builder, $_state, $_builder.getType<pdl::TypeType>(), type);
505 pdl::RangeType::get($_builder.getType<pdl::TypeType>()), type);
728 build($_builder, $_state, $_builder.getType<pdl::TypeType>(), value);
963 Type typeType = $_builder.getType<pdl::TypeType>();
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp52 typeTy(ast::TypeType::get(ctx)), in Parser()