Lines Matching defs:SimplifyLibCalls
1 //===- SimplifyLibCalls.cpp - Optimize specific well-known library calls --===//
1554 // SimplifyLibCalls Pass Implementation
1560 class SimplifyLibCalls : public FunctionPass {
1587 SimplifyLibCalls() : FunctionPass(ID), StrCpy(false), StrCpyChk(true),
1612 char SimplifyLibCalls::ID = 0;
1614 INITIALIZE_PASS_BEGIN(SimplifyLibCalls, "simplify-libcalls",
1617 INITIALIZE_PASS_END(SimplifyLibCalls, "simplify-libcalls",
1622 return new SimplifyLibCalls();
1625 void SimplifyLibCalls::AddOpt(LibFunc::Func F, LibCallOptimization* Opt) {
1630 void SimplifyLibCalls::AddOpt(LibFunc::Func F1, LibFunc::Func F2,
1638 void SimplifyLibCalls::InitOptimizations() {
1746 bool SimplifyLibCalls::runOnFunction(Function &F) {
1783 DEBUG(dbgs() << "SimplifyLibCalls simplified: " << *CI;
1807 void SimplifyLibCalls::setDoesNotAccessMemory(Function &F) {
1814 void SimplifyLibCalls::setOnlyReadsMemory(Function &F) {
1821 void SimplifyLibCalls::setDoesNotThrow(Function &F) {
1828 void SimplifyLibCalls::setDoesNotCapture(Function &F, unsigned n) {
1835 void SimplifyLibCalls::setDoesNotAlias(Function &F, unsigned n) {
1844 void SimplifyLibCalls::inferPrototypeAttributes(Function &F) {
2486 bool SimplifyLibCalls::doInitialization(Module &M) {