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

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "coro-early"
 

Functions

static void buildDebugInfoForNoopResumeDestroyFunc (Function *NoopFn)
 
static void setCannotDuplicate (CoroIdInst *CoroId)
 
static bool declaresCoroEarlyIntrinsics (const Module &M)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "coro-early"

Definition at line 19 of file CoroEarly.cpp.

Function Documentation

◆ buildDebugInfoForNoopResumeDestroyFunc()

static void buildDebugInfoForNoopResumeDestroyFunc ( Function NoopFn)
static

◆ declaresCoroEarlyIntrinsics()

static bool declaresCoroEarlyIntrinsics ( const Module M)
static

Definition at line 249 of file CoroEarly.cpp.

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

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

◆ setCannotDuplicate()

static void setCannotDuplicate ( CoroIdInst CoroId)
static

Definition at line 163 of file CoroEarly.cpp.

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