#include "mlir/Target/LLVMIR/Dialect/GPU/GPUToLLVMIRTranslation.h"
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
#include "mlir/Target/LLVMIR/LLVMTranslationInterface.h"
#include "llvm/ADT/TypeSwitch.h"
usingnamespacemlir;
namespace {
LogicalResult launchKernel(gpu::LaunchFuncOp launchOp,
llvm::IRBuilderBase &builder,
LLVM::ModuleTranslation &moduleTranslation) { … }
class GPUDialectLLVMIRTranslationInterface
: public LLVMTranslationDialectInterface { … };
}
void mlir::registerGPUDialectTranslation(DialectRegistry ®istry) { … }
void mlir::registerGPUDialectTranslation(MLIRContext &context) { … }