Robert Clipsham
91ddf6140a
More tweaks.
2009-06-01 18:58:21 +01:00
Frits van Bommel
727e8f0dfb
Install ldmd too.
2009-05-19 16:40:37 +02:00
Frits van Bommel
0df1e34eb2
Implement first D-specific optimization pass: -simplify-drtcalls.
...
It uses the machinery of the standard -simplify-libcalls pass, but optimizes
calls to the D runtime instead of calls to C libraries.
At the moment, these optimizations are implemented by this pass:
- Avoid the runtime call for `arr.length = newlen` if it can determine that
the new length isn't longer than the old one.
- Ditto for `cast(T[]) arr` if it will clearly always succeed.
(e.g. if the length of the original array is zero, or if the old element
size is a multiple of the new element size)
2009-04-28 21:58:06 +02:00
Kelly Wilson
5c4455a394
Change needed for mingw
2009-04-22 14:40:56 -06:00
Tomas Lindquist Olsen
57bf95cb42
Moved some DMDFE files into a seperate dmd/root subdir to closer match the DMD file structure since 1.041.
2009-04-03 17:02:52 +02:00
Tomas Lindquist Olsen
187e3c926e
Fixed error when pkg-config couldn't find libconfig, allows user to set flags manually.
2009-03-24 18:22:29 +01:00
Christian Kamm
490549e65c
Add dmd-style configuration file for rebuild usage. See #236 and thanks to ccuter for the patch!
2009-03-21 09:47:48 +01:00
Frits van Bommel
ad46ec8bd0
Split out LLVM_REV into separate header, to reduce rebuilding when only the LDC
...
revision has changed.
2009-03-13 16:18:43 +01:00
Frits van Bommel
3fe4cfb0fa
Unquote ${LIBCONFIG_LDFLAGS} in target_link_libraries().
...
Without this change, LDC fails to link for me.
2009-03-12 23:30:58 +01:00
Tomas Lindquist Olsen
269e37dc88
- Fixed building tango-user-ldc on x86-32.
...
- Added CMake option for extra LLVM components to be linked in.
2009-03-12 22:30:30 +01:00
Tomas Lindquist Olsen
8b751cce0e
- Updated to DMD frontend 1.041.
...
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
2009-03-12 20:37:27 +01:00
Frits van Bommel
a2bb3ce6a2
Make sure revisions.pl always runs so revisions.h doesn't get out of date.
2009-03-09 16:25:45 +01:00
Christian Kamm
c5c0a01044
Fix out of source build by adding the build dir to the include path.
2009-03-08 17:57:34 +01:00
Frits van Bommel
958ad381db
Fix to make sure to create gen/ in build dir and unbreak build with older perl
2009-03-08 16:37:55 +01:00
Frits van Bommel
622a93a810
Make LDC work with LLVM trunk (s/LinkOnceLinkage/LinkOnceOdrLinkage/)
...
Also moved the #defines for linkage types into a separate header instead of
mars.h so we can #include revisions.h without having to rebuild the entire
frontend every time we update.
(I'm using revisions.h to get the LLVM revision for use in preprocessor
conditionals. It should work with LLVM release 2.5, old trunk and new trunk)
2009-03-08 16:13:10 +01:00
Christian Kamm
ed9591d81f
Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the
...
same LDC call.
2009-03-07 14:25:30 +01:00
Christian Kamm
9433028acd
Remove unused defines: X86_REVERSE_PARAMS, X86_PASS_IN_EAX
2009-03-03 17:38:08 +01:00
Tomas Lindquist Olsen
a71b028a0f
Implemented basic -m32 and -m64 options.
2009-03-01 22:27:03 +01:00
Frits van Bommel
bfacf4477c
Add explicit paths to revisions.* to unbreak out-of-source build.
2009-02-19 00:50:35 +01:00
Christian Kamm
8330703b4d
GC defines and linkage changes.
2009-01-08 18:20:02 +01:00
Christian Kamm
dff06d0f15
Add Elrood's patch to output LDC and LLVM source revs.
2008-12-14 16:51:36 +01:00
elrood
0085c9409c
.. and fixed the install target (hopefully)
2008-12-05 22:01:50 +01:00
elrood
5321c34637
added install target and possibility to pre- and suffix ldc's executable name to cmake scripts
2008-12-04 22:09:24 +01:00
Tomas Lindquist Olsen
879bed7df6
Added CMake option to disable generation of ClassInfo.offTi arrays, defaults to OFF.
2008-12-02 01:44:17 +01:00
Christian Kamm
375b6cd888
Apply Elrood's CMake changes from #124 . Thanks a lot!
2008-11-24 18:17:58 +01:00
Tomas Lindquist Olsen
c4c1c1d72e
Added initial D2 support, D2 frontend and changes to codegen to make things compile.
2008-11-11 01:38:48 +01:00
Christian Kamm
c0bf614e31
Switch to Elrood's rewritten CMakeLists.txt.
2008-11-05 16:53:03 +01:00
Christian Kamm
9688b4c9a7
Improve CMake build file.
2008-11-03 12:25:25 +01:00
Christian Kamm
9e370d7612
Add basic CMake build file.
2008-11-02 21:47:31 +01:00