Emit a call to the malloc function.
Declared in <llvm/Transforms/Utils/BuildLibCalls.h>
Value*
emitMalloc(
Value* Num,
IRBuilderBase& B,
DataLayout const& DL,
TargetLibraryInfo const* TLI);
The malloc call, or null if unavailable.
| Name | Description |
|---|---|
| Num | Number of bytes to allocate. |
| B | IR builder used to create the call. |
| DL | Data layout used for size typing. |
| TLI | Target library info describing available libcalls. |