Displaying 3 results from an estimated 3 matches for "const_ptr_103_indices".
2015 Mar 07
2
[LLVMdev] cannot understand global c++API code
...gt;getContext(),
APFloat(6.820000e+01f));
ConstantInt* const_int32_98 = ConstantInt::get(mod->getContext(), APInt(32,
StringRef("0"), 10));
ConstantInt* const_int32_99 = ConstantInt::get(mod->getContext(), APInt(32,
StringRef("1"), 10));
std::vector<Constant*> const_ptr_103_indices;
const_ptr_103_indices.push_back(const_int32_98);
const_ptr_103_indices.push_back(const_int32_99);
Constant* const_ptr_103 = ConstantExpr::getGetElementPtr(gvar_struct_foo,
const_ptr_103_indices);
//the store inst is in principle clear
StoreInst* void_119 = new StoreInst(const_float_102, const_pt...
2015 Mar 17
2
[LLVMdev] casting Constant * to value *?
Hi all,
extracting datafields of globals, the API code ends up in a Constant *
Constant* const_ptr_103 = ConstantExpr::getGetElementPtr(gvar_struct_foo,
const_ptr_103_indices);
it can be used to initialize e.g. a new instruction like:
StoreInst* void_119 = new StoreInst(const_float_102, const_ptr_103, false,
label_entry_113);
But how about replacing the operand of an already existing instruction using
a Constant *?
Instruction->setOperand(1,__needs_a_value*_he...
2015 Mar 18
5
[LLVMdev] casting Constant * to value *?
...Alex
John Criswell wrote:
> On 3/17/15 8:40 PM, Alexander Poddey wrote:
>> Hi all,
>>
>> extracting datafields of globals, the API code ends up in a Constant *
>>
>>
>> Constant* const_ptr_103 = ConstantExpr::getGetElementPtr(gvar_struct_foo,
>> const_ptr_103_indices);
>>
>> it can be used to initialize e.g. a new instruction like:
>>
>> StoreInst* void_119 = new StoreInst(const_float_102, const_ptr_103,
>> false, label_entry_113);
>>
>>
>> But how about replacing the operand of an already existing instruction
>...