[amdgpu] Add `-enable-ocl-mangling-mismatch-workaround`.
authorMichael Liao <michael.hliao@gmail.com>
Tue, 8 Jun 2021 18:35:36 +0000 (14:35 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 8 Jun 2021 19:42:27 +0000 (15:42 -0400)
commit27332968d85e1ad4a58df884030e55abc00e91b1
tree3236e3199cf70f27e53c26ee0b22fd50595a4139
parenta9ea0a6a77b30305bfbe1b06c30bf6136f64c1ad
[amdgpu] Add `-enable-ocl-mangling-mismatch-workaround`.

- Add `-enable-ocl-mangling-mismatch-workaround` to work around the
  mismatch on OCL name mangling so far.

Reviewed By: yaxunl, rampitec

Differential Revision: https://reviews.llvm.org/D103920
llvm/lib/Target/AMDGPU/AMDGPULibFunc.cpp
llvm/test/CodeGen/AMDGPU/simplify-libcalls.ll