mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-25 05:06:38 +03:00
54 lines
2.2 KiB
Plaintext
54 lines
2.2 KiB
Plaintext
OpCapability GenericPointer
|
|
OpCapability Linkage
|
|
OpCapability Addresses
|
|
OpCapability Kernel
|
|
OpCapability Int8
|
|
OpCapability Int16
|
|
OpCapability Int64
|
|
OpCapability Float16
|
|
OpCapability Float64
|
|
%21 = OpExtInstImport "OpenCL.std"
|
|
OpMemoryModel Physical64 OpenCL
|
|
OpEntryPoint Kernel %2 "global_array" %1
|
|
%void = OpTypeVoid
|
|
%uint = OpTypeInt 32 0
|
|
%uint_4 = OpConstant %uint 4
|
|
%_arr_uint_uint_4 = OpTypeArray %uint %uint_4
|
|
%uint_1 = OpConstant %uint 1
|
|
%uint_0 = OpConstant %uint 0
|
|
%28 = OpConstantComposite %_arr_uint_uint_4 %uint_1 %uint_0 %uint_0 %uint_0
|
|
%uint_4_0 = OpConstant %uint 4
|
|
%_ptr_CrossWorkgroup__arr_uint_uint_4 = OpTypePointer CrossWorkgroup %_arr_uint_uint_4
|
|
%1 = OpVariable %_ptr_CrossWorkgroup__arr_uint_uint_4 CrossWorkgroup %28
|
|
%ulong = OpTypeInt 64 0
|
|
%32 = OpTypeFunction %void %ulong %ulong
|
|
%_ptr_Function_ulong = OpTypePointer Function %ulong
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
|
|
%2 = OpFunction %void None %32
|
|
%8 = OpFunctionParameter %ulong
|
|
%9 = OpFunctionParameter %ulong
|
|
%19 = OpLabel
|
|
%3 = OpVariable %_ptr_Function_ulong Function
|
|
%4 = OpVariable %_ptr_Function_ulong Function
|
|
%5 = OpVariable %_ptr_Function_ulong Function
|
|
%6 = OpVariable %_ptr_Function_ulong Function
|
|
%7 = OpVariable %_ptr_Function_uint Function
|
|
OpStore %3 %8
|
|
OpStore %4 %9
|
|
%16 = OpConvertPtrToU %ulong %1
|
|
%10 = OpCopyObject %ulong %16
|
|
OpStore %5 %10
|
|
%11 = OpLoad %ulong %4
|
|
OpStore %6 %11
|
|
%13 = OpLoad %ulong %5
|
|
%17 = OpConvertUToPtr %_ptr_CrossWorkgroup_uint %13
|
|
%12 = OpLoad %uint %17
|
|
OpStore %7 %12
|
|
%14 = OpLoad %ulong %6
|
|
%15 = OpLoad %uint %7
|
|
%18 = OpConvertUToPtr %_ptr_CrossWorkgroup_uint %14
|
|
OpStore %18 %15
|
|
OpReturn
|
|
OpFunctionEnd
|