PrefetchBoundStrategy#

enum class Halide::PrefetchBoundStrategy#

Different ways to handle accesses outside the original extents in a prefetch.

Values:

enumerator Clamp#

Clamp the prefetched exprs by intersecting the prefetched region with the original extents.

This may make the exprs of the prefetched region more complicated.

enumerator GuardWithIf#

Guard the prefetch with if-guards that ignores the prefetch if any of the prefetched region ever goes beyond the original extents (i.e.

all or nothing).

enumerator NonFaulting#

Leave the prefetched exprs as-is (no if-guards around the prefetch and no intersecting with the original extents).

This makes the prefetch exprs simpler but this may cause prefetching of the region outside the original extents. This is good if prefetch won’t fault when accessing region outside the original extents.