]> granicus.if.org Git - llvm/commitdiff
[coroutines] Define getPassName() for coroutine passes
authorGor Nishanov <GorNishanov@gmail.com>
Sat, 27 May 2017 05:54:30 +0000 (05:54 +0000)
committerGor Nishanov <GorNishanov@gmail.com>
Sat, 27 May 2017 05:54:30 +0000 (05:54 +0000)
Reviewers: GorNishanov

Reviewed By: GorNishanov

Subscribers: EricWF, llvm-commits

Differential Revision: https://reviews.llvm.org/D33622

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

lib/Transforms/Coroutines/CoroCleanup.cpp
lib/Transforms/Coroutines/CoroEarly.cpp
lib/Transforms/Coroutines/CoroElide.cpp
lib/Transforms/Coroutines/CoroSplit.cpp

index a97db6fde454eb7b98e646b0dca3d7268c95bfc2..5cf2a8c25d837ecb344bbdeb9f4903df3dedfd36 100644 (file)
@@ -124,6 +124,7 @@ struct CoroCleanup : FunctionPass {
     if (!L)
       AU.setPreservesAll();
   }
+  StringRef getPassName() const override { return "Coroutine Cleanup"; }
 };
 }
 
index e8bb0ca99d8a5e59df5029156dfd1b67a98ec167..b52989186165130ed85b49d9b2910d26e36c1776 100644 (file)
@@ -208,6 +208,9 @@ struct CoroEarly : public FunctionPass {
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.setPreservesCFG();
   }
+  StringRef getPassName() const override {
+    return "Lower early coroutine intrinsics";
+  }
 };
 }
 
index c6ac3f614ff7eec47e489542ab566a8b5d710413..acb22449142b926d576aa3978dd4ada7c3370959 100644 (file)
@@ -301,6 +301,7 @@ struct CoroElide : FunctionPass {
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<AAResultsWrapperPass>();
   }
+  StringRef getPassName() const override { return "Coroutine Elision"; }
 };
 }
 
index 742e3868796d24011b5d162cd542a8e005b07340..78e3c806d80a7e68b09f57eaa95319f6e97ab719 100644 (file)
@@ -735,6 +735,7 @@ struct CoroSplit : public CallGraphSCCPass {
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     CallGraphSCCPass::getAnalysisUsage(AU);
   }
+  StringRef getPassName() const override { return "Coroutine Splitting"; }
 };
 }