Displaying 2 results from an estimated 2 matches for "argumrnt".
Did you mean:
argument
2015 May 17
2
[LLVMdev] copy value of a global's data field to another global
Hi all,
I can get access to the data stored in globals as follows:
GlobalVariable* pGvarAct=_set_a_valid_global_;
const_ptr_indicesVec=_the_indexes_
llvm::Constant* pConst;
pConst=ConstantExpr::getGetElementPtr(pGvarAct, const_ptr_indicesVec);
and e.g. use this to repalece an argumrnt of an instruction like:
I->setOperand(someArgumentIndex,pConst);
However, getGetElementPtr returns a pointerType, which holds the actual type
as sub_type.
This is a problem when I want to use the data from one global for the
initializer of another
pGvar->setInitializer(__NeedsAFloat...
2015 May 18
2
[LLVMdev] copy value of a global's data field to another global
...obals as follows:
>>
>> GlobalVariable* pGvarAct=_set_a_valid_global_;
>> const_ptr_indicesVec=_the_indexes_
>>
>> llvm::Constant* pConst;
>> pConst=ConstantExpr::getGetElementPtr(pGvarAct, const_ptr_indicesVec);
>>
>> and e.g. use this to repalece an argumrnt of an instruction like:
>>
>> I->setOperand(someArgumentIndex,pConst);
>>
>> However, getGetElementPtr returns a pointerType, which holds the actual
>> type
>> as sub_type.
>> This is a problem when I want to use the data from one global for the
>>...