Replace uses of this value that occur outside BB with V.
Synopsis
Declared in <llvm/IR/Value.h>
void
replaceUsesOutsideBlock(
Value* V,
BasicBlock* BB);
Description
Go through the uses list for this definition and make each use point to "V" instead of "this" when the use is outside the block. 'This's use list is expected to have at least one element. Unlike replaceAllUsesWith() this function does not support basic block values.
Parameters
Name |
Description |
V |
Replacement value for out‐of‐block uses. |
BB |
Basic block whose uses of this value are left unchanged. |
Created with MrDocs