Home | History | Annotate | Download | only in IPO

Lines Matching defs:Ctors

54 STATISTIC(NumCtorsEvaluated, "Number of static ctors evaluated");
1996 const std::vector<Function*> &Ctors) {
2008 for (unsigned i = 0, e = Ctors.size(); i != e; ++i) {
2009 if (Ctors[i]) {
2010 CSVals[1] = Ctors[i];
2048 if (Ctors.size())
2606 /// OptimizeGlobalCtorsList - Simplify and evaluation global ctors if possible.
2609 std::vector<Function*> Ctors = ParseGlobalCtors(GCL);
2611 if (Ctors.empty()) return false;
2614 // Loop over global ctors, optimizing them when we can.
2615 for (unsigned i = 0; i != Ctors.size(); ++i) {
2616 Function *F = Ctors[i];
2620 if (i != Ctors.size()-1) {
2621 Ctors.resize(i+1);
2632 Ctors.erase(Ctors.begin()+i);
2642 GCL = InstallGlobalCtors(GCL, Ctors);
2847 // TODO: Move all global ctors functions to the end of the module for code