Displaying 7 results from an estimated 7 matches for "llvmconststr".
2010 Jan 11
4
[LLVMdev] Operations on constant array value?
...ementptr on a pointer to an array to get a pointer to an array element.
I also understand that there is no 'address of' operation.
As a result I can't figure out how to use constant derived types without
assigning them to a global. Say I want to use the C bindings function
LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer to a
C string constant - there doesn't seem to be any way to directly use the
resulting [N x i8] value directly and there's no operator that gives me its
address.
The only way I can see to get a pointer to the string constant array is to
go thro...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...an array
> element.
> > I also understand that there is no 'address of' operation.
> >
> > As a result I can't figure out how to use constant derived types without
> > assigning them to a global. Say I want to use the C bindings function
> > LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer to
> a
> > C string constant - there doesn't seem to be any way to directly use the
> > resulting [N x i8] value directly and there's no operator that gives me
> its
> > address.
> >
> > The only way I can see...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...an array to get a pointer to an array element.
> I also understand that there is no 'address of' operation.
>
> As a result I can't figure out how to use constant derived types without
> assigning them to a global. Say I want to use the C bindings function
> LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer to a
> C string constant - there doesn't seem to be any way to directly use the
> resulting [N x i8] value directly and there's no operator that gives me its
> address.
>
> The only way I can see to get a pointer to the string cons...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...r to an array element.
> > I also understand that there is no 'address of' operation.
> >
> > As a result I can't figure out how to use constant derived types without
> > assigning them to a global. Say I want to use the C bindings function
> > LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer to a
> > C string constant - there doesn't seem to be any way to directly use the
> > resulting [N x i8] value directly and there's no operator that gives me its
> > address.
> >
> > The only way I can see to get a p...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...n a pointer to an array to get a pointer to an array element. I also understand that there is no 'address of' operation.
>
> As a result I can't figure out how to use constant derived types without assigning them to a global. Say I want to use the C bindings function LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer to a C string constant - there doesn't seem to be any way to directly use the resulting [N x i8] value directly and there's no operator that gives me its address.
>
> The only way I can see to get a pointer to the string constant array is...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...t.
>> > I also understand that there is no 'address of' operation.
>> >
>> > As a result I can't figure out how to use constant derived types without
>> > assigning them to a global. Say I want to use the C bindings function
>> > LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer
>> to a
>> > C string constant - there doesn't seem to be any way to directly use the
>> > resulting [N x i8] value directly and there's no operator that gives me
>> its
>> > address.
>> >
>>...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...t.
>> > I also understand that there is no 'address of' operation.
>> >
>> > As a result I can't figure out how to use constant derived types without
>> > assigning them to a global. Say I want to use the C bindings function
>> > LLVMValueRef LLVMConstString(char *, int, int) to get an int8* pointer to a
>> > C string constant - there doesn't seem to be any way to directly use the
>> > resulting [N x i8] value directly and there's no operator that gives me its
>> > address.
>> >
>> snip
>> >...