Author: yaxunl Date: Mon Jul 23 18:03:44 2018 New Revision: 337791 URL: http://llvm.org/viewvc/llvm-project?rev=337791&view=rev Log: Enable .hip files for test/Driver
Partially revert r334128 due to regressions. Modified: cfe/trunk/lib/Driver/Driver.cpp cfe/trunk/test/Driver/lit.local.cfg Modified: cfe/trunk/lib/Driver/Driver.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=337791&r1=337790&r2=337791&view=diff ============================================================================== --- cfe/trunk/lib/Driver/Driver.cpp (original) +++ cfe/trunk/lib/Driver/Driver.cpp Mon Jul 23 18:03:44 2018 @@ -2809,7 +2809,7 @@ public: C.MakeAction<OffloadUnbundlingJobAction>(HostAction); UnbundlingHostAction->registerDependentActionInfo( C.getSingleOffloadToolChain<Action::OFK_Host>(), - /*BoundArch=*/"all", Action::OFK_Host); + /*BoundArch=*/StringRef(), Action::OFK_Host); HostAction = UnbundlingHostAction; } @@ -3868,7 +3868,7 @@ InputInfo Driver::BuildJobsForActionNoCa StringRef Arch; if (TargetDeviceOffloadKind == Action::OFK_HIP) { if (UI.DependentOffloadKind == Action::OFK_Host) - Arch = "all"; + Arch = StringRef(); else Arch = UI.DependentBoundArch; } else Modified: cfe/trunk/test/Driver/lit.local.cfg URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lit.local.cfg?rev=337791&r1=337790&r2=337791&view=diff ============================================================================== --- cfe/trunk/test/Driver/lit.local.cfg (original) +++ cfe/trunk/test/Driver/lit.local.cfg Mon Jul 23 18:03:44 2018 @@ -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', _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits