search for: llvmsetinitializer

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

Did you mean: llvmgetinitializer
2010 Jan 11
4
[LLVMdev] Operations on constant array value?
...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 get the address of an element of a constant array or struct without first initializing a global variable to the constant? Thanks in adva...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...ough 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 get the address of an element of a constant array or > > struct without first init...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...nstant 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 get the address of an element of a constant array or > struct without first initializing a global variable to...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...ough 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 get the address of an element of a constant array or > > struct without first init...
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
...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 get the address of an element of a constant array or struct without first initializing a global variable to the const...
2010 Jan 11
2
[LLVMdev] Operations on constant array value?
...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 get the address of an element of a constant array or >> > s...