Skip to content

Commit

Permalink
adapt fixers to PR CL#1215
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 26, 2024
1 parent abdf2f8 commit 5c79770
Show file tree
Hide file tree
Showing 15 changed files with 1,693 additions and 1,357 deletions.
2 changes: 1 addition & 1 deletion DataScraping/Reps/OpenCL-Docs
Submodule OpenCL-Docs updated from 9b0faa to 41ed6e
Binary file modified DataScraping/XML/OpenCL/funcs.bin
Binary file not shown.
9 changes: 0 additions & 9 deletions Log/OpenCL.log
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,10 @@ Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: F
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: Func [cl::GetAcceleratorInfo + INTEL] could not generate overload: no output type info for Group [cl::AcceleratorInfo] Enum [cl::ACCELERATOR_DESCRIPTOR]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: Dumping Feature items
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::CompileProgram]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueFillBuffer]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueMapImage]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueMigrateMemObjects]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueNativeKernel]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 30>12 overloads of non-fixed Func [cl::EnqueueNDRangeKernel]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueReadBuffer]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMFree]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMMemFill]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMMigrateMem]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueWriteBuffer]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: Dumping Extension items
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMFree + ARM]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMMemFill + ARM]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueMigrateMemObject + EXT]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 30>12 overloads of non-fixed Func [cl::EnqueueGenerateMipmap + IMG]
Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueAcquireGrallocObjects + IMG]
Expand Down
850 changes: 471 additions & 379 deletions Modules.Packed/OpenCL.pas

Large diffs are not rendered by default.

850 changes: 471 additions & 379 deletions Packing/Descriptions/OpenCL.predoc

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion Packing/Template/LowLvl/CodeContainerItems.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2979,7 +2979,7 @@ FuncParamTChanges = record
raise new MessageException($'ERROR: {FixerInfo(f)} had wrong param count');

for var i := 0 to changes.Length-1 do
foreach var (is_add, t) in changes[i].changes_maker() do
foreach var (is_add, t) in changes[i].changes_maker().OrderBy(\(is_add, t) -> is_add) do
if is_add then
begin
if t in f.possible_par_types[i+ind_nudge] then
Expand All @@ -2991,12 +2991,16 @@ FuncParamTChanges = record
if t.var_arg and ((t.tname='IntPtr') or t.IsGeneric) then
if ppt.Remove(new FuncParamT(t.is_const, false, 0, KnownDirectTypes.IntPtr)) then
ppt.Add(new FuncParamT(t.is_const, false, 0, KnownDirectTypes.Pointer));
if not is_auto_fixer then
f.changed_by_fixer := true;
end;
end else
begin
if f.possible_par_types[i+ind_nudge].Remove(t) then
self.ReportUsed else
ErrorInfo(f, 'remove', i+ind_nudge, t, f.possible_par_types[i+ind_nudge]);
if not is_auto_fixer then
f.changed_by_fixer := true;
end;

if is_auto_fixer then
Expand Down Expand Up @@ -3093,6 +3097,7 @@ FuncParamTChanges = record
Otp($'WARNING: {FixerInfo(f)} has not limited pars: {ObjectToString(unlimited_pars)}');

self.ReportUsed;
f.changed_by_fixer := true;
Result := false;
end;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,47 +1,63 @@



# cl::CommandBarrierWithWaitList+KHR
!possible_par_types
* | * | * | -array of cl::CommandProperties const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |

# cl::CommandCopyBuffer+KHR
!possible_par_types
* | * | * | -array of cl::CommandProperties const | * | * | * | * | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |

# cl::CommandCopyBufferRect+KHR
!possible_par_types
* | * | * | * | * | -array of UIntPtr const | -array of UIntPtr const | -array of UIntPtr const | * | * | * | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
* | * | * | -array of cl::CommandProperties const | * | * | -array of UIntPtr const | -array of UIntPtr const | -array of UIntPtr const | * | * | * | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
!limit_ovrs
* | * | * | * | * | var UIntPtr const | var UIntPtr const | var UIntPtr const | * | * | * | * | * | * | * | * |
* | * | * | * | * | IntPtr const | IntPtr const | IntPtr const | * | * | * | * | * | * | * | * |
* | * | * | * | * | * | var UIntPtr const | var UIntPtr const | var UIntPtr const | * | * | * | * | * | * | * | * |
* | * | * | * | * | * | IntPtr const | IntPtr const | IntPtr const | * | * | * | * | * | * | * | * |

