search for: str10

Displaying 5 results from an estimated 5 matches for "str10".

Did you mean: str1
2008 Jan 06
0
[LLVMdev] Another memory fun
...; <i8*> [#uses=1] call i8* @strcat( i8* %str3, i8* %str4 ) ; <i8*>:0 [#uses=0] %tmp6 = call i32 @puts( i8* %str3 ) ; <i32> [#uses=0] %str9 = getelementptr [8 x i8]* @.str8, i64 0, i64 0 ; <i8*> [#uses=2] %str10 = getelementptr [7 x i8]* @.str7, i64 0, i64 0 ; <i8*> [#uses=1] call i8* @strcat( i8* %str9, i8* %str10 ) ; <i8*>:1 [#uses=0] %tmp12 = call i32 @puts( i8* %str9 ) ; <i32> [#uses=0] ret i32 0 } -------------- next part ---...
2008 Jan 06
4
[LLVMdev] Another memory fun
Yes, I agree with you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080106/efb1c465/attachment.html>
2008 Jan 06
4
[LLVMdev] Another memory fun
...; <i8*> [#uses=1] call i8* @strcat( i8* %str3, i8* %str4 ) ; <i8*>:0 [#uses=0] %tmp6 = call i32 @puts( i8* %str3 ) ; <i32> [#uses=0] %str9 = getelementptr [8 x i8]* @.str8, i64 0, i64 0 ; <i8*> [#uses=2] %str10 = getelementptr [7 x i8]* @.str7, i64 0, i64 0 ; <i8*> [#uses=1] call i8* @strcat( i8* %str9, i8* %str10 ) ; <i8*>:1 [#uses=0] %tmp12 = call i32 @puts( i8* %str9 ) ; <i32> [#uses=0] ret i32 0 } writes: % hello world moth...
2008 Jan 06
0
[LLVMdev] Another memory fun
It's invalid for the same reason that char *foobar = strcat("foo", "bar"); is invalid in C. Please make sure you understand what you're asking LLVM to do before going any further down this path. A good approach is to write out the correct code in C and then use llvm-gcc (or the demo page at http://llvm.org/demo ) to see what it looks like in LLVM assembly. Nick
2008 Jan 06
4
[LLVMdev] Another memory fun
Hey again) Now I have next code: ; ModuleID = 'sample.lz' @.str1 = internal global [8 x i8] c" world!\00" ; <[8 x i8]*> [#uses=1] @.str2 = internal global [8 x i8] c"hello, \00" ; <[8 x i8]*> [#uses=1] @.str7 = internal global [21 x i8] c"welcome to out hall!\00" ; <[21 x i8]*> [#uses=1] declare i32 @puts(i8*)