LLVM 22.0.0git
CoroAnnotationElide.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "coro-annotation-elide"

Functions

static InstructiongetFirstNonAllocaInTheEntryBlock (Function *F)
static ValueallocateFrameInCaller (Function *Caller, uint64_t FrameSize, Align FrameAlign)
static void processCall (CallBase *CB, Function *Caller, Function *NewCallee, uint64_t FrameSize, Align FrameAlign)

Variables

static cl::opt< float > CoroElideBranchRatio ("coro-elide-branch-ratio", cl::init(0.55), cl::Hidden, cl::desc("Minimum BranchProbability to consider a elide a coroutine."))
cl::opt< unsignedMinBlockCounterExecution

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "coro-annotation-elide"

Definition at line 37 of file CoroAnnotationElide.cpp.

Function Documentation

◆ allocateFrameInCaller()

Value * allocateFrameInCaller ( Function * Caller,
uint64_t FrameSize,
Align FrameAlign )
static

◆ getFirstNonAllocaInTheEntryBlock()

Instruction * getFirstNonAllocaInTheEntryBlock ( Function * F)
static

Definition at line 44 of file CoroAnnotationElide.cpp.

References F, I, llvm::isa(), and llvm_unreachable.

Referenced by allocateFrameInCaller().

◆ processCall()

Variable Documentation

◆ CoroElideBranchRatio

cl::opt< float > CoroElideBranchRatio("coro-elide-branch-ratio", cl::init(0.55), cl::Hidden, cl::desc("Minimum BranchProbability to consider a elide a coroutine.")) ( "coro-elide-branch-ratio" ,
cl::init(0.55) ,
cl::Hidden ,
cl::desc("Minimum BranchProbability to consider a elide a coroutine.")  )
static

◆ MinBlockCounterExecution

cl::opt<unsigned> MinBlockCounterExecution
extern