[AMDGPU] Initialize MachineFunctionInfo for unittest (#91820)

Initializes the MachineFunctionInfo for unittest introduced in #88257

Additionally, also rephrases the test condition considering the abort/exit does not occur within emitKernel but is generally triggered through the Ctx.hadError() call.

GitOrigin-RevId: 3dcd604eb1d6612fda667793dbb52c5dfaa5fc4f
1 file changed