LLVM  14.0.0git
Macros | Functions
CoroEarly.cpp File Reference
#include "llvm/Transforms/Coroutines/CoroEarly.h"
#include "CoroInternal.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
Include dependency graph for CoroEarly.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "coro-early"
 

Functions

static void setCannotDuplicate (CoroIdInst *CoroId)
 
static bool declaresCoroEarlyIntrinsics (const Module &M)
 
 INITIALIZE_PASS (CoroEarlyLegacy, "coro-early", "Lower early coroutine intrinsics", false, false) Pass *llvm
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "coro-early"

Definition at line 18 of file CoroEarly.cpp.

Function Documentation

◆ declaresCoroEarlyIntrinsics()

static bool declaresCoroEarlyIntrinsics ( const Module M)
static

Definition at line 227 of file CoroEarly.cpp.

References llvm::coro::declaresIntrinsics(), and M.

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

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( CoroEarlyLegacy  ,
"coro-early ,
"Lower early coroutine intrinsics ,
false  ,
false   
)

Definition at line 281 of file CoroEarly.cpp.

◆ setCannotDuplicate()

static void setCannotDuplicate ( CoroIdInst CoroId)
static

Definition at line 142 of file CoroEarly.cpp.

References llvm::CallBase::setCannotDuplicate(), and llvm::Value::users().