Lines Matching defs: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"
142 "MergeFunctions to pass a basic correctness check. "
191 /// MergeFunctions finds functions which will generate identical machine code,
193 /// MergeFunctions will fold them by replacing a call to one to a call to a
195 class MergeFunctions {
197 MergeFunctions() : FnTree(FunctionNodeCmp(&GlobalNumbers)) {
306 MergeFunctions MF;
313 bool MergeFunctions::doFunctionalCheck(std::vector<WeakTrackingVH> &Worklist) {
413 bool MergeFunctions::runOnModule(Module &M) {
472 void MergeFunctions::replaceDirectCallers(Function *Old, Function *New) {
515 void MergeFunctions::eraseInstsUnrelatedToPDI(
545 void MergeFunctions::eraseTail(Function *G) {
567 void MergeFunctions::filterInstsUnrelatedToPDI(
732 void MergeFunctions::writeThunk(Function *F, Function *G) {
828 void MergeFunctions::writeAlias(Function *F, Function *G) {
853 bool MergeFunctions::writeThunkOrAlias(Function *F, Function *G) {
866 void MergeFunctions::mergeTwoFunctions(Function *F, Function *G) {
941 void MergeFunctions::replaceFunctionInTree(const FunctionNode &FN,
980 bool MergeFunctions::insert(Function *NewFunction) {
1012 void MergeFunctions::remove(Function *F) {
1026 void MergeFunctions::removeUsers(Value *V) {