Commit graph

3545 commits

Author SHA1 Message Date
Tomas Lindquist Olsen
3b4c818082 [svn r98] Added support for std.c.stdlib.alloca via pragma(LLVM_internal, "alloca").
Added support for array .sort and .reverse properties.
Fixed some bugs with pointer arithmetic.
Disabled some DMD AST optimizations that was messing things up, destroying valuable information.
Added a KDevelop project file, this is what I use for coding LLVMDC now :)
Other minor stuff.
2007-11-12 06:32:46 +01:00
Tomas Lindquist Olsen
b32e04cacd [svn r97] Fixed bug with main(string[] args) on 32 bit systems. 64bit worked. 2007-11-08 19:21:05 +01:00
Tomas Lindquist Olsen
454f50ccbc [svn r96] Updated to DMD 1.023.
Regular bugfixes.
2007-11-08 19:13:28 +01:00
Tomas Lindquist Olsen
ea18cd8e75 [svn r95] added support for mains like:
T main(string[] args)
fixed a bug with slicing a pointer that is an argument with no storage
2007-11-07 04:52:56 +01:00
Tomas Lindquist Olsen
4a5659c04e [svn r94] started on complex support
calling final class methods was being treated as a virtual call failing an assertion.
2007-11-07 03:36:07 +01:00
Tomas Lindquist Olsen
e7a17c2744 [svn r93] a few fixes, some phobos additions.
some very rough groundwork for moduleinfo and classinfo support
2007-11-07 02:45:47 +01:00
Tomas Lindquist Olsen
34d9e12020 [svn r92] Fixed support for statically initialized unions. lots of bugfixes as cleanups too. 2007-11-06 10:03:14 +01:00
Tomas Lindquist Olsen
3b2cb94f6e [svn r91] fixed some minor mistakes 2007-11-03 14:48:33 +01:00
Tomas Lindquist Olsen
48492229ec [svn r90] Major updates to the gen directory. Redesigned the 'elem' struct. Much more... !!!
Lots of bugfixes.
Added support for special foreach on strings.
Added std.array, std.utf, std.ctype and std.uni to phobos.
Changed all the .c files in the gen dir to .cpp (it *is* C++ after all)
2007-11-03 14:44:58 +01:00
Tomas Lindquist Olsen
1b867a0588 [svn r89] Fixed a bunch of problems with template instance across multiple modules.
Fixed initialization of function local static variables, with a non const initializer (now happens on first call using a global to make sure it only happens once.)
2007-11-02 06:32:32 +01:00
Tomas Lindquist Olsen
3e3579da22 [svn r88] fixed global given initializers when they don't deserve 2007-11-02 02:27:41 +01:00
Tomas Lindquist Olsen
6cdf99f01e [svn r87] Fixed some memory bloat when passing string literals as char[] params (double temporary before) 2007-11-02 02:03:13 +01:00
Tomas Lindquist Olsen
d58ce84169 [svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
Initial support for debug information. Very limited, but MUCH better than nothing :)
2007-11-02 01:17:26 +01:00
Tomas Lindquist Olsen
6bb534fb2a [svn r85] Fixed: if a return statement appeared in the try block of a nested try-finally, only the inner-most finally block would be executed.
Changed: Renamed all the LLVM_Dto... helper function to just Dto...
2007-11-01 17:27:18 +01:00
Tomas Lindquist Olsen
947bba2b48 [svn r84] Fixed: Returning from a void function from inside the try of a try-finally block was broken. 2007-10-31 22:35:39 +01:00
Tomas Lindquist Olsen
44d2104eec [svn r83] Fixed: Returning a struct from within the try block of a try-finally was broken. 2007-10-31 22:20:19 +01:00
Tomas Lindquist Olsen
d8f021d63f [svn r82] Fixed: Fall-through switch cases were broken. 2007-10-31 20:50:21 +01:00
Tomas Lindquist Olsen
0979d55d26 [svn r81] Fixed: Union support was very buggy. Should be fairly solid now. 2007-10-31 09:34:18 +01:00
Tomas Lindquist Olsen
fcdb174faf [svn r80] Fixed union literals 2007-10-31 07:24:02 +01:00
Tomas Lindquist Olsen
0e0d7eca12 [svn r79] Updated the rebuild profile to link bitcode libraries with -lib 2007-10-31 04:55:48 +01:00
Tomas Lindquist Olsen
21e50af2c0 [svn r78] Removed the useless pragmas 2007-10-31 04:05:38 +01:00
Tomas Lindquist Olsen
9804fe0fa3 [svn r77] Fixed foreach on slice.
Fixed some nested function problems when accessing outer function parameters.
Major changes to handling of structs.
Initial support for unions.
Probably more...
2007-10-31 03:11:32 +01:00
Tomas Lindquist Olsen
4230f2ef11 [svn r76] Fixed: TypeInfo for structs.
Fixed: PostExp was unable to allocate storage for parameters.
Fixed: Many types of functions and delegates were broken.
Misc cleanups.
2007-10-29 03:28:12 +01:00
Tomas Lindquist Olsen
848ecbed0d [svn r75] Fixed the init member in custom enum typeinfo. I don't see any way this could actually need emmision though :/ 2007-10-28 19:48:57 +01:00
Tomas Lindquist Olsen
449db38d75 [svn r74] Fixed passing types with different alignment to D-style variadic functions.
Fixed casting integer to pointer.
2007-10-28 19:33:50 +01:00
Tomas Lindquist Olsen
58b6fc972a [svn r73] Identity expression for dynamic array and null was broken. 2007-10-28 04:23:38 +01:00
Tomas Lindquist Olsen
b5433b6054 [svn r72] Calling a nested function that is not a delegate was not working. 2007-10-28 03:14:29 +01:00
Tomas Lindquist Olsen
feea94424c [svn r71] Fixed accessing parent function arguments from inside nested delegates.
Some cleanups in VarExp::toElem.
2007-10-28 02:46:06 +02:00
Tomas Lindquist Olsen
a5d3910b57 [svn r70] Fixed bug where correct calling convention was not set on calling aggregate methods 2007-10-28 02:03:42 +02:00
Tomas Lindquist Olsen
49deafe227 [svn r69] forgot std.stdarg 2007-10-26 15:14:51 +02:00
Tomas Lindquist Olsen
498c442bc1 [svn r68] Added support for multi-dimensional static arrays.
Several bugfixes to array support.
2007-10-25 12:09:13 +02:00
Tomas Lindquist Olsen
1dcad1c62d [svn r67] Fixed ignore unittests instead of failing to compile 2007-10-25 10:05:21 +02:00
Tomas Lindquist Olsen
1f13dbd766 [svn r66] Added support for imaginary floating point types 2007-10-25 09:48:36 +02:00
Tomas Lindquist Olsen
8e49b3c389 [svn r65] Added typeinfo implementations for float[], double[] and real[] 2007-10-25 09:26:17 +02:00
Tomas Lindquist Olsen
bed0a36018 [svn r64] ... 2007-10-25 09:16:05 +02:00
Tomas Lindquist Olsen
82c6cd6439 [svn r63] Forgot lphobos/typeinfo2 2007-10-25 09:04:00 +02:00
Tomas Lindquist Olsen
be330878c2 [svn r62] Added support for TypeInfo _Array, _Function, _Pointer, _Delegate, _Enum
Added initial support for CatExp aka 'a ~ b'
Fixed global constant static arrays initialized with string literals
Fixed casting any dynamic array to void*
Fixed new expression with temporary storage
Fixed alias declarations in function scope
Fixed relational comparisons of pointers
2007-10-25 09:02:55 +02:00
Tomas Lindquist Olsen
5478de7147 [svn r61] Added support for D-style variadic functions :) 2007-10-25 02:39:53 +02:00
Tomas Lindquist Olsen
e92b027299 [svn r60] fixed vararg1 test 2007-10-24 22:26:37 +02:00
Tomas Lindquist Olsen
152e229329 [svn r59] Added support for C-style variadic functions. Currently only works on x86, x86-64 va_arg is broken in LLVM 2.1. PPC and PPC64 unknown.
Updates to runtime. Rebuild!
2007-10-24 22:18:06 +02:00
Tomas Lindquist Olsen
039bc0880d [svn r58] Fixed cond expression resulting in a non-basic type.
Fixed identity expression for dynamic arrays.
Revamped the system to keep track of lvalues and rvalues and their relations.
Typedef declaration now generate the custom typeinfo.
Other bugfixes.
2007-10-24 01:37:34 +02:00
Tomas Lindquist Olsen
b72a4fa645 [svn r57] Added most basic TypeInfo (rebuild lphobos).
Fixed some SymOffExp bugs.
Added another typeinfo test case.
2007-10-23 07:16:02 +02:00
Tomas Lindquist Olsen
5fee3fc8b7 [svn r56] Initial support for TypeInfo.
Enums not work.
Several other bugfixes.
2007-10-23 05:55:12 +02:00
Tomas Lindquist Olsen
2c99df8deb [svn r55] Foreach was always generating code as if the value variable was 'ref'
Other not-so-major improvements
2007-10-22 17:25:44 +02:00
Tomas Lindquist Olsen
a9189bd3a9 [svn r54] Added support for nested delegates referencing parent's stack variables.
Replaced tester.sh with a version written in D.
A few bugfixes.
2007-10-22 15:40:56 +02:00
Tomas Lindquist Olsen
f16a0c35b5 [svn r53] added basic support for delegate literals. if you access outer variables you get a broken module 2007-10-19 17:43:46 +02:00
Tomas Lindquist Olsen
6445254a7b [svn r52] fixed static arrays in struct literals 2007-10-19 17:15:30 +02:00
Tomas Lindquist Olsen
cca32e4efd [svn r51] dynamic array members in struct literals was broken 2007-10-19 17:00:35 +02:00
Tomas Lindquist Olsen
114f4bd0a5 [svn r50] 2007-10-19 16:37:34 +02:00
Tomas Lindquist Olsen
0248873a79 [svn r49] foreach on dynamic arrays 2007-10-19 16:37:15 +02:00