9 #ifndef MLIR_CONVERSION_VECTORTOGPU_VECTORTOGPU_H
10 #define MLIR_CONVERSION_VECTORTOGPU_VECTORTOGPU_H
17 class RewritePatternSet;
19 #define GEN_PASS_DECL_CONVERTVECTORTOGPU
20 #include "mlir/Conversion/Passes.h.inc"
27 bool useNvGpu =
false);
Include the generated interface declarations.
void populatePrepareVectorToMMAPatterns(RewritePatternSet &patterns, bool useNvGpu=false)
Patterns to transform vector ops into a canonical form to convert to MMA matrix operations.
LogicalResult convertVectorToNVVMCompatibleMMASync(RewriterBase &rewriter, Operation *rootOp)
Convert vector ops ops nested under rootOp to vector and GPU operaitons compatible with the nvvm....
std::unique_ptr< Pass > createConvertVectorToGPUPass(bool useNvGpu=false)
Convert from vector to GPU ops.
LogicalResult convertVectorToMMAOps(RewriterBase &rewriter, Operation *rootOp)
Convert vector ops to MMA matrix operations nested under rootOp.