The `test-lower-to-nvvm` pipeline serves as the common and proper pipeline for nvvm+host compilation, and it's used across our CUDA integration tests. This PR updates the `test-lower-to-nvvm` pipeline to `gpu-lower-to-nvvm` and moves it within `InitAllPasses.h`. The aim is to call it from Python, also having a standardize compilation process for nvvm.
14 lines
313 B
MLIR
14 lines
313 B
MLIR
// RUN: mlir-opt %s \
|
|
// RUN: | mlir-opt -gpu-lower-to-nvvm -debug-only=serialize-to-isa \
|
|
// RUN: 2>&1 | FileCheck %s
|
|
|
|
// CHECK: Generated by LLVM NVPTX Back-End
|
|
// CHECK: .visible .func kernel_a()
|
|
// CHECK: ret;
|
|
gpu.module @bar {
|
|
llvm.func @kernel_a()
|
|
attributes { gpu.kernel } {
|
|
llvm.return
|
|
}
|
|
}
|