Mercurial > projects > ldc
view gen/arrays.h @ 314:8d98e42ece93 trunk
[svn r335] The basics of exception handling are in place.
Still need to make sure calls are turned into invokes everywhere. (NewExpression for instance)
Still some rough edges and corner cases to figure out.
Needs testing!
author | ChristianK |
---|---|
date | Wed, 02 Jul 2008 22:20:18 +0200 |
parents | 6b62e8cdf970 |
children | 0e6b4d65d3f8 |
line wrap: on
line source
#ifndef LLVMC_GEN_ARRAYS_H #define LLVMC_GEN_ARRAYS_H struct DSliceValue; const llvm::StructType* DtoArrayType(Type* arrayTy); const llvm::StructType* DtoArrayType(const LLType* elemTy); const llvm::ArrayType* DtoStaticArrayType(Type* sarrayTy); LLConstant* DtoConstArrayInitializer(ArrayInitializer* si); LLConstant* DtoConstSlice(LLConstant* dim, LLConstant* ptr); LLConstant* DtoConstStaticArray(const LLType* t, LLConstant* c); void DtoArrayCopySlices(DSliceValue* dst, DSliceValue* src); void DtoArrayCopyToSlice(DSliceValue* dst, DValue* src); void DtoArrayInit(DValue* array, DValue* value); void DtoArrayAssign(LLValue* l, LLValue* r); void DtoSetArray(LLValue* arr, LLValue* dim, LLValue* ptr); void DtoSetArrayToNull(LLValue* v); DSliceValue* DtoNewDynArray(Type* arrayType, DValue* dim, bool defaultInit=true); DSliceValue* DtoNewMulDimDynArray(Type* arrayType, DValue** dims, size_t ndims, bool defaultInit=true); DSliceValue* DtoResizeDynArray(Type* arrayType, DValue* array, DValue* newdim); DSliceValue* DtoCatAssignElement(DValue* arr, Expression* exp); DSliceValue* DtoCatAssignArray(DValue* arr, Expression* exp); DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2); DSliceValue* DtoCatArrayElement(Type* type, Expression* exp1, Expression* exp2); void DtoStaticArrayCopy(LLValue* dst, LLValue* src); LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r); LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r); LLValue* DtoDynArrayIs(TOK op, DValue* l, DValue* r); LLValue* DtoArrayCastLength(LLValue* len, const LLType* elemty, const LLType* newelemty); LLValue* DtoArrayLen(DValue* v); LLValue* DtoArrayPtr(DValue* v); DValue* DtoCastArray(DValue* val, Type* to); #endif // LLVMC_GEN_ARRAYS_H