Skip to content

Commit a08fe5b

Browse files
committed
Add internal llvm.genx.gaddr intrinsic for constant/global table support
1 parent cf29e35 commit a08fe5b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

GenXIntrinsics/include/llvm/GenXIntrinsics/Intrinsic_definitions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,6 +3415,18 @@
34153415
##
34163416
"address_convert" : ["anyint",["anyptr"],"NoMem"],
34173417

3418+
## ``llvm.genx.gaddr`` : take an address of a global variable
3419+
## ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3420+
##
3421+
## The semantics of this intrinsic is equal to ptrtoint instruction.
3422+
## Only global variable can be an argument of this intrinsic.
3423+
##
3424+
## * arg0: global variable
3425+
##
3426+
## * Return value: i64/i32 (depending on data layout) value of pointer
3427+
##
3428+
"gaddr" : ["anyint", ["anyptr"], "NoMem"],
3429+
34183430
## ``llvm.genx.jump.table`` : CMC internal, no VISA
34193431
## ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34203432
##

0 commit comments

Comments
 (0)