
Fix llvm.ident exploding when linking many bitcode files in libclc. This should de-duplicate other named metadata as well, e.g. opencl.spir.version and opencl.ocl.version. This PR is a re-submit of https://reviews.llvm.org/D20582 (authored by Matt Arsenault) with update that only checks MD node pointer for duplication according to review comment in that PR. --------- Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
7 lines
140 B
LLVM
7 lines
140 B
LLVM
!opencl.ocl.version = !{!0}
|
|
!opencl.spir.version = !{!0}
|
|
!llvm.ident = !{!1}
|
|
|
|
!0 = !{i32 2, i32 0}
|
|
!1 = !{!"LLVM.org clang version 20.1.0"}
|