]> granicus.if.org Git - clang/commitdiff
[NVPTX] Removed 'satom' feature which is no longer used.
authorArtem Belevich <tra@google.com>
Wed, 11 Apr 2018 17:51:33 +0000 (17:51 +0000)
committerArtem Belevich <tra@google.com>
Wed, 11 Apr 2018 17:51:33 +0000 (17:51 +0000)
Differential Revision: https://reviews.llvm.org/D45061

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

lib/Basic/Targets/NVPTX.cpp
lib/Basic/Targets/NVPTX.h

index 3afb32f7ef7fd07cd47688a60c1ce77277ff18b7..04293b3ce10caf34f02a8f41a38e4109232e30d3 100644 (file)
@@ -161,7 +161,6 @@ ArrayRef<const char *> NVPTXTargetInfo::getGCCRegNames() const {
 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const {
   return llvm::StringSwitch<bool>(Feature)
       .Cases("ptx", "nvptx", true)
-      .Case("satom", GPU >= CudaArch::SM_60) // Atomics w/ scope.
       .Default(false);
 }
 
index 26d4c9ddec783181aebf399584ba6e73e4c91697..84d466d2f49f201b81dc5a1d37b25badc4c0998e 100644 (file)
@@ -57,7 +57,6 @@ public:
                  StringRef CPU,
                  const std::vector<std::string> &FeaturesVec) const override {
     Features[CudaArchToString(GPU)] = true;
-    Features["satom"] = GPU >= CudaArch::SM_60;
     Features["ptx" + std::to_string(PTXVersion)] = true;
     return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec);
   }