Lines Matching refs:SCC
48 // runOnSCC - Analyze the SCC, performing the transformation if possible.
49 bool runOnSCC(CallGraphSCC &SCC);
51 // AddReadAttrs - Deduce readonly/readnone attributes for the SCC.
52 bool AddReadAttrs(const CallGraphSCC &SCC);
54 // AddNoCaptureAttrs - Deduce nocapture attributes for the SCC.
55 bool AddNoCaptureAttrs(const CallGraphSCC &SCC);
61 // AddNoAliasAttrs - Deduce noalias attributes for the SCC.
62 bool AddNoAliasAttrs(const CallGraphSCC &SCC);
85 /// AddReadAttrs - Deduce readonly/readnone attributes for the SCC.
86 bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) {
89 // Fill SCCNodes with the elements of the SCC. Used for quickly
90 // looking up whether a given CallGraphNode is in this SCC.
91 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I)
94 // Check if any of the functions in the SCC read or write memory. If they
97 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
128 // Ignore calls to functions in the same SCC.
197 // Success! Functions in this SCC do not access memory, or only read memory.
200 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
228 /// AddNoCaptureAttrs - Deduce nocapture attributes for the SCC.
229 bool FunctionAttrs::AddNoCaptureAttrs(const CallGraphSCC &SCC) {
234 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
323 /// AddNoAliasAttrs - Deduce noalias attributes for the SCC.
324 bool FunctionAttrs::AddNoAliasAttrs(const CallGraphSCC &SCC) {
327 // Fill SCCNodes with the elements of the SCC. Used for quickly
328 // looking up whether a given CallGraphNode is in this SCC.
329 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I)
334 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
360 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
373 bool FunctionAttrs::runOnSCC(CallGraphSCC &SCC) {
376 bool Changed = AddReadAttrs(SCC);
377 Changed |= AddNoCaptureAttrs(SCC);
378 Changed |= AddNoAliasAttrs(SCC);