search for: void_119

Displaying 3 results from an estimated 3 matches for "void_119".

2015 Mar 07
2
[LLVMdev] cannot understand global c++API code
...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_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...
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*_here__); Thx Alex
2015 Mar 18
5
[LLVMdev] casting Constant * to value *?
...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__); > > If you...