Displaying 4 results from an estimated 4 matches for "_str_format_".
2003 Nov 21
2
[LLVMdev] GetElementPtrInst Again!
...When I set up the call, I get the following from that pesky :) verifier:
Call parameter type does not match function signature!
getelementptr [3 x sbyte]* %_str_format_, long 0 ; <[3 x sbyte]*>:0 [#uses=1]
typesbyte* sbyte *
So, in LLVM are arrays and pointers not equivalent as in "C"?
What do I have to do to turn my little str_format array into a pointer?
I tried the FunctionType with an argument of [3 x sbyte] but that led to
mu...
2003 Nov 21
0
[LLVMdev] GetElementPtrInst Again!
...n taking a pointer to SByteTy with var
> args and returning SIntTy:
Sounds good.
> When I set up the call, I get the following from that pesky :) verifier:
Ah, but it's so helpful! :)
> Call parameter type does not match function signature!
> getelementptr [3 x sbyte]* %_str_format_, long 0 ; <[3 x sbyte]*>:0 [#uses=1]
> typesbyte* sbyte *
>
> So, in LLVM are arrays and pointers not equivalent as in "C"?
Absolutely not.
> What do I have to do to turn my little str_format array into a pointer?
Try making a: getelementptr [3 x sbyte]...
2003 Nov 21
1
[LLVMdev] GetElementPtrInst Again!
...which is one
of the hardest things to do!
> > So, in LLVM are arrays and pointers not equivalent as in "C"?
>
> Absolutely not.
Aha!
>
> > What do I have to do to turn my little str_format array into a pointer?
>
> Try making a: getelementptr [3 x sbyte]* %_str_format_, long 0, long 0
>
> This means:
> [3 x sbyte]* %_str_format_, ; Start from _str_format_
> long 0, ; Get the first [3 x sbyte] array pointed to
> long 0 ; Get the first element in the array
>
Okay, so getelementptr...
2004 May 09
2
[LLVMdev] Strange SetCond Behavior
...t I find. Please let me know if the above sounds like a known
problem or usage issue.
Thanks,
Reid.
-------------- next part --------------
%_stack_ = linkonce global [1024 x long] zeroinitializer ; <[1024 x long]*> [#uses=12]
%_index_ = linkonce global long 0 ; <long*> [#uses=36]
%_str_format_ = linkonce constant [3 x sbyte] c"%s\00" ; <[3 x sbyte]*> [#uses=0]
%_in_str_format_ = linkonce constant [5 x sbyte] c" %as\00" ; <[5 x sbyte]*> [#uses=0]
%_num_format_ = linkonce constant [3 x sbyte] c"%d\00" ; <[3 x sbyte]*> [#uses=0]
%_in_num_fo...