Home
last modified time | relevance | path

Searched refs:getOrLoadDialect (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DMLIRContext.h92 T *getOrLoadDialect() { in getOrLoadDialect() function
94 getOrLoadDialect(T::getDialectNamespace(), TypeID::get<T>(), [this]() { in getOrLoadDialect()
103 getOrLoadDialect<Dialect>(); in loadDialect()
109 getOrLoadDialect<Dialect>(); in loadDialect()
120 Dialect *getOrLoadDialect(StringRef name);
220 Dialect *getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID,
H A DDialectRegistry.h122 return ctx->getOrLoadDialect<ConcreteDialect>(); in insert()
/llvm-project-15.0.7/mlir/unittests/Dialect/Transform/
H A DBuildOnlyExtensionTest.cpp33 ctx.getOrLoadDialect<TransformDialect>(); in TEST()
43 ctx.getOrLoadDialect<TransformDialect>(); in TEST()
/llvm-project-15.0.7/mlir/unittests/IR/
H A DDialectTest.cpp85 Dialect *testDialect = context.getOrLoadDialect<TestDialect>(); in TEST()
92 Dialect *secondTestDialect = context.getOrLoadDialect<SecondTestDialect>(); in TEST()
122 Dialect *testDialect = context.getOrLoadDialect<TestDialect>(); in TEST()
H A DOperationSupportTest.cpp278 context.getOrLoadDialect<test::TestDialect>(); in TEST()
/llvm-project-15.0.7/mlir/unittests/Dialect/Quant/
H A DQuantizationUtilsTest.cpp79 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST()
97 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST()
123 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST()
149 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST()
/llvm-project-15.0.7/mlir/unittests/Dialect/LLVMIR/
H A DLLVMTestBase.h22 LLVMIRTest() { context.getOrLoadDialect<mlir::LLVM::LLVMDialect>(); } in LLVMIRTest()
/llvm-project-15.0.7/mlir/include/mlir/CAPI/
H A DRegistration.h42 return wrap(unwrap(context)->getOrLoadDialect<ClassName>()); \
/llvm-project-15.0.7/mlir/unittests/Transforms/
H A DCanonicalizer.cpp69 context.getOrLoadDialect<TestDialect>(); in TEST()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DDialectSymbolParser.cpp234 builder.getContext()->getOrLoadDialect(dialectName)) { in parseExtendedAttr()
274 if (auto *dialect = ctx->getOrLoadDialect(dialectName)) { in parseExtendedType()
H A DParser.cpp1348 !getContext()->getOrLoadDialect(dialectName) && in parseGenericOperation()
1824 getContext()->getOrLoadDialect(dialectName); in parseCustomOperationName()
2489 Dialect *dialect = getContext()->getOrLoadDialect(name); in parseDialectResourceFileMetadata()
H A DAttributeParser.cpp305 getContext()->getOrLoadDialect(splitName.first); in parseAttributeDict()
/llvm-project-15.0.7/mlir/examples/toy/Ch2/
H A Dtoyc.cpp73 context.getOrLoadDialect<mlir::toy::ToyDialect>(); in dumpMLIR()
/llvm-project-15.0.7/mlir/lib/IR/
H A DMLIRContext.cpp272 getOrLoadDialect<BuiltinDialect>(); in MLIRContext()
401 Dialect *MLIRContext::getOrLoadDialect(StringRef name) { in getOrLoadDialect() function in MLIRContext
414 MLIRContext::getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID, in getOrLoadDialect() function in MLIRContext
461 getOrLoadDialect(name); in loadAllAvailableDialects()
/llvm-project-15.0.7/mlir/examples/toy/Ch3/
H A Dtoyc.cpp107 context.getOrLoadDialect<mlir::toy::ToyDialect>(); in dumpMLIR()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/
H A Dtoyc.cpp108 context.getOrLoadDialect<mlir::toy::ToyDialect>(); in dumpMLIR()
/llvm-project-15.0.7/mlir/unittests/Dialect/SPIRV/
H A DSerializationTest.cpp39 context.getOrLoadDialect<mlir::spirv::SPIRVDialect>(); in SerializationTest()
H A DDeserializationTest.cpp38 context.getOrLoadDialect<mlir::spirv::SPIRVDialect>(); in DeserializationTest()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/
H A Dtoyc.cpp112 context.getOrLoadDialect<mlir::toy::ToyDialect>(); in dumpMLIR()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/
H A Dtoyc.cpp271 context.getOrLoadDialect<mlir::toy::ToyDialect>(); in main()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/
H A Dtoyc.cpp272 context.getOrLoadDialect<mlir::toy::ToyDialect>(); in main()
/llvm-project-15.0.7/mlir/unittests/TableGen/
H A DOpBuildGen.cpp29 ctx.getOrLoadDialect<test::TestDialect>(); in getContext()
/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DDataLayoutInterfacesTest.cpp191 ctx->getOrLoadDialect<DLTIDialect>(); in DLTestDialect()
/llvm-project-15.0.7/mlir/docs/
H A DDefiningDialects.md388 Dialect* dialect = ctx->getOrLoadDialect<MyDialect>();
479 Dialect* dialect = ctx->getOrLoadDialect<MyDialect>();
578 Dialect* dialect = ctx->getOrLoadDialect<MyDialect>();
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp26 : llvmDialect(ctx->getOrLoadDialect<LLVM::LLVMDialect>()), options(options), in LLVMTypeConverter()

12