Skip to content

Commit eabcd20

Browse files
Sidorenko, Antonaus-intel
authored andcommitted
Add jump_table intrinsic
1 parent 82711ce commit eabcd20

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

GenXIntrinsics/include/llvm/GenXIntrinsics/Intrinsic_definitions.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3529,5 +3529,19 @@
35293529
## used across all memory instructions. This is needed to encode
35303530
## SPIRV with appropriate types for kernel arguments.
35313531
##
3532-
"address_convert" : ["anyint",["anyptr"],"NoMem"]
3532+
"address_convert" : ["anyint",["anyptr"],"NoMem"],
3533+
3534+
## ``llvm.genx.jump.table`` : CMC internal, no VISA
3535+
## ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3536+
##
3537+
## * arg0: integer BasicBlock index in the full set of destinations
3538+
## * arg1-N: the full set of switch labels
3539+
##
3540+
## * Return value: selected label
3541+
##
3542+
## The intrinsic is a helper for switch jump tables generation. Arg0
3543+
## will be used by visa switchjmp as index. Return value and arg1-N are
3544+
## used to make ir semantically legal.
3545+
##
3546+
"jump_table" : ["anyptr", ["anyint", "vararg"], "NoMem"]
35333547
}

0 commit comments

Comments
 (0)