search for: const_use_iterator

Displaying 3 results from an estimated 3 matches for "const_use_iterator".

Did you mean: const_user_iterator
2014 Mar 10
2
[LLVMdev] GlobalValues appear in their own use lists?
...=================================================================== --- lib/IR/Verifier.cpp (revision 203468) +++ lib/IR/Verifier.cpp (working copy) @@ -360,6 +360,11 @@ "Global is external, but doesn't have external or weak linkage!", &GV); + for (Value::const_use_iterator UI = GV.use_begin(), UE = GV.use_end(); + UI != UE; ++UI) { + Assert1(*UI != &GV, "Global values cannot be their own uses!", &GV); + } + Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), "Only global variables can have appending linka...
2014 Mar 11
3
[LLVMdev] GlobalValues appear in their own use lists?
...=================================================================== --- lib/IR/Verifier.cpp (revision 203523) +++ lib/IR/Verifier.cpp (working copy) @@ -360,6 +360,11 @@ "Global is external, but doesn't have external or weak linkage!", &GV); + for (Value::const_use_iterator UI = GV.use_begin(), UE = GV.use_end(); + UI != UE; ++UI) { + Assert1(*UI != &GV, "Global values cannot be their own uses!", &GV); + } + Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), "Only global variables can have appending linka...
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...PtrSet<const Value*, 16> Visited; + SmallVector<const Instruction*, 8> WorkList; + WorkList.push_back(AI); + + // A DFS search through all uses of the alloca in bitcasts/PHI/GEPs/etc. + while (!WorkList.empty()) { + const Instruction *V = WorkList.pop_back_val(); + for (Value::const_use_iterator UI = V->use_begin(), + UE = V->use_end(); UI != UE; ++UI) { + const Instruction *I = cast<const Instruction>(UI->getUser()); + assert(V == UI->get()); + + switch (I->getOpcode()) { + case Instruction::Load: + // Loadi...