<div class="doc_code">
<pre>
- Constant* c->getOrInsertFunction("mul_add",
- /*ret type*/ IntegerType::get(32),
- /*args*/ IntegerType::get(32),
- IntegerType::get(32),
- IntegerType::get(32));
+ Constant* c = mod->getOrInsertFunction("mul_add",
+ /*ret type*/ IntegerType::get(32),
+ /*args*/ IntegerType::get(32),
+ IntegerType::get(32),
+ IntegerType::get(32),
+ /*varargs terminated with null*/ NULL);
Function* mul_add = cast<Function>(c);
mul_add->setCallingConv(CallingConv::C);
tmp, z, "tmp2");
builder.CreateRet(tmp2);
+
+ return mod;
}
</pre>
</div>