[LLVMdev] Memory allocation (or deallocation) model?
jbrandmeyer at earthlink.net
Mon Dec 3 18:59:45 PST 2007
On Mon, 2007-12-03 at 18:56 -0800, Chris Lattner wrote:
> Other IR objects (like instructions) have very simple ownership. An
> instruction is owned by its basic block, a bb is owned by the function, a
> function is owned by thet module.
If an instruction is initially allocated with its Instruction
*insertAtEnd parameter defaulted to null, and then later appended to a
BasicBlock, will the BasicBlock take ownership of the Instruction?
More information about the llvm-dev