Skip to content

Codegen should default to natural order sorting for declarations/anything unordered

E.g let's avoid things like:

__kernel void __attribute__ ((reqd_work_group_size(1, 1, 1))) e2e_from_parent(__global int const *restrict target_boxes, int const target_boxes_offset, __global double const *restrict centers, int const naligned_boxes, int const nboxes, int const tgt_base_ibox, int const src_base_ibox, int const ntgt_level_boxes, int const nsrc_level_boxes, __global int const *restrict box_parent_ids, __global double *restrict tgt_expansions, int const tgt_expansions_offset, __global double const *restrict src_expansions, int const src_expansions_offset, int const ntgt_boxes)
{
  double coeff0;
  double coeff1;
  double coeff10;
  double coeff11;
  double coeff12;
  double coeff13;
  double coeff14;
  double coeff15;
  double coeff16;
  double coeff17;
  double coeff18;
  double coeff19;
  double coeff2;
  double coeff20;