This change seeks to emit the full module from the bbc tool and
not just the body. This change currently does not break existing tests
when running check-(mlir, flang, all).
For OpenMP offloading we are currently seeking to add attributes
directly to the builtin module and we are wondering why
the bbc tool discards the module, and if it is possible for the tool to
retain this information or if it would be a breaking change for other
uses of the tool?
These attributes tied to the module are likely required
to fully test the FIR lowering for OpenMP utilising bbc (I am
currently seeking to add an omp.is_device attribute to the
module and in a follow up an attribute holding RTL flags to
the module for later lowering). It's not an immediate concern
but I believe (without knowing the full picture at the moment)
it would be quite useful to retain all the information within the
FIR module, as whilst a builtin.module isn't part of FIR it has
and can have additional FIR/OpenMP related data appended
to it.