File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,16 @@ Calling convention
392
392
A function with ``spir_kernel `` calling convention will be translated as an entry
393
393
point of the SPIR-V module.
394
394
395
+ Global variables
396
+ ----------------
397
+
398
+ A global variable resides in an address space, and the default address space
399
+ in LLVM is zero. The SPIR-V storage class represented by the zero LLVM IR
400
+ address spaces is Function. However, SPIR-V global variable declarations are
401
+ ``OpVariable `` instructions whose Storage Class cannot be ``Function ``. This
402
+ means that global variable declarations must always have an address space
403
+ specified and that address space cannot be ``0 ``.
404
+
395
405
Function metadata
396
406
-----------------
397
407
You can’t perform that action at this time.
0 commit comments