LLVM  10.0.0svn
Coroutines.h
Go to the documentation of this file.
1 //===-- Coroutines.h - Coroutine Transformations ----------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 // Declare accessor functions for coroutine lowering passes.
9 //===----------------------------------------------------------------------===//
10 
11 #ifndef LLVM_TRANSFORMS_COROUTINES_H
12 #define LLVM_TRANSFORMS_COROUTINES_H
13 
14 namespace llvm {
15 
16 class Pass;
17 class PassManagerBuilder;
18 
19 /// Add all coroutine passes to appropriate extension points.
20 void addCoroutinePassesToExtensionPoints(PassManagerBuilder &Builder);
21 
22 /// Lower coroutine intrinsics that are not needed by later passes.
24 
25 /// Split up coroutines into multiple functions driving their state machines.
27 
28 /// Analyze coroutines use sites, devirtualize resume/destroy calls and elide
29 /// heap allocation for coroutine frame where possible.
31 
32 /// Lower all remaining coroutine intrinsics.
34 
35 }
36 
37 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
Pass * createCoroEarlyPass()
Lower coroutine intrinsics that are not needed by later passes.
Pass * createCoroCleanupPass()
Lower all remaining coroutine intrinsics.
Pass * createCoroElidePass()
Analyze coroutines use sites, devirtualize resume/destroy calls and elide heap allocation for corouti...
Definition: CoroElide.cpp:343
print lazy value Lazy Value Info Printer Pass
Pass * createCoroSplitPass()
Split up coroutines into multiple functions driving their state machines.
Definition: CoroSplit.cpp:1601
void addCoroutinePassesToExtensionPoints(PassManagerBuilder &Builder)
Add all coroutine passes to appropriate extension points.
Definition: Coroutines.cpp:80