MLIR  22.0.0git
RegisterAllExtensions.cpp
Go to the documentation of this file.
1 //===- RegisterAllExtensions.cpp - 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 #include "mlir/InitAllExtensions.h"
15 
63 
64 /// This function may be called to register all MLIR dialect extensions with the
65 /// provided registry.
66 /// If you're building a compiler, you generally shouldn't use this: you would
67 /// individually register the specific extensions that are useful for the
68 /// pipelines and transformations you are using.
70  // Register all conversions to LLVM extensions.
94 
95  // Register all transform dialect extensions.
115 
116  // Translation extensions need to be registered by calling
117  // `registerAllToLLVMIRTranslations` (see All.h).
118 }
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 registerConvertControlFlowToLLVMInterface(DialectRegistry &registry)
void registerAllExtensions(DialectRegistry &registry)
Register all extensions of the func dialect.
void registerConvertGpuToLLVMInterface(DialectRegistry &registry)
Registers the ConvertToLLVMOpInterface interface on the gpu::GPUModuleOP operation.
void registerConvertIndexToLLVMInterface(DialectRegistry &registry)
void registerConvertMPIToLLVMInterface(DialectRegistry &registry)
Definition: MPIToLLVM.cpp:809
void registerConvertPtrToLLVMInterface(DialectRegistry &registry)
Register the convert to LLVM interface for the ptr dialect.
Definition: PtrToLLVM.cpp:437
void registerLoopExtension(DialectRegistry &dialectRegistry)
Registers the loop extension of the Transform dialect in the given registry.
void registerTuneExtension(DialectRegistry &dialectRegistry)
Registers the tune 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 registerConvertVectorToLLVMInterface(DialectRegistry &registry)
void registerConvertMemRefToLLVMInterface(DialectRegistry &registry)
void registerConvertFuncToEmitCInterface(DialectRegistry &registry)
Definition: FuncToEmitC.cpp:39
void registerConvertArithToEmitCInterface(DialectRegistry &registry)
void registerConvertFuncToLLVMInterface(DialectRegistry &registry)
Definition: FuncToLLVM.cpp:884
void registerConvertComplexToLLVMInterface(DialectRegistry &registry)
void registerConvertOpenMPToLLVMInterface(DialectRegistry &registry)
Registers the ConvertToLLVMPatternInterface interface in the OpenMP dialect.
void registerConvertMemRefToEmitCInterface(DialectRegistry &registry)
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:431
void registerConvertNVVMToLLVMInterface(DialectRegistry &registry)
Definition: NVVMToLLVM.cpp:116
void registerConvertXeVMToLLVMInterface(DialectRegistry &registry)
Definition: XeVMToLLVM.cpp:631
void registerConvertSCFToEmitCInterface(DialectRegistry &registry)
Definition: SCFToEmitC.cpp:50