Context: The QIR and MLIR fields in the QJIT object are purely used for either debugging or cosmetic features. As such, their implementation should really be optional and not affect compile time.
Description of the Change: This commit introduces the change that the fields QIR and MLIR are computed lazily to avoid reading their contents from disk. Instead of unconditionally reading them from disk, just read them from disk if the user really wants them.
Benefits: Not yet benchmarked, but ideally it should reduce compilation time.
Possible Drawbacks: The size of LLVM-IR is not measured through instrumentation in the current state of this PR.
Context: The QIR and MLIR fields in the QJIT object are purely used for either debugging or cosmetic features. As such, their implementation should really be optional and not affect compile time.
Description of the Change: This commit introduces the change that the fields QIR and MLIR are computed lazily to avoid reading their contents from disk. Instead of unconditionally reading them from disk, just read them from disk if the user really wants them.
Benefits: Not yet benchmarked, but ideally it should reduce compilation time.
Possible Drawbacks: The size of LLVM-IR is not measured through instrumentation in the current state of this PR.
Related GitHub Issues:
[sc-78851]