Home
last modified time | relevance | path

Searched refs:duplicateFunction (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DPartialInlining.cpp73 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction() local
75 duplicateFunction->setLinkage(GlobalValue::InternalLinkage); in unswitchFunction()
76 F->getParent()->getFunctionList().push_back(duplicateFunction); in unswitchFunction()
83 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()
114 for (Function::iterator FI = duplicateFunction->begin(), in unswitchFunction()
115 FE = duplicateFunction->end(); FI != FE; ++FI) in unswitchFunction()
122 DT.runOnFunction(*duplicateFunction); in unswitchFunction()
130 std::vector<User*> Users(duplicateFunction->use_begin(), in unswitchFunction()
131 duplicateFunction->use_end()); in unswitchFunction()
141 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()
[all …]
/external/llvm/lib/Transforms/IPO/
DPartialInlining.cpp82 Function* duplicateFunction = CloneFunction(F, VMap); in unswitchFunction() local
83 duplicateFunction->setLinkage(GlobalValue::InternalLinkage); in unswitchFunction()
90 F->replaceAllUsesWith(duplicateFunction); in unswitchFunction()
121 for (BasicBlock &BB : *duplicateFunction) in unswitchFunction()
128 DT.recalculate(*duplicateFunction); in unswitchFunction()
137 std::vector<User *> Users(duplicateFunction->user_begin(), in unswitchFunction()
138 duplicateFunction->user_end()); in unswitchFunction()
147 duplicateFunction->replaceAllUsesWith(F); in unswitchFunction()
148 duplicateFunction->eraseFromParent(); in unswitchFunction()