Optixir vs ptx

I was trying to find info on what is the preferred compilation target for optix cu files, optixir or ptx but couldn’t find anything in a quick search. Does it matter which is used? why are there two? is one needed for shader reflection or something?

I’m on optix8/cuda12.5 and know you can’t generate optixir if you are on an older optix/cuda so no need to discuss that detail.

EDIT: never mind, i got my answers here https://raytracing-docs.nvidia.com/optix7/guide/index.html#program_pipeline_creation#program-input