compiler: Fix collision of environments in matmult implementations

GitHub: Fixes #1578.
This commit is contained in:
David Nadlinger 2021-01-11 23:53:44 +01:00
parent 362f8ecb69
commit f0284b2549

View File

@ -1603,7 +1603,7 @@ class ARTIQIRGenerator(algorithm.Visitor):
num_rows, num_summands, _, num_cols = self._get_matmult_shapes(lhs, rhs)
elt = result.type["elt"].find()
env_type = ir.TEnvironment("loop", {"$total": elt})
env_type = ir.TEnvironment(name + ".loop", {"$total": elt})
env = self.append(ir.Alloc([], env_type))
def row_loop(row_idx):