LLVM  8.0.1
Functions
GCRootLowering.cpp File Reference
#include "llvm/CodeGen/GCMetadata.h"
#include "llvm/CodeGen/GCStrategy.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for GCRootLowering.cpp:

Go to the source code of this file.

Functions

 INITIALIZE_PASS_BEGIN (LowerIntrinsics, "gc-lowering", "GC Lowering", false, false) FunctionPass *llvm
 
static bool CouldBecomeSafePoint (Instruction *I)
 CouldBecomeSafePoint - Predicate to conservatively determine whether the instruction could introduce a safe point. More...
 
static bool InsertRootInitializers (Function &F, ArrayRef< AllocaInst *> Roots)
 
 INITIALIZE_PASS (GCMachineCodeAnalysis, "gc-analysis", "Analyze Machine Code For Garbage Collection", false, false) GCMachineCodeAnalysis
 

Function Documentation

◆ CouldBecomeSafePoint()

static bool CouldBecomeSafePoint ( Instruction I)
static

CouldBecomeSafePoint - Predicate to conservatively determine whether the instruction could introduce a safe point.

Definition at line 118 of file GCRootLowering.cpp.

References F(), and llvm::Intrinsic::gcroot.

Referenced by InsertRootInitializers().

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( GCMachineCodeAnalysis  ,
"gc-analysis ,
"Analyze Machine Code For Garbage Collection"  ,
false  ,
false   
)

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( LowerIntrinsics  ,
"gc-lowering ,
"GC Lowering ,
false  ,
false   
)

◆ InsertRootInitializers()

static bool InsertRootInitializers ( Function F,
ArrayRef< AllocaInst *>  Roots 
)
static