8 #ifndef MLIR_CONVERSION_GPUTOROCDL_GPUTOROCDLPASS_H_
9 #define MLIR_CONVERSION_GPUTOROCDL_GPUTOROCDLPASS_H_
17 class LLVMTypeConverter;
18 class ConversionTarget;
19 class RewritePatternSet;
21 template <
typename OpT>
32 #define GEN_PASS_DECL_CONVERTGPUOPSTOROCDLOPS
33 #include "mlir/Conversion/Passes.h.inc"
41 amdgpu::Chipset chipset);
Runtime
Potential runtimes for AMD GPU kernels.
Include the generated interface declarations.
void populateGpuToROCDLConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, gpu::amd::Runtime runtime, amdgpu::Chipset chipset)
Collect a set of patterns to convert from the GPU dialect to ROCDL.
void configureGpuToROCDLConversionLegality(ConversionTarget &target)
Configure target to convert from the GPU dialect to ROCDL.
const FrozenRewritePatternSet & patterns
Represents the amdgpu gfx chipset version, e.g., gfx90a, gfx942, gfx1103.