Mercurial > projects > ldc
annotate dmd/hdrgen.h @ 920:545f54041d91
Implemented proper support for naked asm using llvm module level asm. Still not 100% complete, but already 1000 times better that what we had before. Don's BignumX86 implementation from Tango (when turned into a standalone unittest) seems to fully work with no changes, and great performance :)
Fixed align N; in asm blocks.
Fixed inreg parameter passing on x86 for ref/out params.
Removed support for lazy initialization of function local static variables, I have no idea why I ever implemented this, it's not in the D spec, and DMD doesn't support it :P
Some of the global variable related changes might cause minor regressions, but they should be easily fixable.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Feb 2009 08:54:57 +0100 |
parents | c53b6e3fe49a |
children |
rev | line source |
---|---|
1 | 1 |
2 // Compiler implementation of the D programming language | |
3 // Copyright (c) 1999-2006 by Digital Mars | |
4 // All Rights Reserved | |
5 // initial header generation implementation by Dave Fladebo | |
6 // http://www.digitalmars.com | |
7 // License for redistribution is by either the Artistic License | |
8 // in artistic.txt, or the GNU General Public License in gnu.txt. | |
9 // See the included readme.txt for details. | |
10 | |
11 | |
12 struct HdrGenState | |
13 { | |
14 int hdrgen; // 1 if generating header file | |
15 int ddoc; // 1 if generating Ddoc file | |
16 int console; // 1 if writing to console | |
17 int tpltMember; | |
18 int inCallExp; | |
19 int inPtrExp; | |
20 int inSlcExp; | |
21 int inDotExp; | |
22 int inBinExp; | |
23 int inArrExp; | |
24 int emitInst; | |
25 struct | |
26 { | |
27 int init; | |
28 int decl; | |
29 } FLinit; | |
30 | |
31 HdrGenState() { memset(this, 0, sizeof(HdrGenState)); } | |
32 }; | |
33 | |
34 |