[Mlir-commits] [mlir] [MLIR][NVVM] Add trap (PR #120247)

Guray Ozen llvmlistbot at llvm.org
Tue Dec 17 08:28:31 PST 2024


================
@@ -2333,6 +2312,41 @@ def NVVM_Breakpoint : NVVM_Op<"breakpoint"> {
   let assemblyFormat = "attr-dict";
 }
 
+def NVVM_Trap : NVVM_Op<"trap"> {
----------------
grypp wrote:

Do you mean `llvm.intr.trap`? Right, we could use that. I don't have a strong opinion.. But it might be easy to codegen. 

The NVVM dialect also has `nvvm.breakpoint`, which is the same as `llvm.intr.debugtrap`.

If we want to use LLVM's version, should we also remove `nvvm.breakpoint`?

https://github.com/llvm/llvm-project/pull/120247


More information about the Mlir-commits mailing list