Setup work for https://llvm.org/PR47946. Split out the core functionality from
LowerDbgDeclare into a function called ConvertIndirectDbgIntrinsicToDbgValues
which will be used in subsequent patches.
This has been separated out from D91424 to help highlight the functional changes
in that patch.
Doxygen comment here to explain what this function does?
Which other indirect intrinsics are there?
I'm not sure if the name indirect captures the intention well unless it's part of a greater plan for the future. Otherwise I would just say DbgDeclare to avoid confusion.