Skip to content

Commit 879a292

Browse files
committed
refine commits
1 parent b530b81 commit 879a292

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/docs/NVPTXUsage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ prefetched in terms of bytes and it must be a multiple of 16.
575575

576576
* The last argument to these intrinsics is boolean flag indicating
577577
support for cache_hint. These flag argument must be compile-time
578-
constant. When set, indicates a valid cache_hint (``i64 %ch``)
578+
constant. When set, it indicates a valid cache_hint (``i64 %ch``)
579579
and generates the ``.L2::cache_hint`` variant of the PTX instruction.
580580

581581
For more information, refer PTX ISA

llvm/lib/Target/NVPTX/NVPTXIntrinsics.td

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,13 +554,11 @@ multiclass CP_ASYNC_BULK_PREFETCH_INTR {
554554
defvar prefetch = "cp.async.bulk.prefetch.L2.global";
555555
def NAME: NVPTXInst<(outs),
556556
(ins Int64Regs:$src, Int32Regs:$size),
557-
!strconcat(prefetch," [$src], $size;"),
558-
[]>,
557+
!strconcat(prefetch, " [$src], $size;"), []>,
559558
Requires<[hasPTX<80>, hasSM<90>]>;
560559
def NAME # _CH: NVPTXInst<(outs),
561560
(ins Int64Regs:$src, Int32Regs:$size, Int64Regs:$ch),
562-
!strconcat(prefetch,".L2::cache_hint [$src], $size, $ch;"),
563-
[]>,
561+
!strconcat(prefetch, ".L2::cache_hint [$src], $size, $ch;"), []>,
564562
Requires<[hasPTX<80>, hasSM<90>]>;
565563
}
566564

0 commit comments

Comments
 (0)