comparison gen/tollvm.h @ 988:2667e3a145be

- Fixed LLVM style CL args for D2. - Moved main() into its own file gen/main.cpp - Fixed basic cross compilation - removed the option for setting OS - added support for llc's mattr, mcpu and mtriple switches - added basic ABI abstraction for return value rewrites, it's not perfect and will probably be completely rewritten once I get to handling parameter rewrites as well. - x86-64 extern(C) abi for cfloat returns now match (llvm-)gcc.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 26 Feb 2009 14:11:49 +0100
parents 03d7c4aac654
children 3d4581761b4c
comparison
equal deleted inserted replaced
987:73ff89728d85 988:2667e3a145be
16 const LLType* DtoTypeNotVoid(Type* t); 16 const LLType* DtoTypeNotVoid(Type* t);
17 17
18 // returns true is the type must be passed by pointer 18 // returns true is the type must be passed by pointer
19 bool DtoIsPassedByRef(Type* type); 19 bool DtoIsPassedByRef(Type* type);
20 20
21 // returns if the type should be returned in a hidden pointer arguement 21 // should argument be zero or sign extended
22 bool DtoIsReturnedInArg(Type* type);
23
24 unsigned DtoShouldExtend(Type* type); 22 unsigned DtoShouldExtend(Type* type);
25 23
26 // tuple helper 24 // tuple helper
27 // takes a arguments list and makes a struct type out of them 25 // takes a arguments list and makes a struct type out of them
28 //const LLType* DtoStructTypeFromArguments(Arguments* arguments); 26 //const LLType* DtoStructTypeFromArguments(Arguments* arguments);