Open erick-xanadu opened 4 days ago
I think originally this came for free because we were passing the textual IR to llc
as a file. Are we now invoking it directly on the IR in memory, or do we need to go via a bitcode file?
Are we now invoking it directly on the IR in memory, or do we need to go via a bitcode file?
Most tests pass with this change. I believe we don't really need to go to disk.
Essentially this, but we need to make sure that all tests pass. A lot of tests rely on the attribute
.mlir
and.qir
to be available even when not usingkeep_intermediate=True
.Why should we make this change? The textual representation may be too big. In some cases up to GB of disk are used just to store the LLVM-IR. Dumping all of this also takes time.