Home
last modified time | relevance | path

Searched refs:dialect (Results 1 – 25 of 542) sorted by relevance

12345678910>>...22

/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DDialectGen.cpp53 return T(record).getDialect() == dialect; in filterForDialect()
207 if (dialect.hasCanonicalizer()) in emitDialectDecl()
211 if (dialect.hasOperationAttrVerify()) in emitDialectDecl()
213 if (dialect.hasRegionArgAttrVerify()) in emitDialectDecl()
226 if (!dialect.getCppNamespace().empty()) in emitDialectDecl()
241 if (!dialect) in emitDialectDecls()
243 emitDialectDecl(*dialect, os); in emitDialectDecls()
277 if (!dialect.getCppNamespace().empty()) in emitDialectDef()
298 if (!dialect.hasNonDefaultDestructor()) in emitDialectDef()
312 if (!dialect) in emitDialectDefs()
[all …]
H A DOpDocGen.cpp305 static void emitDialectDoc(const Dialect &dialect, in emitDialectDoc() argument
311 emitIfNotEmpty(dialect.getSummary(), os); in emitDialectDoc()
312 emitIfNotEmpty(dialect.getDescription(), os); in emitDialectDoc()
316 if (!r.match(dialect.getDescription())) in emitDialectDoc()
381 if (const Dialect &dialect = attr.getDialect()) { in emitDialectDoc() local
383 dialectsWithDocs.insert(dialect); in emitDialectDoc()
401 if (const Dialect &dialect = type.getDialect()) { in emitDialectDoc() local
403 dialectsWithDocs.insert(dialect); in emitDialectDoc()
407 Optional<Dialect> dialect = in emitDialectDoc() local
409 if (!dialect) in emitDialectDoc()
[all …]
/llvm-project-15.0.7/mlir/test/IR/
H A Dprint-ir-nesting.mlir1 // RUN: mlir-opt -test-print-nesting -allow-unregistered-dialect %s | FileCheck %s
10 // CHECK: visiting op: 'dialect.op1' with 0 operands and 4 results
17 // CHECK: visiting op: 'dialect.op2' with 0 operands and 0 results
19 "dialect.op2"() ({
23 // CHECK: visiting op: 'dialect.innerop1' with 2 operands and 0 results
25 "dialect.innerop1"(%results#0, %results#1) : (i1, i16) -> ()
33 "dialect.innerop2"() : () -> ()
41 "dialect.innerop4"() : () -> ()
44 "dialect.innerop5"() : () -> ()
49 "dialect.innerop6"() : () -> ()
[all …]
H A Dprint-ir-defuse.mlir3 // CHECK: Visiting op 'dialect.op1' with 0 operands:
5 // CHECK: - Result 0 has a single use: - dialect.op2
8 // CHECK: - dialect.innerop1
9 // CHECK: - dialect.op2
11 // CHECK: Visiting op 'dialect.op2' with 2 operands:
12 // CHECK: - Operand produced by operation 'dialect.op1'
13 // CHECK: - Operand produced by operation 'dialect.op1'
15 // CHECK: Visiting op 'dialect.innerop1' with 2 operands:
19 // CHECK: Visiting op 'dialect.op3' with 0 operands:
25 "dialect.op2"(%results#0, %results#2) : (i1, i32) -> ()
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DExtensibleDialect.cpp81 : name(nameRef), dialect(dialect), verifier(std::move(verifier)), in DynamicTypeDefinition()
83 ctx(dialect->getContext()) {} in DynamicTypeDefinition()
87 : name(nameRef), dialect(dialect), ctx(dialect->getContext()) {} in DynamicTypeDefinition()
198 : name(nameRef), dialect(dialect), verifier(std::move(verifier)), in DynamicAttrDefinition()
200 ctx(dialect->getContext()) {} in DynamicAttrDefinition()
204 : name(nameRef), dialect(dialect), ctx(dialect->getContext()) {} in DynamicAttrDefinition()
301 name((dialect->getNamespace() + "." + name).str()), dialect(dialect), in DynamicOpDefinition()
377 IsExtensibleDialect(Dialect *dialect) : Base(dialect) {} in IsExtensibleDialect() argument
396 assert(dialect == this && in registerDynamicType()
425 assert(dialect == this && in registerDynamicAttr()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DDialectBase.td26 // The name of the dialect.
29 // Short summary of the dialect.
32 // The description of the dialect.
36 // These are dialects that this dialect may involve in canonicalization
40 // The C++ namespace that ops of this dialect should be placed into.
53 // dialect declaration.
56 // If this dialect overrides the hook for materializing constants.
59 /// If the dialect definition provides a non-default destructor.
66 // If this dialect overrides the hook for verifying region argument
73 // If this dialect overrides the hook for op interface fallback.
[all …]
H A DExtensibleDialect.h86 ExtensibleDialect *getDialect() const { return dialect; } in getDialect()
106 ExtensibleDialect *dialect; variable
231 ExtensibleDialect *getDialect() const { return dialect; } in getDialect()
251 ExtensibleDialect *dialect; variable
348 get(StringRef name, ExtensibleDialect *dialect,
352 get(StringRef name, ExtensibleDialect *dialect,
358 get(StringRef name, ExtensibleDialect *dialect,
417 StringRef name, ExtensibleDialect *dialect,
435 ExtensibleDialect *dialect; variable
468 static bool classof(const Dialect *dialect);
[all …]
H A DDialectInterface.h36 DialectInterfaceBase(Dialect *dialect) : BaseT(dialect, getInterfaceID()) {} in DialectInterfaceBase() argument
51 Dialect *getDialect() const { return dialect; } in getDialect()
57 DialectInterface(Dialect *dialect, TypeID id) in DialectInterface() argument
58 : dialect(dialect), interfaceID(id) {} in DialectInterface()
62 Dialect *dialect;
106 const DialectInterface *getInterfaceFor(Dialect *dialect) const { in getInterfaceFor() argument
107 auto it = interfaces.find_as(dialect); in getInterfaceFor()
H A DDialect.h294 static inline bool doit(const ::mlir::Dialect &dialect) {
295 return mlir::TypeID::get<T>() == dialect.getTypeID();
302 static inline bool doit(const ::mlir::Dialect &dialect) {
303 return const_cast<::mlir::Dialect &>(dialect).getRegisteredInterface<T>();
323 doitImpl(::mlir::Dialect &dialect) {
324 return static_cast<To &>(dialect);
329 doitImpl(::mlir::Dialect &dialect) {
330 return *dialect.getRegisteredInterface<To>();
333 static auto &doit(::mlir::Dialect &dialect) { return doitImpl<T>(dialect); }
337 static auto doit(::mlir::Dialect *dialect) {
[all …]
H A DTypeSupport.h41 static AbstractType get(Dialect &dialect) { in get() argument
42 return AbstractType(dialect, T::getInterfaceMap(), T::getHasTraitFn(), in get()
50 static AbstractType get(Dialect &dialect, detail::InterfaceMap &&interfaceMap, in get() argument
52 return AbstractType(dialect, std::move(interfaceMap), std::move(hasTrait), in get()
57 Dialect &getDialect() const { return const_cast<Dialect &>(dialect); } in getDialect()
85 AbstractType(Dialect &dialect, detail::InterfaceMap &&interfaceMap, in AbstractType() argument
87 : dialect(dialect), interfaceMap(std::move(interfaceMap)), in AbstractType()
101 const Dialect &dialect; variable
/llvm-project-15.0.7/mlir/include/mlir/Conversion/
H A DPasses.td81 let summary = "Convert AMDGPU dialect to ROCDL dialect";
100 let summary = "Convert Arithmetic dialect to LLVM dialect";
118 let summary = "Convert Arithmetic dialect to SPIR-V dialect";
197 let summary = "Convert Complex dialect to LLVM dialect";
315 let summary = "Convert Func dialect to SPIR-V dialect";
392 let summary = "Convert GPU dialect to SPIR-V dialect";
492 let summary = "Convert Math dialect to LLVM dialect";
505 let summary = "Convert Math dialect to SPIR-V dialect";
553 let summary = "Convert NVGPU dialect to NVVM dialect";
657 let summary = "Convert SCF dialect to SPIR-V dialect.";
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVDialect.cpp163 if (&type.getDialect() == &dialect) in parseAndVerifyType()
285 static Type parseArrayType(SPIRVDialect const &dialect, in parseArrayType() argument
308 Type elementType = parseAndVerifyType(dialect, parser); in parseArrayType()
338 auto elementTy = parseAndVerifyType(dialect, parser); in parseCooperativeMatrixType()
360 static Type parsePointerType(SPIRVDialect const &dialect, in parsePointerType() argument
365 auto pointeeType = parseAndVerifyType(dialect, parser); in parsePointerType()
392 Type elementType = parseAndVerifyType(dialect, parser); in parseRuntimeArrayType()
406 static Type parseMatrixType(SPIRVDialect const &dialect, in parseMatrixType() argument
460 auto ty = parseAndVerifyType(dialect, parser); in parseAndVerify()
533 static Type parseImageType(SPIRVDialect const &dialect, in parseImageType() argument
[all …]
/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/python/
H A DBUILD.bazel87 # Builtin dialect.
131 # Linalg dialect.
286 # Complex dialect.
369 # Math dialect.
411 # MemRef dialect.
497 # PDL dialect.
589 # Quant dialect.
607 # SCF dialect.
650 # Shape dialect.
692 # Func dialect.
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Transform/IR/
H A DCMakeLists.txt1 # Generate the dialect files from the dialect .td.
6 mlir_tablegen(TransformDialect.h.inc -gen-dialect-decls -dialect=transform)
7 mlir_tablegen(TransformDialect.cpp.inc -gen-dialect-defs -dialect=transform)
12 add_mlir_doc(TransformOps TransformOps Dialects/ -gen-dialect-doc -dialect=transform)
H A DTransformDialect.td1 //===- TransformDialect.td - Transform dialect definition --*- tablegen -*-===//
15 let summary = "Fine-grain transformation control dialect";
40 The main use case for this dialect is orchestrating fine-grain
84 This dialect is designed to be extensible, that is, clients of this dialect
90 than defined in this dialect, hence the common prefix.
95 dialect, e.g., `transform.affine.reschedule`. For dialect-agnostic
104 Operations injected into the dialect must:
116 separate dialect extensions if desired.
327 llvm::errs() << "error: extensible dialect operation '"
356 /// operations in this dialect.
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/OpenMP/
H A DCMakeLists.txt2 mlir_tablegen(OmpCommon.td --gen-directive-decl --directives-dialect=OpenMP)
6 mlir_tablegen(OpenMPOpsDialect.h.inc -gen-dialect-decls -dialect=omp)
7 mlir_tablegen(OpenMPOpsDialect.cpp.inc -gen-dialect-defs -dialect=omp)
12 mlir_tablegen(OpenMPOpsAttributes.h.inc -gen-attrdef-decls -attrdefs-dialect=omp)
13 mlir_tablegen(OpenMPOpsAttributes.cpp.inc -gen-attrdef-defs -attrdefs-dialect=omp)
14 add_mlir_doc(OpenMPOps OpenMPDialect Dialects/ -gen-dialect-doc -dialect=omp)
/llvm-project-15.0.7/mlir/include/mlir/Dialect/OpenACC/
H A DCMakeLists.txt2 mlir_tablegen(AccCommon.td --gen-directive-decl --directives-dialect=OpenACC)
6 mlir_tablegen(OpenACCOpsDialect.h.inc -gen-dialect-decls -dialect=acc)
7 mlir_tablegen(OpenACCOpsDialect.cpp.inc -gen-dialect-defs -dialect=acc)
12 mlir_tablegen(OpenACCOpsAttributes.h.inc -gen-attrdef-decls -attrdefs-dialect=acc)
13 mlir_tablegen(OpenACCOpsAttributes.cpp.inc -gen-attrdef-defs -attrdefs-dialect=acc)
14 add_mlir_doc(OpenACCOps OpenACCDialect Dialects/ -gen-dialect-doc)
/llvm-project-15.0.7/mlir/unittests/IR/
H A DDialectTest.cpp55 TestDialectInterfaceBase(Dialect *dialect) : Base(dialect) {} in TestDialectInterfaceBase()
78 registry.addExtension(+[](MLIRContext *ctx, TestDialect *dialect) { in TEST() argument
79 dialect->addInterfaces<TestDialectInterface>(); in TEST()
103 +[](MLIRContext *ctx, SecondTestDialect *dialect) { in TEST() argument
104 dialect->addInterfaces<SecondTestDialectInterface>(); in TEST()
116 registry.addExtension(+[](MLIRContext *ctx, TestDialect *dialect) { in TEST() argument
117 dialect->addInterfaces<TestDialectInterface>(); in TEST()
131 secondRegistry.addExtension(+[](MLIRContext *ctx, TestDialect *dialect) { in TEST() argument
132 dialect->addInterfaces<TestDialectInterface>(); in TEST()
/llvm-project-15.0.7/mlir/docs/
H A DDefiningDialects.md46 // our dialect.
53 My dialect is a very important dialect. This section contains a much more
74 dialect that should happen on construction. This hook is declared for every dialect to
117 generally relies on the components of another dialect, a dialect dependency should be explicitly
223 dialect to ensure the attribute is verified. The hook necessary for the dialect to implement
258 the dialect. If all of the attributes and types of the dialect provide a mnemonic,
268 patterns to be added to the dialect-level. For example, if a dialect defines a canonicalization
335 ## Defining an Extensible dialect
342 ### Defining an extensible dialect argument
478 // The dialect defining the type.
[all …]
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DFoldUtils.cpp50 static Operation *materializeConstant(Dialect *dialect, OpBuilder &builder, in materializeConstant() argument
186 for (auto *dialect : it->second) in notifyRemoval() local
187 uniquedConstants.erase(std::make_tuple(dialect, constValue, type)); in notifyRemoval()
213 Operation *constOp = tryGetOrCreateConstant(uniquedConstants, dialect, in getOrCreateConstant()
282 auto *dialect = op->getDialect(); in processFoldResults() local
335 ConstantMap &uniquedConstants, Dialect *dialect, OpBuilder &builder, in tryGetOrCreateConstant() argument
338 auto constKey = std::make_tuple(dialect, value, type); in tryGetOrCreateConstant()
349 if (newDialect == dialect) { in tryGetOrCreateConstant()
350 referencedDialects[constOp].push_back(dialect); in tryGetOrCreateConstant()
362 referencedDialects[existingOp].push_back(dialect); in tryGetOrCreateConstant()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Analysis/DataFlow/
H A DConstantPropagationAnalysis.h32 ConstantValue(Attribute knownValue = {}, Dialect *dialect = nullptr)
33 : constant(knownValue), dialect(dialect) {} in constant()
39 Dialect *getConstantDialect() const { return dialect; } in getConstantDialect()
63 Dialect *dialect; variable
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tensor/IR/
H A DTensorBase.td1 //===- TensorBase.td - Base definitions for tensor dialect -*- tablegen -*-===//
19 The `tensor` dialect is intended to hold core tensor creation and
21 other dialect or domain abstraction. The primary smoke test of this is ops
32 - representing shapes in the `shape` dialect, which consist of small
38 Thus, for the `tensor` dialect, we prefer for now to constrain the
40 in the future, the `tensor` dialect’s scope may be broadened through a
44 dialect), and does not live in this dialect.
/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DCMakeLists.txt11 mlir_tablegen(LLVMOpsDialect.h.inc -gen-dialect-decls)
12 mlir_tablegen(LLVMOpsDialect.cpp.inc -gen-dialect-defs)
44 add_mlir_doc(NVVMOps NVVMDialect Dialects/ -gen-dialect-doc -dialect=nvvm)
49 mlir_tablegen(NVVMOpsAttributes.h.inc -gen-attrdef-decls -attrdefs-dialect=nvvm)
50 mlir_tablegen(NVVMOpsAttributes.cpp.inc -gen-attrdef-defs -attrdefs-dialect=nvvm)
54 add_mlir_doc(ROCDLOps ROCDLDialect Dialects/ -gen-dialect-doc -dialect=rocdl)
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/ODS/
H A DContext.cpp51 std::unique_ptr<Dialect> &dialect = dialects[name]; in insertDialect() local
52 if (!dialect) in insertDialect()
53 dialect.reset(new Dialect(name)); in insertDialect()
54 return *dialect; in insertDialect()
74 if (const Dialect *dialect = lookupDialect(dialectAndName.first)) in lookupOperation() local
75 return dialect->lookupOperation(name); in lookupOperation()
107 for (const Dialect *dialect : sortMapByName(dialects)) { in print() local
108 printer.startLine() << "Dialect `" << dialect->getName() << "` {\n"; in print()
111 for (const Operation *op : sortMapByName(dialect->getOperations())) { in print()
/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Dstmt.pdll56 // CHECK: `-VariableDecl {{.*}} Name<var> Type<Op<dialect.op>>
61 // CHECK: `-OpNameDecl {{.*}} Name<dialect.op>
63 let var: [Op, Op<dialect.op>];
73 // CHECK: `-VariableDecl {{.*}} Name<var> Type<Op<dialect.op>>
74 // CHECK: `-DeclRefExpr {{.*}} Type<Op<dialect.op>>
80 let input: Op<dialect.op>;
93 // CHECK: `-DeclRefExpr {{.*}} Type<Op<dialect.op>>
98 let input: Op<dialect.op>;
111 // CHECK: `-DeclRefExpr {{.*}} Type<Op<dialect.op>>
116 let input: Op<dialect.op>;

12345678910>>...22