Skip to content

Commit f9c3440

Browse files
vmustyasys-cmllvm
authored andcommitted
Add an intrinsic for named barrier arrive/signal operation
.
1 parent 1ba2c43 commit f9c3440

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

GenXIntrinsics/include/llvm/GenXIntrinsics/Intrinsic_definitions.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ========================== begin_copyright_notice ============================
22
#
3-
# Copyright (C) 2019-2023 Intel Corporation
3+
# Copyright (C) 2019-2024 Intel Corporation
44
#
55
# SPDX-License-Identifier: MIT
66
#
@@ -4281,8 +4281,27 @@
42814281
###
42824282
"nbarrier" : { "result" : "void",
42834283
"arguments" : ["char","char","char"],
4284-
"attributes" : "Convergent"
4285-
},
4284+
"attributes" : "SideEffects",
4285+
"platforms" : "XeHPC+", },
4286+
4287+
### ``llvm.genx.nbarrier.arrive`` : Named barrier arrive operation
4288+
### ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4289+
###
4290+
### * arg0: i8 barrier id
4291+
### * arg1: i8 thread role
4292+
### * arg2: i8 number of producers
4293+
### * arg3: i8 number of consumers
4294+
###
4295+
### Thread roles are the following:
4296+
### - 0: the thread is a barrier producer and consumer
4297+
### - 1: the thread is only a barrier producer
4298+
### - 2: the thread is only a barrier consumer
4299+
### - other values are invalid
4300+
###
4301+
"nbarrier_arrive" : { "result" : "void",
4302+
"arguments" : ["char", "char", "char", "char"],
4303+
"attributes" : "SideEffects",
4304+
"platforms" : "XeHPC+", },
42864305

42874306
### ``llvm.genx.cache.flush`` : vISA CACHE_FLUSH instruction
42884307
### ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)