# cl::CommandCopyImage+KHR
# cl::CommandCopyBufferToImage+KHR
!possible_par_types
* | * | * | * | * | -array of UIntPtr const | -array of UIntPtr const | -array of UIntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
* | * | * | -array of cl::CommandProperties const | * | * | * | -array of UIntPtr const | -array of UIntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
!limit_ovrs
* | * | * | * | * | var UIntPtr const | var UIntPtr const | var UIntPtr const | * | * | * | * |
* | * | * | * | * | IntPtr const | IntPtr const | IntPtr const | * | * | * | * |
* | * | * | * | * | * | * | var UIntPtr const | var UIntPtr const | * | * | * | * |
* | * | * | * | * | * | * | IntPtr const | IntPtr const | * | * | * | * |

# cl::CommandCopyBufferToImage+KHR
# cl::CommandCopyImage+KHR
!possible_par_types
* | * | * | * | * | * | -array of UIntPtr const | -array of UIntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
* | * | * | -array of cl::CommandProperties const | * | * | -array of UIntPtr const | -array of UIntPtr const | -array of UIntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
!limit_ovrs
* | * | * | * | * | * | var UIntPtr const | var UIntPtr const | * | * | * | * |
* | * | * | * | * | * | IntPtr const | IntPtr const | * | * | * | * |
* | * | * | * | * | * | var UIntPtr const | var UIntPtr const | var UIntPtr const | * | * | * | * |
* | * | * | * | * | * | IntPtr const | IntPtr const | IntPtr const | * | * | * | * |

# cl::CommandCopyImageToBuffer+KHR
!possible_par_types
* | * | * | * | * | -array of UIntPtr const | -array of UIntPtr const | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
* | * | * | -array of cl::CommandProperties const | * | * | -array of UIntPtr const | -array of UIntPtr const | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
!limit_ovrs
* | * | * | * | * | var UIntPtr const | var UIntPtr const | * | * | * | * | * |
* | * | * | * | * | IntPtr const | IntPtr const | * | * | * | * | * |

* | * | * | * | * | * | var UIntPtr const | var UIntPtr const | * | * | * | * | * |
* | * | * | * | * | * | IntPtr const | IntPtr const | * | * | * | * | * |

# cl::CommandFillBuffer+KHR
!possible_par_types
* | * | * | -array of cl::CommandProperties const | * | +var T const | * | * | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |

# cl::CommandFillImage+KHR
!possible_par_types
* | * | * | * | +var T const | -array of UIntPtr const -IntPtr const | -array of UIntPtr const -IntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |


* | * | * | -array of cl::CommandProperties const | * | +var T const | -array of UIntPtr const -IntPtr const | -array of UIntPtr const -IntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |

# cl::CommandNDRangeKernel+KHR
!possible_par_types
* | * | * | -array of cl::NDRangeKernelCommandProperties const | * | * | -array of UIntPtr const | -array of UIntPtr const | -array of UIntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
* | * | * | -array of cl::CommandProperties const | * | * | -array of UIntPtr const | -array of UIntPtr const | -array of UIntPtr const | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |
!limit_ovrs
* | * | * | var cl::NDRangeKernelCommandProperties const | * | * | var UIntPtr const | var UIntPtr const | var UIntPtr const | * | * | * | * |
* | * | * | IntPtr const | * | * | IntPtr const | IntPtr const | IntPtr const | * | * | * | * |
* | * | * | * | * | * | var UIntPtr const | var UIntPtr const | var UIntPtr const | * | * | * | * |
* | * | * | * | * | * | IntPtr const | IntPtr const | IntPtr const | * | * | * | * |

# cl::CommandSVMMemcpy+KHR
!possible_par_types
* | * | * | -array of cl::CommandProperties const | * | * | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |

# cl::CommandSVMMemFill+KHR
!possible_par_types
* | * | * | -array of cl::CommandProperties const | * | * | * | * | * | -array of UInt32 const | -array of UInt32 -IntPtr | -array of cl::mutable_command |


4 changes: 0 additions & 4 deletions Packing/Template/LowLvl/Fixers/Group/OpenCL/0Misc.dat
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ cl::DeviceSVMCapabilities
!rename
cl::DeviceOnDeviceEnqueueCapabilities

# cl::NdrangeKernelCommandProperties
!rename
cl::NDRangeKernelCommandProperties

# cl::D3d[%v:10,11%]Device[%end:Set,Source%]
!rename
cl::D3D{%v%}Device{%end%}
Expand Down
Loading

0 comments on commit 5c79770

Please sign in to comment.