I have to tread a thin line, but the place to start would be looking at
what's publicly available here
When you say "compile and link" - I think you may need an HSA Finalizer to
parse your HSA IL. Take a look around github and reply back if you have
more specific questions.
If you're just looking for a tool (maybe this?)
If you're a researcher, ping me off list and I can try to help you connect
you with the right people