Skip to content
Commit 44318f5c authored by Kaushik Kulkarni's avatar Kaushik Kulkarni Committed by Andreas Klöckner
Browse files

[assignment_to_subst] rename subst arguments

This avoids confusion with the names already present in the kernel.
Earlier:
```
t_unit = lp.make_kernel(
    "{[i]: 0<=i<10}",
    """
    <> tmp[i] = 2*i
    out[i] = 2*tmp[i]
    """)
t_unit = lp.assignment_to_subst(t_unit, "tmp")
```
would yield:
```
---------------------------------------
DOMAINS:
{ [i] : 0 <= i <= 9 }
---------------------------------------
INAME TAGS:
i: None
---------------------------------------
SUBSTITUTION RULES:
tmp_subst(i) := 2*i
---------------------------------------
INSTRUCTIONS:
for i
  out[i] = 2*tmp_subst(i)  {id=insn_0}
end i
---------------------------------------
```

Notice how the substitution argument is 'i' and the kernel contains 'i'
as a domain dim.
parent 8bd7df25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment