Convert a print to a logger warning call in order to stay consistent.
When creating a new architecture while already having an existing architecture (possibly created sometime before) existing files will be left untouched. This might lead to a mixture of architecture versions, e.g. when first calling M2-ISA-R with the -s flag, followed by a call without it. The separate .cpp files for each instruction set will be left untouched which is undesirable. This PR uses the shutil to guarantee a fresh and up-to-date architecture every time the M2-ISA-R backend is run. (One could also make this behaviour optional by introducing a new flag, for example -c, --clean or -d, --delete.)
print
to a logger warning call in order to stay consistent.-s
flag, followed by a call without it. The separate.cpp
files for each instruction set will be left untouched which is undesirable. This PR uses theshutil
to guarantee a fresh and up-to-date architecture every time the M2-ISA-R backend is run. (One could also make this behaviour optional by introducing a new flag, for example-c, --clean
or-d, --delete
.)