[llvm-branch-commits] [clang] [llvm] [OffloadBundler] Rework the ctor of `OffloadTargetInfo` to support AMDGPU's generic target (PR #122629)

Yaxun Liu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 14 11:00:57 PST 2025


yxsamliu wrote:

how about assuming the strict triple format first, this will make the generic GPU arch work with strict triple.

If the first assumption fails, then fall back to the legacy parsing, that is, assuming no '-' in GPU arch and split at the right most '-'. This way, the old target ID string with non-strict triple still works.

https://github.com/llvm/llvm-project/pull/122629


More information about the llvm-branch-commits mailing list