Emitting ptx completely in-memory