Skip to content

Commit

Permalink
bug: Print csl namehint fix (#3207)
Browse files Browse the repository at this point in the history
Print via `_use_var` instead of `name_hint`, as that can be `None`.

Co-authored-by: n-io <n-io@users.noreply.github.com>
  • Loading branch information
n-io and n-io authored Sep 23, 2024
1 parent 5d9837e commit b9620a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdsl/backend/csl/print_csl.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def print_block(self, body: Block):
f"{self._var_use(result)} = @get_dsd( {self.mlir_type_to_csl_type(result.type)}, .{{"
)
self.print(
f" .tensor_access = | {ind_vars_str} | {{ {sizes_str} }} -> {base_addr.name_hint}[ {accesses_str} ]"
f" .tensor_access = | {ind_vars_str} | {{ {sizes_str} }} -> {self._var_use(base_addr)}[ {accesses_str} ]"
)
self.print("});")
case csl.GetFabDsdOp(
Expand Down

0 comments on commit b9620a2

Please sign in to comment.