LLVM API Documentation

llvm::MallocInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::MallocInst:
[legend]
Collaboration diagram for llvm::MallocInst:
[legend]

List of all members.

Public Member Functions

 MallocInst (const Type *Ty, Value *ArraySize=0, const std::string &NameStr="", Instruction *InsertBefore=0)
 MallocInst (const Type *Ty, Value *ArraySize, const std::string &NameStr, BasicBlock *InsertAtEnd)
 MallocInst (const Type *Ty, const std::string &NameStr, Instruction *InsertBefore=0)
 MallocInst (const Type *Ty, const std::string &NameStr, BasicBlock *InsertAtEnd)
 MallocInst (const Type *Ty, Value *ArraySize, unsigned Align, const std::string &NameStr, BasicBlock *InsertAtEnd)
 MallocInst (const Type *Ty, Value *ArraySize, unsigned Align, const std::string &NameStr="", Instruction *InsertBefore=0)
virtual MallocInst * clone () const

Static Public Member Functions

static bool classof (const MallocInst *)
static bool classof (const Instruction *I)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)


Detailed Description

MallocInst - an instruction to allocated memory on the heap

Definition at line 97 of file Instructions.h.


Constructor & Destructor Documentation

llvm::MallocInst::MallocInst ( const Type *  Ty,
Value *  ArraySize = 0,
const std::string &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline, explicit]

Definition at line 100 of file Instructions.h.

llvm::MallocInst::MallocInst ( const Type *  Ty,
Value *  ArraySize,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline]

Definition at line 104 of file Instructions.h.

llvm::MallocInst::MallocInst ( const Type *  Ty,
const std::string &  NameStr,
Instruction *  InsertBefore = 0 
) [inline]

Definition at line 108 of file Instructions.h.

llvm::MallocInst::MallocInst ( const Type *  Ty,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline]

Definition at line 111 of file Instructions.h.

llvm::MallocInst::MallocInst ( const Type *  Ty,
Value *  ArraySize,
unsigned  Align,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline]

Definition at line 114 of file Instructions.h.

llvm::MallocInst::MallocInst ( const Type *  Ty,
Value *  ArraySize,
unsigned  Align,
const std::string &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline]

Definition at line 117 of file Instructions.h.


Member Function Documentation

MallocInst * MallocInst::clone (  )  const [virtual]

clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name

Implements llvm::AllocationInst.

Definition at line 2885 of file Instructions.cpp.

static bool llvm::MallocInst::classof ( const MallocInst *   )  [inline, static]

Definition at line 125 of file Instructions.h.

Referenced by classof().

static bool llvm::MallocInst::classof ( const Instruction *   )  [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::AllocationInst.

Definition at line 126 of file Instructions.h.

References llvm::Instruction::getOpcode(), and Malloc.

static bool llvm::MallocInst::classof ( const Value *  V  )  [inline, static]

Reimplemented from llvm::AllocationInst.

Definition at line 129 of file Instructions.h.

References classof().


The documentation for this class was generated from the following files: