Ajout du smart allocator .... disfonctionnel
This commit is contained in:
@@ -29,12 +29,6 @@ class AllInMemAllocator(Allocator):
|
||||
if(isinstance(arg, Temporary)):
|
||||
after.append(RiscV.sd(subst[arg],self._fdata._pool.get_alloced_loc(arg)))
|
||||
|
||||
|
||||
# TODO (Exercise 7): compute before,after,args.
|
||||
# TODO (Exercise 7): iterate over old_args, check which argument
|
||||
# TODO (Exercise 7): is a temporary (e.g. isinstance(..., Temporary)),
|
||||
# TODO (Exercise 7): and if so, generate ld/sd accordingly. Replace the
|
||||
# TODO (Exercise 7): temporary with S[1], S[2] or S[3] physical registers.
|
||||
try:
|
||||
new_instr = old_instr.substitute(subst)
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user