search for: thecallinst

Displaying 1 result from an estimated 1 matches for "thecallinst".

2015 Mar 10
3
[LLVMdev] Chatty C++API code generation
...td::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_121); float_130->setAlignment(4); CallInst* float_call = CallInst::Create(func__Z4fib3f, float_130, "call", label_entry_121); ------------------------------------------------ To me, this ll cod...