MLIR  19.0.0git
InitAllExtensions.h
Go to the documentation of this file.
1 //===- InitAllExtensions.h - MLIR Extension Registration --------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines a helper to trigger the registration of all dialect
10 // extensions to the system.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_INITALLEXTENSIONS_H_
15 #define MLIR_INITALLEXTENSIONS_H_
16 
46 
47 #include <cstdlib>
48 
49 namespace mlir {
50 
51 /// This function may be called to register all MLIR dialect extensions with the
52 /// provided registry.
53 /// If you're building a compiler, you generally shouldn't use this: you would
54 /// individually register the specific extensions that are useful for the
55 /// pipelines and transformations you are using.
56 inline void registerAllExtensions(DialectRegistry &registry) {
57  // Register all conversions to LLVM extensions.
68 
69  // Register all transform dialect extensions.
85 
86  // Translation extensions need to be registered by calling
87  // `registerAllToLLVMIRTranslations` (see All.h).
88 }
89 
90 } // namespace mlir
91 
92 #endif // MLIR_INITALLEXTENSIONS_H_
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void registerTransformDialectExtension(DialectRegistry &registry)
void registerConvertArithToLLVMInterface(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerConvertControlFlowToLLVMInterface(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerAllExtensions(DialectRegistry &registry)
Register all extensions of the func dialect.
void registerTransformDialectExtension(DialectRegistry &registry)
void registerConvertIndexToLLVMInterface(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerLoopExtension(DialectRegistry &dialectRegistry)
Registers the loop extension of the Transform dialect in the given registry.
void registerIRDLExtension(DialectRegistry &dialectRegistry)
Registers the IRDL extension of the Transform dialect in the given registry.
void registerDebugExtension(DialectRegistry &dialectRegistry)
Registers the debug extension of the Transform dialect in the given registry.
void registerPDLExtension(DialectRegistry &dialectRegistry)
Registers the PDL extension of the Transform dialect in the given registry.
void registerConvertUBToLLVMInterface(DialectRegistry &registry)
Definition: UBToLLVM.cpp:121
void registerTransformDialectExtension(DialectRegistry &registry)
Include the generated interface declarations.
void registerConvertMemRefToLLVMInterface(DialectRegistry &registry)
void registerConvertFuncToLLVMInterface(DialectRegistry &registry)
Definition: FuncToLLVM.cpp:857
void registerConvertComplexToLLVMInterface(DialectRegistry &registry)
void registerAllExtensions(DialectRegistry &registry)
This function may be called to register all MLIR dialect extensions with the provided registry.
void registerConvertMathToLLVMInterface(DialectRegistry &registry)
Definition: MathToLLVM.cpp:358
void registerConvertNVVMToLLVMInterface(DialectRegistry &registry)
Definition: NVVMToLLVM.cpp:116