[libomptarget][nfc] Accept callable for hsa iterate_symbols
Candidate refactor to simplify D102692
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good. My opinion is that we should keep these wrappers in a separate file, but that could be a later patch.
Comment Actions
Agreed, got stuck on picking a name and decided it was more important to get the diff up quickly.
There are a few things being considered for hsa:
- easier API via C++ wrapper
- wrapping calls in optional profiling collection
- dlopen hsa instead of link, for building llvm on systems without hsa installed
They're all somewhat related. I haven't put enough thought into the design space yet.
This change means populate_InfoTables can have a different type from the HSA callback, e.g. could take pointers to infotables directly