comparison gen/arrays.h @ 424:c8d98ccad0cc

Error if static array is cast to an array such that oldarraysize % newelemsize != 0.
author Christian Kamm <kamm incasoftware de>
date Tue, 29 Jul 2008 12:32:01 +0200
parents 0e6b4d65d3f8
children 76078c8ab5b9
comparison
equal deleted inserted replaced
423:3424f0fab7a9 424:c8d98ccad0cc
28 DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2); 28 DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2);
29 DSliceValue* DtoCatArrayElement(Type* type, Expression* exp1, Expression* exp2); 29 DSliceValue* DtoCatArrayElement(Type* type, Expression* exp1, Expression* exp2);
30 30
31 void DtoStaticArrayCopy(LLValue* dst, LLValue* src); 31 void DtoStaticArrayCopy(LLValue* dst, LLValue* src);
32 32
33 LLValue* DtoArrayEquals(TOK op, DValue* l, DValue* r); 33 LLValue* DtoArrayEquals(Loc& loc, TOK op, DValue* l, DValue* r);
34 LLValue* DtoArrayCompare(TOK op, DValue* l, DValue* r); 34 LLValue* DtoArrayCompare(Loc& loc, TOK op, DValue* l, DValue* r);
35 35
36 LLValue* DtoDynArrayIs(TOK op, DValue* l, DValue* r); 36 LLValue* DtoDynArrayIs(TOK op, DValue* l, DValue* r);
37 37
38 LLValue* DtoArrayCastLength(LLValue* len, const LLType* elemty, const LLType* newelemty); 38 LLValue* DtoArrayCastLength(LLValue* len, const LLType* elemty, const LLType* newelemty);
39 39
40 LLValue* DtoArrayLen(DValue* v); 40 LLValue* DtoArrayLen(DValue* v);
41 LLValue* DtoArrayPtr(DValue* v); 41 LLValue* DtoArrayPtr(DValue* v);
42 42
43 DValue* DtoCastArray(DValue* val, Type* to); 43 DValue* DtoCastArray(Loc& loc, DValue* val, Type* to);
44 44
45 #endif // LLVMC_GEN_ARRAYS_H 45 #endif // LLVMC_GEN_ARRAYS_H