Home | History | Annotate | Download | only in IPO

Lines Matching defs:Ctors

55 STATISTIC(NumCtorsEvaluated, "Number of static ctors evaluated");
2009 const std::vector<Function*> &Ctors) {
2021 for (unsigned i = 0, e = Ctors.size(); i != e; ++i) {
2022 if (Ctors[i]) {
2023 CSVals[1] = Ctors[i];
2061 if (Ctors.size())
2715 /// OptimizeGlobalCtorsList - Simplify and evaluation global ctors if possible.
2718 std::vector<Function*> Ctors = ParseGlobalCtors(GCL);
2720 if (Ctors.empty()) return false;
2722 // Loop over global ctors, optimizing them when we can.
2723 for (unsigned i = 0; i != Ctors.size(); ++i) {
2724 Function *F = Ctors[i];
2728 if (i != Ctors.size()-1) {
2729 Ctors.resize(i+1);
2740 Ctors.erase(Ctors.begin()+i);
2750 GCL = InstallGlobalCtors(GCL, Ctors);
2962 // TODO: Move all global ctors functions to the end of the module for code