search for: string_literal_numb

Displaying 6 results from an estimated 6 matches for "string_literal_numb".

Did you mean: string_literal_number
2010 Jan 11
4
[LLVMdev] Operations on constant array value?
...y 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 a global variable, for example: g = LLVMAddGlobal(module, LLVMTypeOf(v), "__string_" + string_literal_number); string_literal_number = string_literal_number + 1; v = LLVMConstString(string_literal, string_literal.Length, 0); LLVMSetInitializer(g, v); elements = { LLVMConstInt(LLVMInt32Type(), 0L, 0), LLVMConstInt(LLVMInt32Type(), 0L, 0) }; return LLVMConstInBoundsGEP(g, elements, 2); Is it possible to...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...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 a global variable, for example: > > > > g = LLVMAddGlobal(module, LLVMTypeOf(v), "__string_" + > > string_literal_number); > > string_literal_number = string_literal_number + 1; > > v = LLVMConstString(string_literal, string_literal.Length, 0); > > LLVMSetInitializer(g, v); > > elements = { LLVMConstInt(LLVMInt32Type(), 0L, 0), > > LLVMConstInt(LLVMInt32Type(), 0L, 0) }; > > retu...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...ng [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 a global variable, for example: > > g = LLVMAddGlobal(module, LLVMTypeOf(v), "__string_" + > string_literal_number); > string_literal_number = string_literal_number + 1; > v = LLVMConstString(string_literal, string_literal.Length, 0); > LLVMSetInitializer(g, v); > elements = { LLVMConstInt(LLVMInt32Type(), 0L, 0), > LLVMConstInt(LLVMInt32Type(), 0L, 0) }; > return LLVMConstInBoundsGEP(g, ele...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...e'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 a global variable, for example: > > > > g = LLVMAddGlobal(module, LLVMTypeOf(v), "__string_" + > > string_literal_number); > > string_literal_number = string_literal_number + 1; > > v = LLVMConstString(string_literal, string_literal.Length, 0); > > LLVMSetInitializer(g, v); > > elements = { LLVMConstInt(LLVMInt32Type(), 0L, 0), > > LLVMConstInt(LLVMInt32Type(), 0L, 0) }; > > retu...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...e 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 a global variable, for example: > > g = LLVMAddGlobal(module, LLVMTypeOf(v), "__string_" + string_literal_number); > string_literal_number = string_literal_number + 1; > v = LLVMConstString(string_literal, string_literal.Length, 0); > LLVMSetInitializer(g, v); > elements = { LLVMConstInt(LLVMInt32Type(), 0L, 0), LLVMConstInt(LLVMInt32Type(), 0L, 0) }; > return LLVMConstInBoundsGEP(g, elements...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...>> > address. >> > >> > The only way I can see to get a pointer to the string constant array is >> to >> > go through a global variable, for example: >> > >> > g = LLVMAddGlobal(module, LLVMTypeOf(v), "__string_" + >> > string_literal_number); >> > string_literal_number = string_literal_number + 1; >> > v = LLVMConstString(string_literal, string_literal.Length, 0); >> > LLVMSetInitializer(g, v); >> > elements = { LLVMConstInt(LLVMInt32Type(), 0L, 0), >> > LLVMConstInt(LLVMInt32Type(), 0L,...