|
LLVM
4.0.0
|
#include "CoroInternal.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/LegacyPassManager.h"#include "llvm/Pass.h"#include "llvm/Transforms/Scalar.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "coro-cleanup" |
Functions | |
| static void | simplifyCFG (Function &F) |
| static void | lowerSubFn (IRBuilder<> &Builder, CoroSubFnInst *SubFn) |
| INITIALIZE_PASS (CoroCleanup,"coro-cleanup","Lower all coroutine related intrinsics", false, false) Pass *llvm | |
| #define DEBUG_TYPE "coro-cleanup" |
Definition at line 21 of file CoroCleanup.cpp.
| INITIALIZE_PASS | ( | CoroCleanup | , |
| "coro-cleanup" | , | ||
| "Lower all coroutine related intrinsics" | , | ||
| false | , | ||
| false | |||
| ) |
Definition at line 131 of file CoroCleanup.cpp.
|
static |
Definition at line 41 of file CoroCleanup.cpp.
References llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP2_32(), llvm::IRBuilder< T, Inserter >::CreateLoad(), FramePtr, llvm::StructType::get(), llvm::Value::getContext(), llvm::CoroSubFnInst::getFrame(), llvm::CoroSubFnInst::getIndex(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::Type::getPointerTo(), llvm::SPII::Load, llvm::Value::replaceAllUsesWith(), and llvm::IRBuilderBase::SetInsertPoint().
|
static |
Definition at line 32 of file CoroCleanup.cpp.
References llvm::legacy::FunctionPassManager::add(), llvm::createCFGSimplificationPass(), and llvm::GlobalValue::getParent().
1.8.6