Lines Matching full:globals
10 // This transform is designed to eliminate unreachable internal globals from the
11 // program. It uses an aggressive algorithm, searching out globals that are
12 // known to be alive. After it finds all of the globals which are needed, it
87 for (GlobalVariable &GV : M.globals())
94 // Loop over the module, adding globals which are obviously necessary.
103 for (GlobalVariable &GV : M.globals()) {
105 // Externally visible & appending globals are needed, if they have an
119 // Now that all globals which are needed are in the AliveGlobals set, we loop
124 std::vector<GlobalVariable *> DeadGlobalVars; // Keep track of dead globals
125 for (GlobalVariable &GV : M.globals())
127 DeadGlobalVars.push_back(&GV); // Keep track of dead globals
140 DeadFunctions.push_back(&F); // Keep track of dead globals
215 // any globals used will be marked as needed.
235 // Loop over all of the operands of the constant, adding any globals they
236 // use to the list of needed globals.