mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-12 10:48:53 +03:00
72 lines
2.9 KiB
Plaintext
72 lines
2.9 KiB
Plaintext
OpCapability GenericPointer
|
|
OpCapability Linkage
|
|
OpCapability Addresses
|
|
OpCapability Kernel
|
|
OpCapability Int8
|
|
OpCapability Int16
|
|
OpCapability Int64
|
|
OpCapability Float16
|
|
OpCapability Float64
|
|
OpCapability DenormFlushToZero
|
|
%37 = OpExtInstImport "OpenCL.std"
|
|
OpMemoryModel Physical64 OpenCL
|
|
OpEntryPoint Kernel %4 "call"
|
|
OpExecutionMode %4 ContractionOff
|
|
OpDecorate %4 LinkageAttributes "call" Export
|
|
OpDecorate %1 LinkageAttributes "incr" Export
|
|
%void = OpTypeVoid
|
|
%ulong = OpTypeInt 64 0
|
|
%40 = OpTypeFunction %void %ulong %ulong
|
|
%_ptr_Function_ulong = OpTypePointer Function %ulong
|
|
%_ptr_CrossWorkgroup_ulong = OpTypePointer CrossWorkgroup %ulong
|
|
%44 = OpTypeFunction %void %_ptr_Function_ulong %_ptr_Function_ulong
|
|
%ulong_1 = OpConstant %ulong 1
|
|
%4 = OpFunction %void None %40
|
|
%12 = OpFunctionParameter %ulong
|
|
%13 = OpFunctionParameter %ulong
|
|
%26 = OpLabel
|
|
%5 = OpVariable %_ptr_Function_ulong Function
|
|
%6 = OpVariable %_ptr_Function_ulong Function
|
|
%7 = OpVariable %_ptr_Function_ulong Function
|
|
%8 = OpVariable %_ptr_Function_ulong Function
|
|
%9 = OpVariable %_ptr_Function_ulong Function
|
|
%10 = OpVariable %_ptr_Function_ulong Function
|
|
%11 = OpVariable %_ptr_Function_ulong Function
|
|
OpStore %5 %12
|
|
OpStore %6 %13
|
|
%14 = OpLoad %ulong %5 Aligned 8
|
|
OpStore %7 %14
|
|
%15 = OpLoad %ulong %6 Aligned 8
|
|
OpStore %8 %15
|
|
%17 = OpLoad %ulong %7
|
|
%22 = OpConvertUToPtr %_ptr_CrossWorkgroup_ulong %17
|
|
%16 = OpLoad %ulong %22 Aligned 8
|
|
OpStore %9 %16
|
|
%18 = OpLoad %ulong %9
|
|
%23 = OpBitcast %_ptr_Function_ulong %10
|
|
%24 = OpCopyObject %ulong %18
|
|
OpStore %23 %24 Aligned 8
|
|
%43 = OpFunctionCall %void %1 %10 %11
|
|
%19 = OpLoad %ulong %11 Aligned 8
|
|
OpStore %9 %19
|
|
%20 = OpLoad %ulong %8
|
|
%21 = OpLoad %ulong %9
|
|
%25 = OpConvertUToPtr %_ptr_CrossWorkgroup_ulong %20
|
|
OpStore %25 %21 Aligned 8
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%1 = OpFunction %void None %44
|
|
%28 = OpFunctionParameter %_ptr_Function_ulong
|
|
%27 = OpFunctionParameter %_ptr_Function_ulong
|
|
%35 = OpLabel
|
|
%29 = OpVariable %_ptr_Function_ulong Function
|
|
%30 = OpLoad %ulong %28 Aligned 8
|
|
OpStore %29 %30
|
|
%32 = OpLoad %ulong %29
|
|
%31 = OpIAdd %ulong %32 %ulong_1
|
|
OpStore %29 %31
|
|
%33 = OpLoad %ulong %29
|
|
OpStore %27 %33 Aligned 8
|
|
OpReturn
|
|
OpFunctionEnd
|