Commit Graph
36 Commits
Author SHA1 Message Date
Johan Engelen b00511ea10 LDC: use -gline-tables-only instead of -g by default (#2687)
This changes the default LDC compile flag from `-g` to `-gline-tables-only`, such that the LLVM IR output does not contain `call void @llvm.dbg.declare` calls that (I think) most users are not interested in.  The old behavior can be restored by the user by passing `-g` (I think users are much more familiar with the `-g` option than the `-gline-tables-only` option). Line information is preserved so users can still see what IR lines correspond to user code lines.
2021-05-27 20:14:25 +02:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton bac07fea6d Eliminate all dynamic require statements (#2230) 2020-09-25 11:21:30 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Matt Godbolt 3914aee49a Async-i-fy the compiler (#1708)
Async-ify base-compiler

* Adds async to a number of methods
* Breaks 'compile' into a few smaller methods for readability
* Remove a few (seemingly!) unnecessary `Promise.all([x])`
2019-12-31 10:17:25 -06:00
Partouf a554cf832f disable libpath for dmd ldc, add tools to D 2019-08-21 00:45:45 +02:00
Andreas Jonson 3b9e566121 Add LLVM IR view for Rust
closes #497
2019-05-20 08:17:35 +02:00
Matt Godbolt 9410c2a0ab Fix build, formatting issue 2019-03-24 11:43:52 -05:00
Johan Engelen f2652cfcdd Add LLVM IR view for LDC. 2019-03-24 01:57:51 +01:00
RabsRincon 2c71f0d86d Fix LDC AST detection
Closes #1088
2018-09-27 22:52:31 +02:00
Matt Godbolt 9ab527aa9a Handle case where ldc fails dueing AST generation 2018-03-28 03:31:49 -05:00
RabsRincon f502891cde Revert OPT output changes for LDC 2018-03-24 18:55:03 +01:00
RabsRincon 6572d341fe Fix warning => warn 2018-03-24 01:58:20 +01:00
RabsRincon 0601eecc4c Fix tests
I forgot to run the hook installation after a clean reclone...
2018-03-24 01:44:17 +01:00
RabsRincon 8a38293a22 Add some logging for missing .cg file 2018-03-24 01:38:01 +01:00
RabsRincon b8be2645be Don't try to demangle D opt 2018-03-24 01:30:49 +01:00
Johan Engelen 85482c2a2e Add AST output to LDC. 2018-03-20 20:16:14 +01:00
RabsRincon fac8c1c4dd Fix Travis build 2018-03-19 22:05:07 +01:00
Johan Engelen b1782d2189 Enable CFG (Graph Output) for LDC. 2018-03-19 21:36:26 +01:00
RabsRincon 6ef87b5ef9 Fix copyright dates and normalize text 2018-02-27 14:58:21 +01:00
RabsRincon 670afd8921 Move to ESLint
Somewhat compilant!
2018-02-13 14:49:07 +01:00
Partouf 457a6f5346 compiler handler calls initialise() 2018-01-28 00:46:44 +01:00
Partouf 9a76e777a7 remove return initialise, no need for unittestmode 2018-01-28 00:34:05 +01:00
RabsRincon a54faefb4c ES6fy compilers inheritance 2018-01-18 19:43:10 +01:00
RabsRincon b7e32095e9 Add filtering for userOptions
Mitigates #765. Execution support should need this too, as not to
	run the program twice
2018-01-11 15:41:50 +01:00
RabsRincon fc75208dac New year, new date 2018-01-01 16:44:04 +01:00
Matt Godbolt d085bac708 Remove explicit langid, as it's part of the compiler config already 2017-12-22 08:01:33 -06:00
RabsRincon 63ed0e79c5 Change enough stuff as to get it running
Not saying it works, but if you hack few more things, you can start
	to use it. Commiting just in case
2017-12-02 04:01:12 +01:00
jaredwy 573ff1027f Allow options for filters to look at useroptions this allows us to add/remove options per compiler such as for rust where we need to not add the --emit argument if the user has passed us one 2017-09-01 19:46:27 +10:00
jaredwy 69f10bf295 Adding in LDC opt view support 2017-08-31 20:06:55 +10:00
Matt Godbolt aeffa9423b Fix up ldc. Actually test it first *blush*. See #300 2017-03-03 15:15:02 -06:00
David Nadlinger 6d1bc7e960 d/ldc: Enable Intel syntax 2017-03-03 00:19:25 +01:00
Matt Godbolt b6e9a4658b Another year, another copyright update 2017-01-02 10:14:46 -06:00
Matt Godbolt 4839c9f5e6 More fixes 2016-12-19 20:55:32 -06:00
Matt Godbolt 7990e42f7c Refactor individual compilation types into their own files 2016-12-19 18:01:27 -06:00