migrate more program_state logic from header into shared library (phase II) [ROCm/hip commit: 7013f87885]
7013f87885