@@ -55,8 +55,8 @@ class ArrayConstraint:
5555 array has a zero stride. For most arrays produced by major tensor libraries,
5656 this can be assumed to be false. Setting this to True may disable certain
5757 optimizations of loads and stores to/from this array.
58- stride_static (Sequence[int | None] | None):
59- For each dimension of the array, an optional statically known value of its stride.
58+ stride_constant (Sequence[int | None] | None):
59+ For each dimension of the array, an optional constant value of its stride.
6060 For example, if the array is known to have a C-contiguous layout, the stride of
6161 the last dimension can be set to 1, which may enable certain optimizations of loads
6262 and stores from/to this array. Can be set to `None` if none of the dimensions
@@ -84,7 +84,7 @@ class ArrayConstraint:
8484 stride_lower_bound_incl : tuple [int | None , ...]
8585 alias_groups : tuple [str , ...]
8686 may_alias_internally : bool
87- stride_static : tuple [int | None , ...]
87+ stride_constant : tuple [int | None , ...]
8888 stride_divisible_by : tuple [int , ...]
8989 shape_divisible_by : tuple [int , ...]
9090 base_addr_divisible_by : int
@@ -96,7 +96,7 @@ def __init__(self,
9696 stride_lower_bound_incl : Sequence [int | None ] | int | None ,
9797 alias_groups : Sequence [str ],
9898 may_alias_internally : bool ,
99- stride_static : Sequence [int | None ] | None = None ,
99+ stride_constant : Sequence [int | None ] | None = None ,
100100 stride_divisible_by : Sequence [int ] | int = 1 ,
101101 shape_divisible_by : Sequence [int ] | int = 1 ,
102102 base_addr_divisible_by : int = 1 ):
@@ -110,21 +110,21 @@ def __init__(self,
110110 if ndim < 0 :
111111 raise ValueError ("`ndim` cannot be negative" )
112112
113- # stride_static
114- stride_static = _parse_assumption_tuple (
115- stride_static , ndim , "stride_static " , None , _check_optional_int )
113+ # stride_constant
114+ stride_constant = _parse_assumption_tuple (
115+ stride_constant , ndim , "stride_constant " , None , _check_optional_int )
116116
117117 # stride_lower_bound
118118 stride_lower_bound_incl = _parse_assumption_tuple (
119119 stride_lower_bound_incl , ndim , "stride_lower_bound_incl" , None , _check_optional_int )
120120 stride_lower_bound_incl = _remove_redundant_lower_bounds (
121- stride_static , stride_lower_bound_incl , "stride_lower_bound_incl" )
121+ stride_constant , stride_lower_bound_incl , "stride_lower_bound_incl" )
122122
123123 # stride_divisible_by
124124 stride_divisible_by = _parse_assumption_tuple (
125125 stride_divisible_by , ndim , "stride_divisible_by" , 1 , _check_divisibility )
126126 stride_divisible_by = _remove_redundant_divisibility_constraints (
127- stride_static , stride_divisible_by , "stride_static " )
127+ stride_constant , stride_divisible_by , "stride_constant " )
128128
129129 # shape_divisible_by
130130 shape_divisible_by = _parse_assumption_tuple (
0 commit comments