[#llvm-Function-Create-06] = xref:llvm.adoc[llvm]::xref:llvm/Function.adoc[Function]::Create :relfileprefix: ../../ :mrdocs: Create a function of type `Ty` with the given linkage (legacy AddrSpace). == Synopsis Declared in `<llvm/IR/Function.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:llvm/Function.adoc[Function]* Create( xref:llvm/FunctionType.adoc[FunctionType]* Ty, xref:llvm/GlobalValue/LinkageTypes.adoc[LinkageTypes] Linkage, xref:llvm/Twine.adoc[Twine] const& N = "", xref:llvm/Module.adoc[Module]* M = nullptr); ---- == Return Value The newly created function. == Parameters [cols="1,4"] |=== | Name| Description | *Ty* | The function type. | *Linkage* | The linkage for the new function. | *N* | Optional name for the new function. | *M* | Optional module to insert into, or null. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#