Mercurial > projects > ldc
comparison gen/runtime.cpp @ 586:192b82878b78
Fixed most regressions from last commit.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 10 Sep 2008 12:33:33 -0700 |
parents | d30c40f1128d |
children | e6bcc4d9e5ff |
comparison
equal
deleted
inserted
replaced
585:fbb1a366cfbc | 586:192b82878b78 |
---|---|
161 const LLType* boolTy = LLType::Int1Ty; | 161 const LLType* boolTy = LLType::Int1Ty; |
162 const LLType* byteTy = LLType::Int8Ty; | 162 const LLType* byteTy = LLType::Int8Ty; |
163 const LLType* shortTy = LLType::Int16Ty; | 163 const LLType* shortTy = LLType::Int16Ty; |
164 const LLType* intTy = LLType::Int32Ty; | 164 const LLType* intTy = LLType::Int32Ty; |
165 const LLType* longTy = LLType::Int64Ty; | 165 const LLType* longTy = LLType::Int64Ty; |
166 const LLType* sizeTy = DtoSize_t(); | |
167 | |
166 const LLType* floatTy = LLType::FloatTy; | 168 const LLType* floatTy = LLType::FloatTy; |
167 const LLType* doubleTy = LLType::DoubleTy; | 169 const LLType* doubleTy = LLType::DoubleTy; |
168 const LLType* realTy; | 170 const LLType* realTy; |
169 if (global.params.cpu == ARCHx86) | 171 if (global.params.cpu == ARCHx86) |
170 realTy = LLType::X86_FP80Ty; | 172 realTy = LLType::X86_FP80Ty; |
171 else | 173 else |
172 realTy = LLType::DoubleTy; | 174 realTy = LLType::DoubleTy; |
173 const LLType* sizeTy = DtoSize_t(); | 175 |
176 const LLType* cfloatTy = llvm::StructType::get(floatTy, floatTy, 0); | |
177 const LLType* cdoubleTy = llvm::StructType::get(doubleTy, doubleTy, 0); | |
178 const LLType* crealTy = llvm::StructType::get(realTy, realTy, 0); | |
179 | |
174 const LLType* voidPtrTy = rt_ptr(byteTy); | 180 const LLType* voidPtrTy = rt_ptr(byteTy); |
175 const LLType* stringTy = rt_array(byteTy); | 181 const LLType* stringTy = rt_array(byteTy); |
176 const LLType* wstringTy = rt_array(shortTy); | 182 const LLType* wstringTy = rt_array(shortTy); |
177 const LLType* dstringTy = rt_array(intTy); | 183 const LLType* dstringTy = rt_array(intTy); |
178 const LLType* objectTy = rt_ptr(ClassDeclaration::object->type->ir.type->get()); | 184 const LLType* objectTy = rt_ptr(ClassDeclaration::object->type->ir.type->get()); |
336 ARRAY_INIT(intTy,"i32") | 342 ARRAY_INIT(intTy,"i32") |
337 ARRAY_INIT(longTy,"i64") | 343 ARRAY_INIT(longTy,"i64") |
338 ARRAY_INIT(floatTy,"float") | 344 ARRAY_INIT(floatTy,"float") |
339 ARRAY_INIT(doubleTy,"double") | 345 ARRAY_INIT(doubleTy,"double") |
340 ARRAY_INIT(realTy,"real") | 346 ARRAY_INIT(realTy,"real") |
347 ARRAY_INIT(cfloatTy,"cfloat") | |
348 ARRAY_INIT(cdoubleTy,"cdouble") | |
349 ARRAY_INIT(crealTy,"creal") | |
341 ARRAY_INIT(voidPtrTy,"pointer") | 350 ARRAY_INIT(voidPtrTy,"pointer") |
342 | 351 |
343 #undef ARRAY_INIT | 352 #undef ARRAY_INIT |
344 | 353 |
345 // array init mem | 354 // array init mem |