[Mlir-commits] [mlir] [MLIR][NVVM] Add nanosleep (PR #154697)
Guray Ozen
llvmlistbot at llvm.org
Thu Aug 21 13:02: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)>
----------------
grypp wrote:
You're right. I added this op just by looking at PTX instruction. My bad. Let me change this SSA value.
https://github.com/llvm/llvm-project/pull/154697
More information about the Mlir-commits
mailing list