Lines Matching refs:MergeFunctions
1 //===- MergeFunctions.cpp - Merge identical functions ---------------------===//
84 // versions of MergeFunctions, though it presented only in two function pairs
91 #include "llvm/Transforms/IPO/MergeFunctions.h"
141 "MergeFunctions to pass a basic correctness check. "
190 /// MergeFunctions finds functions which will generate identical machine code,
192 /// MergeFunctions will fold them by replacing a call to one to a call to a
194 class MergeFunctions {
196 MergeFunctions() : FnTree(FunctionNodeCmp(&GlobalNumbers)) {
316 SmallPtrSet<GlobalValue *, 4> &MergeFunctions::getUsed() { return Used; }
319 MergeFunctions MF;
329 MergeFunctions MF;
334 bool MergeFunctions::doFunctionalCheck(std::vector<WeakTrackingVH> &Worklist) {
437 template <typename FuncContainer> bool MergeFunctions::run(FuncContainer &M) {
492 MergeFunctions::runOnFunctions(ArrayRef<Function *> F) {
499 void MergeFunctions::replaceDirectCallers(Function *Old, Function *New) {
542 void MergeFunctions::eraseInstsUnrelatedToPDI(
572 void MergeFunctions::eraseTail(Function *G) {
594 void MergeFunctions::filterInstsUnrelatedToPDI(
759 void MergeFunctions::writeThunk(Function *F, Function *G) {
855 void MergeFunctions::writeAlias(Function *F, Function *G) {
880 bool MergeFunctions::writeThunkOrAlias(Function *F, Function *G) {
893 void MergeFunctions::mergeTwoFunctions(Function *F, Function *G) {
968 void MergeFunctions::replaceFunctionInTree(const FunctionNode &FN,
1007 bool MergeFunctions::insert(Function *NewFunction) {
1040 void MergeFunctions::remove(Function *F) {
1054 void MergeFunctions::removeUsers(Value *V) {