[Mlir-commits] [mlir] [MLIR][NVVM] Update Op verifiers to prevent ungraceful exits (PR #165677)

Srinivasa Ravi llvmlistbot at llvm.org
Mon Nov 3 04:29:06 PST 2025


================
@@ -0,0 +1,8 @@
+// RUN: mlir-translate -verify-diagnostics -split-input-file -mlir-to-llvmir %s
+
+// -----
+
+func.func @nvvm_invalid_shfl_pred(%arg0 : i32, %arg1 : f32, %arg2 : i32, %arg3 : i32) {
+  // expected-error at +1 {{"return_value_and_is_valid" attribute must be specified when returning the predicate}}
----------------
Wolfram70 wrote:

Makes sense. I've updated the error message, thanks!

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


More information about the Mlir-commits mailing list