mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Add alloca/malloc ctors that don't take array sizes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e46749cce0
commit
b77780e11e
@ -104,13 +104,20 @@ public:
|
|||||||
MallocInst(const Type *Ty, Value *ArraySize, const std::string &Name,
|
MallocInst(const Type *Ty, Value *ArraySize, const std::string &Name,
|
||||||
BasicBlock *InsertAtEnd)
|
BasicBlock *InsertAtEnd)
|
||||||
: AllocationInst(Ty, ArraySize, Malloc, 0, Name, InsertAtEnd) {}
|
: AllocationInst(Ty, ArraySize, Malloc, 0, Name, InsertAtEnd) {}
|
||||||
|
|
||||||
|
explicit MallocInst(const Type *Ty, const std::string &Name,
|
||||||
|
Instruction *InsertBefore = 0)
|
||||||
|
: AllocationInst(Ty, 0, Malloc, 0, Name, InsertBefore) {}
|
||||||
|
MallocInst(const Type *Ty, const std::string &Name, BasicBlock *InsertAtEnd)
|
||||||
|
: AllocationInst(Ty, 0, Malloc, 0, Name, InsertAtEnd) {}
|
||||||
|
|
||||||
MallocInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
MallocInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
||||||
const std::string &Name, BasicBlock *InsertAtEnd)
|
const std::string &Name, BasicBlock *InsertAtEnd)
|
||||||
: AllocationInst(Ty, ArraySize, Malloc, Align, Name, InsertAtEnd) {}
|
: AllocationInst(Ty, ArraySize, Malloc, Align, Name, InsertAtEnd) {}
|
||||||
explicit MallocInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
MallocInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
||||||
const std::string &Name = "",
|
const std::string &Name = "",
|
||||||
Instruction *InsertBefore = 0)
|
Instruction *InsertBefore = 0)
|
||||||
: AllocationInst(Ty, ArraySize, Malloc, Align, Name, InsertBefore) {}
|
: AllocationInst(Ty, ArraySize, Malloc, Align, Name, InsertBefore) {}
|
||||||
|
|
||||||
virtual MallocInst *clone() const;
|
virtual MallocInst *clone() const;
|
||||||
|
|
||||||
@ -141,13 +148,19 @@ public:
|
|||||||
AllocaInst(const Type *Ty, Value *ArraySize, const std::string &Name,
|
AllocaInst(const Type *Ty, Value *ArraySize, const std::string &Name,
|
||||||
BasicBlock *InsertAtEnd)
|
BasicBlock *InsertAtEnd)
|
||||||
: AllocationInst(Ty, ArraySize, Alloca, 0, Name, InsertAtEnd) {}
|
: AllocationInst(Ty, ArraySize, Alloca, 0, Name, InsertAtEnd) {}
|
||||||
|
|
||||||
|
AllocaInst(const Type *Ty, const std::string &Name,
|
||||||
|
Instruction *InsertBefore = 0)
|
||||||
|
: AllocationInst(Ty, 0, Alloca, 0, Name, InsertBefore) {}
|
||||||
|
AllocaInst(const Type *Ty, const std::string &Name, BasicBlock *InsertAtEnd)
|
||||||
|
: AllocationInst(Ty, 0, Alloca, 0, Name, InsertAtEnd) {}
|
||||||
|
|
||||||
|
AllocaInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
||||||
|
const std::string &Name = "", Instruction *InsertBefore = 0)
|
||||||
|
: AllocationInst(Ty, ArraySize, Alloca, Align, Name, InsertBefore) {}
|
||||||
AllocaInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
AllocaInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
||||||
const std::string &Name, BasicBlock *InsertAtEnd)
|
const std::string &Name, BasicBlock *InsertAtEnd)
|
||||||
: AllocationInst(Ty, ArraySize, Alloca, Align, Name, InsertAtEnd) {}
|
: AllocationInst(Ty, ArraySize, Alloca, Align, Name, InsertAtEnd) {}
|
||||||
explicit AllocaInst(const Type *Ty, Value *ArraySize, unsigned Align,
|
|
||||||
const std::string &Name = "",
|
|
||||||
Instruction *InsertBefore = 0)
|
|
||||||
: AllocationInst(Ty, ArraySize, Alloca, Align, Name, InsertBefore) {}
|
|
||||||
|
|
||||||
virtual AllocaInst *clone() const;
|
virtual AllocaInst *clone() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user