llvm.org GIT mirror llvm / b6d1f39
Fix documentation for these functions; they do not only modify users within the block specified by the InstList. Patch by Stefanus Du Toit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56200 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 12 years ago
1 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
19431943
19441944
  • ReplaceInstWithValue
  • 19451945
    1946

    This function replaces all uses (within a basic block) of a given

    1947 instruction with a value, and then removes the original instruction. The
    1948 following example illustrates the replacement of the result of a particular
    1946

    This function replaces all uses of a given instruction with a value,

    1947 and then removes the original instruction. The following example
    1948 illustrates the replacement of the result of a particular
    19491949 AllocaInst that allocates memory for a single integer with a null
    19501950 pointer to an integer.

    19511951
    19611961
  • ReplaceInstWithInst
  • 19621962
    19631963

    This function replaces a particular instruction with another

    1964 instruction. The following example illustrates the replacement of one
    1965 AllocaInst with another.

    1964 instruction, inserting the new instruction into the basic block at the
    1965 location where the old instruction was, and replacing any uses of the old
    1966 instruction with the new instruction. The following example illustrates
    1967 the replacement of one AllocaInst with another.

    19661968
    19671969
    19681970