LLVM: lib/Transforms/Coroutines/CoroCleanup.cpp File Reference (original) (raw)

#include "[llvm/Transforms/Coroutines/CoroCleanup.h](CoroCleanup%5F8h%5Fsource.html)"
#include "[CoroInternal.h](CoroInternal%5F8h%5Fsource.html)"
#include "[llvm/IR/Function.h](IR%5F2Function%5F8h%5Fsource.html)"
#include "[llvm/IR/IRBuilder.h](IRBuilder%5F8h%5Fsource.html)"
#include "[llvm/IR/InstIterator.h](InstIterator%5F8h%5Fsource.html)"
#include "[llvm/IR/Module.h](IR%5F2Module%5F8h%5Fsource.html)"
#include "[llvm/IR/PassManager.h](IR%5F2PassManager%5F8h%5Fsource.html)"
#include "[llvm/Transforms/Scalar/SimplifyCFG.h](SimplifyCFG%5F8h%5Fsource.html)"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "coro-cleanup"
Functions
static void lowerSubFn (IRBuilder<> &Builder, CoroSubFnInst *SubFn)
static bool declaresCoroCleanupIntrinsics (const Module &M)

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "coro-cleanup"

Definition at line 20 of file CoroCleanup.cpp.

Function Documentation

declaresCoroCleanupIntrinsics()

bool declaresCoroCleanupIntrinsics ( const Module & M) static

Definition at line 111 of file CoroCleanup.cpp.

References llvm::coro::declaresIntrinsics().

Referenced by llvm::CoroCleanupPass::run().

lowerSubFn()

void lowerSubFn ( IRBuilder<> & Builder, CoroSubFnInst * SubFn ) static

Definition at line 31 of file CoroCleanup.cpp.

References FramePtr, llvm::StructType::get(), llvm::Value::getContext(), llvm::CoroSubFnInst::getFrame(), llvm::CoroSubFnInst::getIndex(), and llvm::Value::replaceAllUsesWith().