[Transforms] Delete unused declarations from NewGVN/CoroSplit/ValueMapper

This commit is contained in:
Fangrui Song 2020-12-06 13:04:01 -08:00
parent f19876c536
commit 2832f3528c
4 changed files with 0 additions and 8 deletions

View File

@ -47,8 +47,6 @@ namespace coro {
bool declaresIntrinsics(const Module &M,
const std::initializer_list<StringRef>);
void replaceAllCoroAllocs(CoroBeginInst *CB, bool Replacement);
void replaceAllCoroFrees(CoroBeginInst *CB, Value *Replacement);
void replaceCoroFree(CoroIdInst *CoroId, bool Elide);
void updateCallGraph(Function &Caller, ArrayRef<Function *> Funcs,
CallGraph &CG, CallGraphSCC &SCC);

View File

@ -104,7 +104,6 @@ private:
ValueToValueMapTy VMap;
IRBuilder<> Builder;
Value *NewFramePtr = nullptr;
Value *SwiftErrorSlot = nullptr;
/// The active suspend instruction; meaningful only for continuation and async
/// ABIs.
@ -152,7 +151,6 @@ private:
llvm_unreachable("Unknown CoroCloner::Kind enum");
}
void createDeclaration();
void replaceEntryBlock();
Value *deriveNewFramePointer();
void replaceRetconOrAsyncSuspendUses();
@ -160,7 +158,6 @@ private:
void replaceCoroEnds();
void replaceSwiftErrorOps();
void handleFinalSuspend();
void maybeFreeContinuationStorage();
};
} // end anonymous namespace

View File

@ -835,7 +835,6 @@ private:
BasicBlock *getBlockForValue(Value *V) const;
void deleteExpression(const Expression *E) const;
MemoryUseOrDef *getMemoryAccess(const Instruction *) const;
MemoryAccess *getDefiningAccess(const MemoryAccess *) const;
MemoryPhi *getMemoryAccess(const BasicBlock *) const;
template <class T, class Range> T *getMinDFSOfRange(const Range &) const;

View File

@ -167,11 +167,9 @@ public:
void flush();
private:
void mapGlobalInitializer(GlobalVariable &GV, Constant &Init);
void mapAppendingVariable(GlobalVariable &GV, Constant *InitPrefix,
bool IsOldCtorDtor,
ArrayRef<Constant *> NewMembers);
void mapGlobalIndirectSymbol(GlobalIndirectSymbol &GIS, Constant &Target);
ValueToValueMapTy &getVM() { return *MCs[CurrentMCID].VM; }
ValueMaterializer *getMaterializer() { return MCs[CurrentMCID].Materializer; }