[all-commits] [llvm/llvm-project] 5d9d89: [NVPTX] Add more clear error message for using inv...

Stefan Mada via All-commits all-commits at lists.llvm.org
Mon Nov 3 14:22:47 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d9d89092e0fd34f3ea2ca15c9f30d4c01bb29f3
      https://github.com/llvm/llvm-project/commit/5d9d89092e0fd34f3ea2ca15c9f30d4c01bb29f3
  Author: Stefan Mada <smada at nvidia.com>
  Date:   2025-11-03 (Mon, 03 Nov 2025)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h
    A llvm/test/CodeGen/NVPTX/cmpxchg-unsupported-syncscope.err.ll

  Log Message:
  -----------
  [NVPTX] Add more clear error message for using invalid syncscope (#165737)

Using invalid syncscopes on certain NVVM intrinsics causes an obscure
error to appear: (error 9: NVVM_ERROR_COMPILATION), libNVVM extra log:
Could not find scope ID=5.

This is not a very helpful error. A much more useful error would be
something like 'NVPTX does not support syncscope "agent"'

This would immediately make it clear that the issue is not NVPTX
specific, but actually from code being fed to NVPTX. This would save
users time in debugging issues related to this.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list