File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed
include/mlir/Dialect/LLVMIR Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -512,8 +512,7 @@ def NVVM_ReduxOp :
512512//===----------------------------------------------------------------------===//
513513
514514def NVVM_NanosleepOp : NVVM_Op<"nanosleep">,
515- Arguments<(ins
516- ConfinedAttr<I32Attr, [IntMinValue<1>, IntMaxValue<1000000>]>:$duration)>
515+ Arguments<(ins I32:$duration)>
517516{
518517 let summary = "Suspends the thread for a specified duration.";
519518
@@ -531,8 +530,7 @@ def NVVM_NanosleepOp : NVVM_Op<"nanosleep">,
531530
532531 string llvmBuilder = [{
533532 createIntrinsicCall(builder,
534- llvm::Intrinsic::nvvm_nanosleep,
535- {builder.getInt32($duration)});
533+ llvm::Intrinsic::nvvm_nanosleep, {$duration});
536534 }];
537535 let assemblyFormat = "attr-dict $duration";
538536}
Original file line number Diff line number Diff line change @@ -578,14 +578,6 @@ llvm.func @ld_matrix(%arg0: !llvm.ptr<3>) {
578578
579579// -----
580580
581- llvm.func @nanosleep () {
582- // expected-error@+1 {{integer constant out of range for attribute}}
583- nvvm.nanosleep 100000000000000
584- llvm.return
585- }
586-
587- // -----
588-
589581llvm.func @clusterlaunchcontrol_query_cancel_is_canceled_invalid_return_type (%try_cancel_response: i128 ) {
590582 // expected-error@+1 {{'nvvm.clusterlaunchcontrol.query.cancel' op is_canceled query type returns an i1}}
591583 %res = nvvm.clusterlaunchcontrol.query.cancel query = is_canceled , %try_cancel_response : i32
Original file line number Diff line number Diff line change @@ -970,8 +970,8 @@ llvm.func @nvvm_pmevent() {
970970// -----
971971
972972// CHECK-LABEL: @nanosleep
973- llvm.func @nanosleep () {
974- // CHECK: call void @llvm.nvvm.nanosleep(i32 4000 )
975- nvvm.nanosleep 4000
973+ llvm.func @nanosleep (%duration: i32 ) {
974+ // CHECK: call void @llvm.nvvm.nanosleep(i32 %{{.*}} )
975+ nvvm.nanosleep %duration
976976 llvm.return
977977}
You can’t perform that action at this time.
0 commit comments