fabianmcg wrote: @MikaOvO could you add some unit tests here https://github.com/llvm/llvm-project/tree/main/mlir/unittests/Target/LLVM ? It could be in SerializeNVVMTarget.cpp https://github.com/llvm/llvm-project/pull/116007