[Mlir-commits] [mlir] [MLIR][NVVM] Add nanosleep (PR #154697)
Pradeep Kumar
llvmlistbot at llvm.org
Thu Aug 21 02:40:00 PDT 2025
================
@@ -401,6 +401,36 @@ def NVVM_ReduxOp :
}];
}
+//===----------------------------------------------------------------------===//
+// NVVM nanosleep
+//===----------------------------------------------------------------------===//
+
+def NVVM_NanosleepOp : NVVM_Op<"nanosleep">,
+ Arguments<(ins
+ ConfinedAttr<I32Attr, [IntMinValue<1>, IntMaxValue<1000000>]>:$duration)>
----------------
schwarzschild-radius wrote:
@grypp Should this be an SSA value instead of an attribute? PTX spec says "`t` may be a register or an immediate value."
https://github.com/llvm/llvm-project/pull/154697
More information about the Mlir-commits
mailing list