Home | History | Annotate | Download | only in IPO

Lines Matching defs:Used

103 /// isLeakCheckerRoot - Is this global variable possibly used by a leak checker
934 // If the initialization boolean was used, insert it, otherwise delete it.
1481 // We can't optimize this if the malloc itself is used in a complex way,
1595 /// whenever it is used. This exposes the values to other scalar optimizations.
1929 // The function is not used by a trampoline intrinsic, so it is safe
2225 /// CallStack - This is used to detect recursion. In pathological situations
2749 /// \brief An easy to access representation of llvm.used and llvm.compiler.used.
2751 SmallPtrSet<GlobalValue *, 8> Used;
2758 UsedV = collectUsedGlobalVariables(M, Used, false);
2763 iterator usedBegin() { return Used.begin(); }
2764 iterator usedEnd() { return Used.end(); }
2765 used_iterator_range used() {
2773 bool usedCount(GlobalValue *GV) const { return Used.count(GV); }
2777 bool usedErase(GlobalValue *GV) { return Used.erase(GV); }
2779 bool usedInsert(GlobalValue *GV) { return Used.insert(GV).second; }
2786 setUsedInitializer(*UsedV, Used);
2799 "element from llvm.compiler.used");
2801 // Strictly more than one use. So at least one is not in llvm.used and
2802 // llvm.compiler.used.
2805 // Exactly one use. Check if it is in llvm.used or llvm.compiler.used.
2814 "element from llvm.compiler.used");
2861 LLVMUsed Used(M);
2863 for (GlobalValue *GV : Used.used())
2864 Used.compilerUsedErase(GV);
2887 if (!hasUsesToReplace(*J, Used, RenameTarget))
2901 if (Used.usedErase(J))
2902 Used.usedInsert(Target);
2904 if (Used.compilerUsedErase(J))
2905 Used.compilerUsedInsert(Target);
2906 } else if (mayHaveOtherReferences(*J, Used))
2915 Used.syncVariablesAndSets();