Allocate an intermediate variable at the specified point.
Declared in <llvm/Transforms/Utils/CodeExtractor.h>
virtual
Instruction*
allocateVar(
IRBuilder<>::InsertPoint AllocaIP,
Type* VarType,
Twine const& Name = Twine(""),
AddrSpaceCastInst** CastedAlloc = nullptr);
The allocated variable instruction.
| Name | Description |
|---|---|
| AllocaIP | Insertion point for the allocation. |
| VarType | Type of the variable to allocate. |
| Name | Optional name for the allocated value. |
| CastedAlloc | Optional out-parameter set to any addrspace cast of the allocation. |