if (not path.empty()) {
// Load the system desc from path
} else if (not module->hasAttr(tt::SystemDescAttr::name)) {
module->setAttr(tt::SystemDescAttr::name,
tt::SystemDescAttr::getDefault(&getContext()));
}
This way tests can just run --ttir-load-system-desc with no path argument and get the default system desc, which is just an 8x8 WH system.
Create a load system desc pass for loading system descs from disk into the compiler:
include/ttmlir/Dialect/TTIR/Passes.td
:The pass itself can be something like:
This way tests can just run
--ttir-load-system-desc
with nopath
argument and get the default system desc, which is just an 8x8 WH system.