TVM Unity achieves cross-layer co-optimization by integrating high-level computational graphs (Relax) with low-level tensor programs (TensorIR) into a single, unified intermediate representation, allowing joint optimization across these distinct abstraction levels.