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);
| Name | Description |
|---|---|
| AllocaIP | InsertPoint - A saved insertion point. |
| VarType | The instances of the Type class are immutable: once they are created, they are never changed. Also note that only one instance of a particular type is ever created. Thus seeing if two types are equal is a matter of doing a trivial pointer comparison. To enforce that no two equal instances are created, Type instances can only be created via static factory methods in class Type and in derived classes. Once allocated, Types are never free'd. |
| Name | Twine - A lightweight data structure for efficiently representing the concatenation of temporary values as strings. |
| CastedAlloc | This class represents a conversion between pointers from one address space to another. |