[AMDGPU][OpenMP] Emit textual IR for -emit-llvm -S
authorPushpinder Singh <Pushpinder.Singh@amd.com>
Fri, 7 May 2021 11:37:07 +0000 (11:37 +0000)
committerPushpinder Singh <Pushpinder.Singh@amd.com>
Mon, 10 May 2021 07:54:23 +0000 (07:54 +0000)
commit7f78e409d0280c62209e1a7dc8c6d1409acc9184
treea094c55446b181d775e4bf199472013c6c477fdc
parented4f4edea20caa13a468ab279a0df20b9ba667fb
[AMDGPU][OpenMP] Emit textual IR for -emit-llvm -S

Previously clang would print a binary blob into the bundled file
for amdgcn. With this patch, it will instead print textual IR as
expected.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D102065
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/amdgpu-openmp-toolchain.c