MLIR  20.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 
52 
53 #include <cstdlib>
54 
55 namespace mlir {
56 
57 /// This function may be called to register all MLIR dialect extensions with the
58 /// provided registry.
59 /// If you're building a compiler, you generally shouldn't use this: you would
60 /// individually register the specific extensions that are useful for the
61 /// pipelines and transformations you are using.
62 inline void registerAllExtensions(DialectRegistry &registry) {
63  // Register all conversions to LLVM extensions.
79 
80  // Register all transform dialect extensions.
97 
98  // Translation extensions need to be registered by calling
99  // `registerAllToLLVMIRTranslations` (see All.h).
100 }
101 
102 } // namespace mlir
103 
104 #endif // MLIR_INITALLEXTENSIONS_H_
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void registerConvertGpuToNVVMInterface(DialectRegistry &registry)
Registers the ConvertToLLVMAttrInterface interface on the NVVM::NVVMTargetAttr attribute.
void registerTransformDialectExtension(DialectRegistry &registry)
void registerConvertArithToLLVMInterface(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerConvertControlFlowToLLVMInterface(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerTransformDialectExtension(DialectRegistry &registry)
void registerAllExtensions(DialectRegistry &registry)
Register all extensions of the func dialect.
void registerTransformDialectExtension(DialectRegistry &registry)
void registerConvertGpuToLLVMInterface(DialectRegistry &registry)
Registers the ConvertToLLVMOpInterface interface on the gpu::GPUModuleOP operation.
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 registerAllExtensions(DialectRegistry &registry)
Register all extensions of the Tensor dialect.
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:833
void registerConvertComplexToLLVMInterface(DialectRegistry &registry)
void registerConvertOpenMPToLLVMInterface(DialectRegistry &registry)
Registers the ConvertToLLVMPatternInterface interface in the OpenMP dialect.
void registerConvertAMXToLLVMInterface(DialectRegistry &registry)
Register LLVM conversion interface for AMX dialect.
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:115