From: Yaxun Liu Date: Tue, 24 Jul 2018 01:03:44 +0000 (+0000) Subject: Enable .hip files for test/Driver X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae25258b2efa17e692b239826f65ede1b17a8dd5;p=clang Enable .hip files for test/Driver Partially revert r334128 due to regressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337791 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 9e92f64f66..1dfcacc75e 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -2809,7 +2809,7 @@ public: C.MakeAction(HostAction); UnbundlingHostAction->registerDependentActionInfo( C.getSingleOffloadToolChain(), - /*BoundArch=*/"all", Action::OFK_Host); + /*BoundArch=*/StringRef(), Action::OFK_Host); HostAction = UnbundlingHostAction; } @@ -3868,7 +3868,7 @@ InputInfo Driver::BuildJobsForActionNoCache( StringRef Arch; if (TargetDeviceOffloadKind == Action::OFK_HIP) { if (UI.DependentOffloadKind == Action::OFK_Host) - Arch = "all"; + Arch = StringRef(); else Arch = UI.DependentBoundArch; } else diff --git a/test/Driver/lit.local.cfg b/test/Driver/lit.local.cfg index ff831e7fe4..4a4ef2af23 100644 --- a/test/Driver/lit.local.cfg +++ b/test/Driver/lit.local.cfg @@ -1,5 +1,5 @@ config.suffixes = ['.c', '.cpp', '.h', '.m', '.mm', '.S', '.s', '.f90', '.f95', - '.cu', '.rs', '.cl'] + '.cu', '.rs', '.cl', '.hip'] config.substitutions = list(config.substitutions) config.substitutions.insert(0, ('%clang_cc1',