|
LLVM
5.0.0
|
#include "CoroInternal.h"#include "llvm/ADT/BitVector.h"#include "llvm/IR/CFG.h"#include "llvm/IR/Dominators.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/InstIterator.h"#include "llvm/Support/Debug.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/circular_raw_ostream.h"#include "llvm/Transforms/Utils/BasicBlockUtils.h"#include "llvm/Transforms/Utils/Local.h"Go to the source code of this file.
Classes | |
| struct | Spill |
Macros | |
| #define | DEBUG_TYPE "coro-suspend-crossing" |
| #define | DEBUG_TYPE "coro-frame" |
Typedefs | |
| using | SpillInfo = SmallVector< Spill, 8 > |
Enumerations | |
| enum | { SmallVectorThreshold = 32 } |
| #define DEBUG_TYPE "coro-suspend-crossing" |
Definition at line 259 of file CoroFrame.cpp.
| #define DEBUG_TYPE "coro-frame" |
Definition at line 259 of file CoroFrame.cpp.
| using SpillInfo = SmallVector<Spill, 8> |
Definition at line 282 of file CoroFrame.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| SmallVectorThreshold | |
Definition at line 38 of file CoroFrame.cpp.
|
static |
Definition at line 307 of file CoroFrame.cpp.
References C, llvm::coro::Shape::CoroSuspends, llvm::Function::getContext(), llvm::PointerType::getElementType(), llvm::Value::getName(), llvm::Type::getPointerTo(), llvm::AllocaInst::getType(), llvm::Value::getType(), llvm::Log2_64_Ceil(), llvm::max(), Name, llvm::coro::Shape::PromiseAlloca, and llvm::StructType::setBody().
Referenced by llvm::coro::buildCoroutineFrame().
Definition at line 285 of file CoroFrame.cpp.
References llvm::dbgs(), llvm::Value::dump(), and E.
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 563 of file CoroFrame.cpp.
References llvm::PHINode::addIncoming(), llvm::Instruction::clone(), llvm::BasicBlock::getContext(), llvm::BasicBlock::getFirstNonPHI(), llvm::BasicBlock::getParent(), llvm::BasicBlock::getTerminator(), llvm::Instruction::isEHPad(), llvm_unreachable(), setUnwindEdgeTo(), llvm::SplitEdge(), llvm::MCID::Terminator, and updatePhiNodes().
Referenced by rewritePHIs().
|
static |
Definition at line 393 of file CoroFrame.cpp.
References llvm::coro::Shape::AllocaSpillBlock, assert(), llvm::coro::Shape::CoroBegin, E, llvm::SmallVectorImpl< T >::emplace_back(), FramePtr, llvm::coro::Shape::FrameTy, llvm::BasicBlock::front(), G, llvm::BasicBlock::getFirstInsertionPt(), llvm::Value::getName(), getParent(), llvm::Type::getPointerTo(), llvm::BasicBlock::getTerminator(), P, llvm::coro::Shape::PromiseAlloca, llvm::report_fatal_error(), llvm::BasicBlock::splitBasicBlock(), splitBeforeCatchSwitch(), and llvm::SplitEdge().
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 675 of file CoroFrame.cpp.
References I.
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 668 of file CoroFrame.cpp.
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 728 of file CoroFrame.cpp.
References llvm::dbgs(), DEBUG, llvm::DominatorTree::dominates(), E, llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode(), llvm::Instruction::moveBefore(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::report_fatal_error(), and llvm::Value::users().
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 682 of file CoroFrame.cpp.
References assert(), E, llvm::BasicBlock::getFirstInsertionPt(), llvm::Value::getName(), llvm::Instruction::insertBefore(), and llvm::Value::setName().
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 594 of file CoroFrame.cpp.
References llvm::PHINode::addIncoming(), llvm::dyn_cast(), ehAwareSplitEdge(), llvm::Instruction::eraseFromParent(), llvm::StringRef::front(), llvm::BasicBlock::front(), llvm::BasicBlock::getFirstNonPHI(), llvm::Value::getName(), llvm::Value::getType(), llvm::pred_begin(), llvm::pred_end(), llvm::Value::replaceAllUsesWith(), and llvm::Value::takeName().
Referenced by llvm::coro::buildCoroutineFrame(), and rewritePHIs().
|
static |
Definition at line 654 of file CoroFrame.cpp.
References llvm::BasicBlock::front(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and rewritePHIs().
|
static |
Definition at line 523 of file CoroFrame.cpp.
References llvm_unreachable().
Referenced by ehAwareSplitEdge().
|
static |
Definition at line 779 of file CoroFrame.cpp.
References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode(), Name, and splitBlockIfNotFirst().
Referenced by llvm::coro::buildCoroutineFrame().
|
static |
Definition at line 359 of file CoroFrame.cpp.
References llvm::Instruction::eraseFromParent(), llvm::Instruction::getParent(), llvm::CatchSwitchInst::getParentPad(), llvm::BasicBlock::getTerminator(), and llvm::BasicBlock::splitBasicBlock().
Referenced by insertSpills().
|
static |
Definition at line 766 of file CoroFrame.cpp.
References llvm::BasicBlock::front(), llvm::Instruction::getParent(), llvm::BasicBlock::getSinglePredecessor(), I, llvm::Value::setName(), and llvm::BasicBlock::splitBasicBlock().
Referenced by splitAround().
|
static |
Definition at line 536 of file CoroFrame.cpp.
References assert(), llvm::BasicBlock::begin(), llvm::PHINode::getBasicBlockIndex(), llvm::PHINode::getIncomingBlock(), I, and llvm::PHINode::setIncomingBlock().
Referenced by ehAwareSplitEdge().
1.8.6