Displaying 3 results from an estimated 3 matches for "label_entry_113".
2015 Mar 17
2
[LLVMdev] casting Constant * to value *?
...g 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*_here__);
Thx
Alex
2015 Mar 18
5
[LLVMdev] casting Constant * to value *?
...;>
>> 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*_here__);
>
> If you look at the inheritance tree, you'll see that an llvm::Constant
> is a s...
2015 Mar 07
2
[LLVMdev] cannot understand global c++API code
..._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_ptr_103, false,
label_entry_113);
void_119->setAlignment(4);
---------------------------------------------
comment:
I don't get whats the meaning of the two const_int32 (98 & 99 above) and why
the const_ptr_103 should relate the foo.weight field of the stest struct.
Any hint appreciated!
Alex