Skip to content

Commit

Permalink
Fix pipeline + update syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-smnk committed Feb 18, 2025
1 parent 646a43f commit 1712cf8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
9 changes: 5 additions & 4 deletions lib/TPP/DefaultPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,14 @@ struct DefaultPipeline : public tpp::impl::DefaultPipelineBase<DefaultPipeline>,
pm.addPass(createAsyncRuntimeRefCountingPass());
pm.addPass(createConvertAsyncToLLVMPass());
pm.addPass(createConvertIndexToLLVMPass());
pm.addPass(createUBToLLVMConversionPass());

pm.addPass(createConvertFuncToLLVMPass());

pm.addNestedPass<func::FuncOp>(createArithToLLVMConversionPass());
pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
pm.addNestedPass<func::FuncOp>(createCSEPass());
pm.addPass(createArithToLLVMConversionPass());
pm.addPass(createConvertControlFlowToLLVMPass());
pm.addPass(createUBToLLVMConversionPass());
pm.addPass(createCanonicalizerPass());
pm.addPass(createCSEPass());
pm.addPass(createReconcileUnrealizedCastsPass());

// Anything useful has been lowered by now.
Expand Down
2 changes: 1 addition & 1 deletion test/GPU/CUDA/Integration/gpu-printf.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module attributes {gpu.container_module} {
%0 = gpu.thread_id x
%csti8 = arith.constant 2 : i8
%cstf32 = arith.constant 3.0 : f32
gpu.printf "Hello from %lld, %d, %f\n" %0, %csti8, %cstf32 : index, i8, f32
gpu.printf "Hello from %lld, %d, %f\n", %0, %csti8, %cstf32 : index, i8, f32
gpu.return
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/GPU/set-spirv-abi-attr.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module attributes {gpu.container_module} {
%b1 = gpu.block_id y
%t0 = gpu.thread_id x
%t1 = gpu.thread_id y
gpu.printf "Block (%lld, %lld, 1) - Thread (%lld, %lld, 1)\n" %b0, %b1, %t0, %t1 : index, index, index, index
gpu.printf "Block (%lld, %lld, 1) - Thread (%lld, %lld, 1)\n", %b0, %b1, %t0, %t1 : index, index, index, index
gpu.return
}
}
Expand Down
2 changes: 0 additions & 2 deletions test/Passes/DefaultPipeline/default-pipeline.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ func.func @matmul(%A: tensor<4x8xf32>,
// CHECK: llvm.func @xsmm_gemm_invoke
// CHECK: llvm.func @xsmm_gemm_dispatch
// CHECK: llvm.func @matmul(%[[ARG0:.+]]: !llvm.ptr,
// CHECK: llvm.insertvalue
// CHECK: llvm.mlir.constant
// CHECK: llvm.call @xsmm_gemm_dispatch
// CHECK: llvm.call @xsmm_gemm_invoke
// CHECK: llvm.return

0 comments on commit 1712cf8

Please sign in to comment.