Displaying 7 results from an estimated 7 matches for "a_el".
Did you mean:
axel
2011 Nov 24
1
[LLVMdev] differences in IR and ELF?
...tCast(tmp, elm_type));
tmp = dyn_cast<Constant>(func);
assert(tmp != NULL && "function");
v_elements.push_back(ConstantExpr::getBitCast(tmp, elm_type));
/* Create array */
ArrayRef<Constant *> a_elements(v_elements);
ArrayType *type = ArrayType::get(elm_type, 3);
Constant *array = ConstantArray::get(type, a_elements);
/* Make new GlobalVariable from array */
GlobalVariable *global = new GlobalVariable(M, type, true,
my_link...
2011 Oct 20
3
[LLVMdev] common type at compile time?
...I cant use a BitCastInst to
make them all generic pointers. What else can I do?
In other words
* I built up a vector id like to eventually store as a GlobalVariable
array: vector<Constant *> v_elements;
* Turned it into something for the ConstantArray::get can use:
ArrayRef<Constant *> a_elements(v_elements);
* And now I need to come up with the ArrayType arg for the
ConstantArray::get() method where I only know: ArrayType::get(???, 4);
Thanks
2011 Oct 20
2
[LLVMdev] common type at compile time?
...gt;
> -- John T.
>
>>
>> In other words
>> * I built up a vector id like to eventually store as a GlobalVariable
>> array: vector<Constant *> v_elements;
>> * Turned it into something for the ConstantArray::get can use:
>> ArrayRef<Constant *> a_elements(v_elements);
>> * And now I need to come up with the ArrayType arg for the
>> ConstantArray::get() method where I only know: ArrayType::get(???, 4);
>>
>> Thanks
>> _______________________________________________
>> LLVM Developers mailing list
>> LLV...
2011 Nov 15
0
[LLVMdev] constructing global array of pointers?
...(tmp, elm_type));
tmp = dyn_cast<Constant>(func);
assert(tmp != NULL && "function");
v_elements.push_back(ConstantExpr::getBitCast(tmp, elm_type));
/* Create array */
ArrayRef<Constant *> a_elements(v_elements);
ArrayType *type = ArrayType::get(elm_type, 3);
Constant *array = ConstantArray::get(type, a_elements);
/* Make new GlobalVariable from array */
GlobalVariable *global = new GlobalVariable(M, type, true,...
2011 Nov 24
0
[LLVMdev] differences in IR and ELF?
...tmp = dyn_cast<Constant>(func);
> assert(tmp != NULL && "function");
> v_elements.push_back(ConstantExpr::getBitCast(tmp,
> elm_type));
>
> /* Create array */
> ArrayRef<Constant *> a_elements(v_elements);
> ArrayType *type = ArrayType::get(elm_type, 3);
> Constant *array = ConstantArray::get(type, a_elements);
>
> /* Make new GlobalVariable from array */
> GlobalVariable *global = new GlobalVariable(M, type, tr...
2011 Oct 20
0
[LLVMdev] common type at compile time?
...rs (basically a void pointer type).
-- John T.
>
> In other words
> * I built up a vector id like to eventually store as a GlobalVariable
> array: vector<Constant *> v_elements;
> * Turned it into something for the ConstantArray::get can use:
> ArrayRef<Constant *> a_elements(v_elements);
> * And now I need to come up with the ArrayType arg for the
> ConstantArray::get() method where I only know: ArrayType::get(???, 4);
>
> Thanks
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu...
2011 Oct 20
0
[LLVMdev] common type at compile time?
...>>
>>> In other words
>>> * I built up a vector id like to eventually store as a GlobalVariable
>>> array: vector<Constant *> v_elements;
>>> * Turned it into something for the ConstantArray::get can use:
>>> ArrayRef<Constant *> a_elements(v_elements);
>>> * And now I need to come up with the ArrayType arg for the
>>> ConstantArray::get() method where I only know: ArrayType::get(???, 4);
>>>
>>> Thanks
>>> _______________________________________________
>>> LLVM Developers m...