Displaying 1 result from an estimated 1 matches for "const_int32_103".
Did you mean:
const_int32_104
2015 Mar 10
3
[LLVMdev] Chatty C++API code generation
...to me seems to be too chatty in the sense that
the foo.weight's data is copied to a local variable using a load
instruction.
The call instruction is then using the local copy.
--- API code ---------------
...
std::vector<Constant*> const_ptr_113_indices;
const_ptr_113_indices.push_back(const_int32_103);
const_ptr_113_indices.push_back(const_int32_104);
Constant* const_ptr_113 = ConstantExpr::getGetElementPtr(gvar_struct_adam,
const_ptr_113_indices);
//here we have const_ptr_113; why not use it in theCallInst?
LoadInst* float_130 = new LoadInst(const_ptr_113, "", false,
label_entry...