This is required for converting function calls such as get_global_id()
into SPIR-V builtins.
Details
Details
- Reviewers
jlebar yaxunl tra - Commits
- rG15a1769631ff: Emit OpenCL metadata when targeting SPIR-V
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is this because your HIP threadIdx etc are implemented using OpenCL builtins so that the emitted LLVM IR contains calls of OpenCL builtins?
Comment Actions
LGTM since currently there is only one HIP/SPIRV implementation. If in the future there is another HIP/SPIRV implementation that does not need this, it could disable it by triple.