Mercurial > projects > ldc
annotate .hgignore @ 1418:f5f8c21ce6ef
Make "`aa[key]`" use the same runtime call as "`key in aa`". The runtime calls
these were using were different, but with equivalent definitions.
With `ldc -O3`, the following functions now all compile to the exact same code:
{{{
int[int] y;
void foo(int x) {
if (x in y) {
auto z = x in y;
sink(*z);
}
}
void bar(int x) {
if (x in y) {
sink(y[x]);
}
}
void baz(int x) {
if (auto p = x in y) {
sink(*p);
}
}
}}}
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Mon, 25 May 2009 12:50:40 +0200 |
parents | 8403fec8c34c |
children | f35a9a77d256 |
rev | line source |
---|---|
377
4731f3eed1f0
Add all intermediate files to .hgignore.
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
1 syntax: glob |
4731f3eed1f0
Add all intermediate files to .hgignore.
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
2 *.bc |
977
3efbe9b0dd36
Update .hgignore due to moved(?) idgen/impcnvgen locations.
Frits van Bommel <fvbommel wxs.nl>
parents:
853
diff
changeset
|
3 *.diff |
377
4731f3eed1f0
Add all intermediate files to .hgignore.
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
4 *.o |
783
d268bf419a09
hgignore updates for CMake.
Christian Kamm <kamm incasoftware de>
parents:
762
diff
changeset
|
5 *.obj |
d268bf419a09
hgignore updates for CMake.
Christian Kamm <kamm incasoftware de>
parents:
762
diff
changeset
|
6 *.orig |
977
3efbe9b0dd36
Update .hgignore due to moved(?) idgen/impcnvgen locations.
Frits van Bommel <fvbommel wxs.nl>
parents:
853
diff
changeset
|
7 *.patch |
783
d268bf419a09
hgignore updates for CMake.
Christian Kamm <kamm incasoftware de>
parents:
762
diff
changeset
|
8 *.a |
377
4731f3eed1f0
Add all intermediate files to .hgignore.
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
9 *.s |
579
20c065c46b38
Basic support for runtime in shared library.
Christian Kamm <kamm incasoftware de>
parents:
555
diff
changeset
|
10 *.so |
853
82ad6c0c601c
Add Elrood's patch to output LDC and LLVM source revs.
Christian Kamm <kamm incasoftware de>
parents:
851
diff
changeset
|
11 *.rej |
377
4731f3eed1f0
Add all intermediate files to .hgignore.
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
12 Makefile |
783
d268bf419a09
hgignore updates for CMake.
Christian Kamm <kamm incasoftware de>
parents:
762
diff
changeset
|
13 CMakeFiles |
d268bf419a09
hgignore updates for CMake.
Christian Kamm <kamm incasoftware de>
parents:
762
diff
changeset
|
14 CMakeCache.txt |
d268bf419a09
hgignore updates for CMake.
Christian Kamm <kamm incasoftware de>
parents:
762
diff
changeset
|
15 cmake_install.cmake |
762
d7aae6f09754
Fix up hgignore to not match to much.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
16 .DS_Store |
555
c2d8fca91e09
Add .DS_Store to .hgignore
Christian Kamm <kamm incasoftware de>
parents:
491
diff
changeset
|
17 |
762
d7aae6f09754
Fix up hgignore to not match to much.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
18 syntax: regexp |
985
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
19 ^obj/ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
20 ^tests/dstress/ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
21 ^tests/reference/ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
22 ^tango/ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
23 ^druntime/ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
24 ^import/ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
25 ^bin/ldc2?$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
26 ^bin/ldc2?\.conf$ |
1129
8403fec8c34c
Add dmd-style configuration file for rebuild usage. See #236 and thanks to ccuter for the patch!
Christian Kamm <kamm incasoftware de>
parents:
1113
diff
changeset
|
27 ^bin/ldc2?\.rebuild\.conf$ |
985
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
28 ^idgen\.make$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
29 ^impcnvgen\.make$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
30 ^ldc\.make$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
31 ^revisions\.pl$ |
1064
f0b6549055ab
Make LDC work with LLVM trunk (s/LinkOnceLinkage/LinkOnceOdrLinkage/)
Frits van Bommel <fvbommel wxs.nl>
parents:
985
diff
changeset
|
32 ^gen/revisions\.h$ |
1113
123812e02bc8
Split out LLVM_REV into separate header, to reduce rebuilding when only the LDC
Frits van Bommel <fvbommel wxs.nl>
parents:
1064
diff
changeset
|
33 ^gen/llvm-version\.h$ |
985
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
34 ^dmd2?/idgen$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
35 ^dmd2?/impcnvgen$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
36 ^dmd2?/impcnvtab\.c$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
37 ^dmd2?/id\.c$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
38 ^dmd2?/id\.h$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
39 ^tests/runminitest$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
40 ^tests/findregressions$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
41 ^tests/makewebstatistics$ |
bce024c60adc
Clean up regexes in .hgignore, making it more strict.
Frits van Bommel <fvbommel wxs.nl>
parents:
984
diff
changeset
|
42 ^tests/mini/obj/ |