pub fn replace_all_uses_with(val: &ValueRef, new_val: &ValueRef)
Expand description
Replace all uses of a value with another one.
§Details
Replaces all uses of this value with another value in the LLVM IR.
This function wraps the LLVMReplaceAllUsesWith
function from the LLVM core library. It replaces
every use of the value represented by ValueRef
with the value represented by new_val
. This is useful
for modifying LLVM IR when you need to substitute one value with another throughout the IR.
§Parameters
new_val
: A reference to the value that will replace all uses ofValueRef
.