From: Dan Gohman
- %array = malloc [4 x i8] ; yields {[%4 x i8]*}:array
+ %array = malloc [4 x i8] ; yields {[%4 x i8]*}:array
%size = add i32 2, 2 ; yields {i32}:size = i32 4
%array1 = malloc i8, i32 4 ; yields {i8*}:array1
@@ -3207,7 +3207,7 @@ result is null if there is insufficient memory available.
Syntax:
- free <type> <value> ; yields {void}
+ free <type> <value> ; yields {void}
Overview:
@@ -3230,7 +3230,7 @@ is a noop.
Example:
- %array = malloc [4 x i8] ; yields {[4 x i8]*}:array
+ %array = malloc [4 x i8] ; yields {[4 x i8]*}:array
free [4 x i8]* %array
@@ -3281,10 +3281,10 @@ is legal, but the result is undefined.
Example:
- %ptr = alloca i32 ; yields {i32*}:ptr
- %ptr = alloca i32, i32 4 ; yields {i32*}:ptr
- %ptr = alloca i32, i32 4, align 1024 ; yields {i32*}:ptr
- %ptr = alloca i32, align 1024 ; yields {i32*}:ptr
+ %ptr = alloca i32 ; yields {i32*}:ptr
+ %ptr = alloca i32, i32 4 ; yields {i32*}:ptr
+ %ptr = alloca i32, i32 4, align 1024 ; yields {i32*}:ptr
+ %ptr = alloca i32, align 1024 ; yields {i32*}:ptr