26 if (
F.isDeclaration())
39 GCRel->replaceAllUsesWith(GCRel->getDerivedPtr());
40 GCRel->eraseFromParent();
42 return !GCRelocates.
empty();
Expand Atomic instructions
static bool stripGCRelocates(Function &F)
Represents analyses that only rely on functions' control flow.
Represents calls to the gc.relocate intrinsic.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
PreservedAnalyses & preserveSet()
Mark an analysis set as preserved.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
bool isa(const From &Val)
isa<X> - Return true if the parameter to the template is an instance of one of the template type argu...
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.