@@ -105,9 +105,9 @@ mlir::FailureOr<mlir::OpPassManager> GetPassPipeline(
105
105
mlir::registerConvertFuncToLLVMPass ();
106
106
mlir::registerConvertAffineToStandard ();
107
107
mlir::registerReconcileUnrealizedCasts ();
108
- mlir::registerGpuToLLVMConversionPass ();
109
108
// TODO(apaszke): Only register the passes we actually use.
110
109
mlir::memref::registerMemRefPasses ();
110
+ mlir::registerConvertToLLVMPass ();
111
111
mlir::registerGPUPasses ();
112
112
mosaic::gpu::registerGpuLaunchLoweringPass ();
113
113
mosaic::gpu::registerConvertGpuToLLVMPass ();
@@ -140,11 +140,12 @@ mlir::FailureOr<mlir::OpPassManager> GetPassPipeline(
140
140
convert-math-to-llvm{approximate-log1p=true},
141
141
canonicalize{max-iterations=10 max-num-rewrites=-1 region-simplify=true test-convergence=false top-down=true},
142
142
cse,
143
- reconcile-unrealized-casts, )" +
143
+ )" +
144
144
(target != mlir::gpu::CompilationTarget::Assembly ? " gpu-launch-lowering,"
145
145
: " " ) +
146
146
R"(
147
- convert-func-to-llvm{index-bitwidth=0 use-bare-ptr-memref-call-conv=false}
147
+ convert-to-llvm,
148
+ reconcile-unrealized-casts
148
149
)
149
150
)" );
150
151
}
@@ -170,9 +171,9 @@ void InitContext(mlir::MLIRContext* context) {
170
171
mlir::registerConvertFuncToLLVMInterface (registry);
171
172
mlir::index::registerConvertIndexToLLVMInterface (registry);
172
173
mlir::cf::registerConvertControlFlowToLLVMInterface (registry);
173
- mlir::ub::registerConvertUBToLLVMInterface (registry); // Arith needs this
174
+ mlir::ub::registerConvertUBToLLVMInterface (registry);
174
175
mlir::arith::registerConvertArithToLLVMInterface (registry);
175
- mlir::registerFinalizeMemRefToLLVMConversionPass ( );
176
+ mlir::registerConvertMemRefToLLVMInterface (registry );
176
177
mlir::gpu::registerOffloadingLLVMTranslationInterfaceExternalModels (registry);
177
178
mlir::NVVM::registerNVVMTargetInterfaceExternalModels (registry);
178
179
mlir::registerBuiltinDialectTranslation (registry);
0 commit comments