]> granicus.if.org Git - clang/commitdiff
Enable .hip files for test/Driver
authorYaxun Liu <Yaxun.Liu@amd.com>
Tue, 24 Jul 2018 01:03:44 +0000 (01:03 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Tue, 24 Jul 2018 01:03:44 +0000 (01:03 +0000)
Partially revert r334128 due to regressions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337791 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp
test/Driver/lit.local.cfg

index 9e92f64f66078440814ea85503bc7566b8756e98..1dfcacc75ea5bc248efefdc42a09113f51c46bc9 100644 (file)
@@ -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::BuildJobsForActionNoCache(
       StringRef Arch;
       if (TargetDeviceOffloadKind == Action::OFK_HIP) {
         if (UI.DependentOffloadKind == Action::OFK_Host)
-          Arch = "all";
+          Arch = StringRef();
         else
           Arch = UI.DependentBoundArch;
       } else
index ff831e7fe488208f4008e008bf9682f3698d55ba..4a4ef2af23b5ab15847035bac7d6f580c5f70a63 100644 (file)
@@ -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',