aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Compilation.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-05-08 21:02:12 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-05-08 21:02:12 +0000
commit398612b4c2a9a7c2a45c18462d3c3e2d30fbad8b (patch)
tree27fc8d5ae27ef1efefe826161d7ad850aec8f5f7 /clang/lib/Driver/Compilation.cpp
parent544bb55a3e07eaa4519680396d74aa444fbfe3fc (diff)
downloadllvm-398612b4c2a9a7c2a45c18462d3c3e2d30fbad8b.zip
llvm-398612b4c2a9a7c2a45c18462d3c3e2d30fbad8b.tar.gz
llvm-398612b4c2a9a7c2a45c18462d3c3e2d30fbad8b.tar.bz2
[HIP] Add hip offload kind
There are quite differences in HIP action builder and action job creation, which justifies to define a separate offload kind. Differential Revision: https://reviews.llvm.org/D46471 llvm-svn: 331811
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
-rw-r--r--clang/lib/Driver/Compilation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp
index 5944936..2369999 100644
--- a/clang/lib/Driver/Compilation.cpp
+++ b/clang/lib/Driver/Compilation.cpp
@@ -196,10 +196,10 @@ static bool ActionFailed(const Action *A,
if (FailingCommands.empty())
return false;
- // CUDA can have the same input source code compiled multiple times so do not
- // compiled again if there are already failures. It is OK to abort the CUDA
- // pipeline on errors.
- if (A->isOffloading(Action::OFK_Cuda))
+ // CUDA/HIP can have the same input source code compiled multiple times so do
+ // not compiled again if there are already failures. It is OK to abort the
+ // CUDA pipeline on errors.
+ if (A->isOffloading(Action::OFK_Cuda) || A->isOffloading(Action::OFK_HIP))
return true;
for (const auto &CI : FailingCommands)