comparison gen/llvmhelpers.h @ 479:672eb4893b55

Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding.
author Christian Kamm <kamm incasoftware de>
date Tue, 05 Aug 2008 19:28:19 +0200
parents 45a67b6f1310
children aa8c050dfd19
comparison
equal deleted inserted replaced
478:b657298222d9 479:672eb4893b55
8 LLValue* DtoNew(Type* newtype); 8 LLValue* DtoNew(Type* newtype);
9 void DtoDeleteMemory(LLValue* ptr); 9 void DtoDeleteMemory(LLValue* ptr);
10 void DtoDeleteClass(LLValue* inst); 10 void DtoDeleteClass(LLValue* inst);
11 void DtoDeleteInterface(LLValue* inst); 11 void DtoDeleteInterface(LLValue* inst);
12 void DtoDeleteArray(DValue* arr); 12 void DtoDeleteArray(DValue* arr);
13
14 // emit an alloca
15 llvm::AllocaInst* DtoAlloca(const LLType* lltype, const std::string& name = "");
16 llvm::AllocaInst* DtoAlloca(const LLType* lltype, LLValue* arraysize, const std::string& name = "");
13 17
14 // assertion generator 18 // assertion generator
15 void DtoAssert(Loc* loc, DValue* msg); 19 void DtoAssert(Loc* loc, DValue* msg);
16 20
17 // return the LabelStatement from the current function with the given identifier or NULL if not found 21 // return the LabelStatement from the current function with the given identifier or NULL if not found