search for: llvmconststring

Displaying 7 results from an estimated 7 matches for "llvmconststring".

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 through...
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 to...
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 constan...
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 poin...
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 to...
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. >> > >> &gt...
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 >> > &g...