Fix corrupted text and example in 7.3 Memory in LLVM
This commit is contained in:
parent
2479c2dc22
commit
125e65e261
1 changed files with 6 additions and 6 deletions
|
|
@ -133,11 +133,11 @@ instruction <http://www.llvm.org/docs/LangRef.html#i_alloca>`_:
|
||||||
|
|
||||||
define i32 @example() {
|
define i32 @example() {
|
||||||
entry:
|
entry:
|
||||||
%X = alloca i32 ; type of %X is i32 *.
|
%X = alloca i32 ; type of %X is i32*
|
||||||
...
|
...
|
||||||
%tmp = load i32* %X ; load the stack value %X from the stack.
|
%tmp = load i32* %X ; load the stack value %X from the stack
|
||||||
%tmp2 = add i32 %tmp, 1 ; increment it store i32 %tmp2,
|
%tmp2 = add i32 %tmp, 1 ; increment it
|
||||||
i32* %X ; store it back
|
store i32 %tmp2, i32* %X ; store it back
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue