You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_all_possible_rewrites() returns the op_idx (among other variables), which is used in compute_available_pass_list() in order to get the op to later print it. We thus run op = list(self.current_module.walk())[op_idx] twice for every operation (we already compute this for every operation in get_all_possible_rewrites() )
I tried two solutions:
returning the str(Operation) from get_all_possible_rewrites():
However, when the rewrite is displayed in the gui, we now get
returning the Operation from get_all_possible_rewrites() - (This wont work either way due to issues with testing and equality checking of an Operation, but added it here for completeness):
When the rewrite is displayed in the gui, we now get
get_all_possible_rewrites()
returns theop_idx
(among other variables), which is used incompute_available_pass_list()
in order to get the op to later print it. We thus runop = list(self.current_module.walk())[op_idx]
twice for every operation (we already compute this for every operation inget_all_possible_rewrites()
)I tried two solutions:
str(Operation)
fromget_all_possible_rewrites()
:However, when the rewrite is displayed in the gui, we now get
%0 = arith.addi %1, %2
instead ofAddi(%res = arith.addi %two, %n : i32)
Operation
fromget_all_possible_rewrites()
- (This wont work either way due to issues with testing and equality checking of an Operation, but added it here for completeness):When the rewrite is displayed in the gui, we now get
Addi(%0 = arith.addi %1, %2)
instead of
Addi(%res = arith.addi %two, %n : i32)
Not sure why we lose the information (i.e. the names of the user defined regs).
The text was updated successfully, but these errors were encountered: