Commit Graph
151 Commits
Author SHA1 Message Date
Ofek ca28aec7a8 Remove unused events filtersChange, requestFilters, some added types to BaseCompiler.compile (#6486)
Just some minor housekeeping.
2024-05-29 18:10:21 +02:00
Patrick Quist d2c7a5222e Local/Remote Execution environment (#6413) 2024-05-26 22:09:01 +02:00
Ofek 42533d8dbb Stop duplicating hasXXoutput + XXoutput (#6476)
When you need to check if `XXoutput` exists, check it directly.
+some TSification in CompilationResult
2024-05-14 20:11:09 +03:00
Ofek 402c5ec890 Mark the go compiler gc as not supporting cfg (#6470)
Following #6439: mark the go compiler `gc` as not supporting cfg.
Also, don't pass argument to `isCfgCompiler` - the base-compiler
implementation uses `this.compiler.instructionSet` anyway.
2024-05-12 02:16:51 +03:00
Ofek c7ce3ca071 Fix exception in case of empty IR (#6450)
This fixes #6449 - I carelessly ignored the case of empty IR output.
Repro link for verification: https://godbolt.org/z/4d46dahqq
2024-05-07 20:49:27 +03:00
Ofek 0fc6a922b1 Fix #6437: Don't try and generate cfg for incomplete (truncated) IR (#6444) 2024-05-06 22:08:31 +03:00
partouf 1390c26330 revert #6297 - fixes #6376 2024-04-22 19:28:25 +02:00
Patrick Quist adb8bd774a Dynamic instruction set for documentation (#6173) 2024-04-22 18:40:56 +02:00
Patrick Quist b8325cf0c6 eslint root setting and fixes (#6307) 2024-04-16 21:26:53 +02:00
Ofek 1c3b775577 Add simple filters for llvm optimiziation-remarks (#6354)
![optremfilters](https://github.com/compiler-explorer/compiler-explorer/assets/73080/1116998b-de9e-400c-a045-412fd59eb8e3)
2024-04-15 01:05:58 +03:00
Mosè GiordanoandValentin Churavy 8ad1419368 [julia] Add LLVM IrView (#6285)
Julia is based on LLVM like other toolchains supported by Compiler
Explorer, and it can emit LLVM IR, but at the moment we only expose it
via the flag `--format=llvm` to the compiler wrapper.

With this PR we add a proper LLVM IR viewer, like the other LLVM-based
toolchains. We add a new option for the wrapper to emit the entire LLVM
module, which has the benefit of being parsable by Compiler Explorer, so
that we can automatically filter out debug information and metadata
annotations.

Preview (from
https://github.com/compiler-explorer/compiler-explorer/issues/4597#issuecomment-2018956112):


![image](https://github.com/compiler-explorer/compiler-explorer/assets/765740/7c2f80b4-9c92-4761-9f6e-393d0ad26935)

We removed the custom `<[source code line] [number of output lines]
[function name] [method types]>` line in the output of the `code_*`
functions, together with the custom ASM parsing, because they invalidate
the output (it isn't valid ASM nor LLVM), and create more problems than
they solve.

This PR was prepared in collaboration with @vchuravy.

This should eventually address #4597, once inlined LLVM functions are
handled by the IR parser in Compiler Explorer, I think @vchuravy can
comment more on that issue.

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
2024-04-01 22:08:35 -05:00
narpfel f5efd390fa Optionally show disambiguating hashes in demangled Rust identifiers (#6265)
Demangled Rust identifiers under the `legacy` name mangling scheme rely
on a hash to disambiguate items with the same name, such as different
monomorphisations of the same function or different closures’
`call_once` methods.

In the `v0` mangling scheme, this is no longer a problem. However,
configuring the demangler to show hashes in `legacy` names will include
crate-id hashes in `v0` names, which are [mostly
unneeded](https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html#appendix-a---suggested-demangling).

This PR introduces a new checkbox *Options...* → *Verbose demangling*
that lets the user select if they want to include disambiguating hashes
in demangled identifiers.

This checkbox is only shown for compilers that support verbose
demangling, and deactivated when the *Demangle identifiers* checkbox is
unchecked.

Resolves #1754.
Resolves #6255.
2024-04-01 21:58:42 -05:00
partouf 2f0fbf85bc fix filter 2024-03-29 15:40:31 +01:00
Ofek 3b19d5cd94 Filter linker switches to avoid bogus warnings (#6297)
Fixes #6271
2024-03-28 21:54:54 +02:00
Ofek 8dd09d1c1f Replace the deprecated substr with substring (#6236)
Just some minor homekeeping.
2024-03-10 10:04:29 +02:00
Patrick Quist 2f0ff5aeb1 fix llvm-cov (#6211) 2024-03-02 14:08:39 +01:00
Marc Poulhiès 5ebd04f90e Change getCompilerResultLanguageId prototype (#6148) 2024-02-24 19:21:23 +01:00
Patrick Quist 9c5a6d3d95 Clang time trace support in execution pane (#6139) 2024-02-14 19:09:31 +01:00
partouf b699a65984 fix 2024-02-10 13:40:10 +01:00
partouf 967e1dcf7d fix inputfilename to be correct for postprocess and move cleanup to the end 2024-02-10 13:36:19 +01:00
Patrick Quist 4605ebfb4b Add Fortran library support (#5533) 2024-02-09 23:31:05 +01:00
Matt Godbolt 613d7f688a Unify the way tmp dir is used (#6052)
Instead of having several globals, set via environment variables,
explicitly set the "correct" env var if passed `--tmpDir` and then
consistently use it in the rest of the program.

See @apmorton's comments in #1707
2024-01-28 18:50:46 -06:00
Jeremy Rifkin e5fb8e1afc Improve typings for the now-global HandlerConfig (#6027)
This PR populates types in the HandlerConfig
2024-01-21 10:29:58 -06:00
Jeremy eddcea8171 Fix issue with llvm language detection for cfg generation, fixes #6014 2024-01-16 20:09:11 -06:00
Ofek 696cc79133 Fix #5630: filter out --emit mir=.. in RustCompiler.buildExecutable (#5991)
With a small added ts'ification in base-compiler.
2024-01-13 22:34:39 +02:00
Ofek 21fe5523c0 Since ES6 there's no reason to use underscores map and filter (#5989)
Mindless replacements of the form 
`_.filter(options, option =>...`  --> `options.filter(option =>...`.

One not *entirely* mindless replacement at the bottom of
compiler-dropin-tool.ts :
```
-        return _.filter(pathFilteredFlags) as string[];
+        return pathFilteredFlags.filter(Boolean) as string[];
```
6 files can now stop importing underscore.
2024-01-13 18:35:11 +02:00
Ofek ec8f8e5d50 Fix #5411: generate opt-pipeline for failed comilations too (#5938) 2024-01-05 16:36:45 +02:00
J. Ryan Stinnett e7b22b41be Limit exec streams to max string length (#5898)
Some operations set `exec`'s `maxOutput` to a value larger than the max
string length. This change ensures we always cap output to the engine's
string limit (currently 512 MB in recent Node versions).

This also tweaks handling when reaching the string limit to ensure
adding the "truncated" message itself does not send us beyond the limit.
2023-12-23 17:54:46 -06:00
Ofek cc1e0ea283 Fix #5854: just filter out -E when generating IR (#5885) 2023-12-16 14:28:42 +02:00
J. Ryan StinnettandMatt Godbolt f0e1d5d264 Add Racket optimisation pipeline (#5836)
This adds a Racket optimisation pipeline view by reusing the existing
LLVM-focused optimisation pipeline UI. A Racket-specific pass parser
translates its output into passes for the UI to present.

This new Racket optimisation pipeline view is currently only enabled for
Racket nightly, as it depends on [recent
changes](https://github.com/racket/racket/pull/4842) to Racket's
compiler output to function.

This also extends the opt pipeline view to allow customising the
function selector label as well as the options and filters for each
compiler where needed.


![image](https://github.com/compiler-explorer/compiler-explorer/assets/279572/f540b41e-fd55-4375-bb2d-a0bb977530b3)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-12-11 19:35:45 -06:00
J. Ryan Stinnett c3e1b04c31 Rename opt pipeline without LLVM prefix (#5828)
This prepares for future work that will reuse the opt pipeline view
outside of the LLVM ecosystem by renaming related components to remove
the LLVM prefix.

The pass dumper keep its LLVM prefix, as it is assumed this part is
likely to be customised for each compiler ecosystem.

The historical component name has been preserved in the component list
as an alias to keep old links working.
2023-12-03 11:33:42 -05:00
Jeremy Rifkin b134451b7d Add gimple front-end syntax option for gcc tree/rtl viewer (#5816)
This PR adds an option to the gcc tree/rtl dump viewer to dump syntax
that the gimple frontend can accept


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/4a5ff503-9420-4fc3-ba6f-6b1dc196e938)
2023-11-29 09:42:38 -05:00
Patrick Quist 04efa86241 Changes to support CMake for Windows (#5769) 2023-11-22 03:06:26 +01:00
Ofek e19d6ef24b Fix #5762, along with another cmake warning (#5766) 2023-11-18 17:19:00 +01:00
Ofek a280d8d305 Fix #4654 (#5749)
Apparently AST for ldc is an abuse of terminology, as it doesn't
produces anything resembling a syntax tree:
https://github.com/dlang/dmd/pull/6556#issuecomment-282353400 . It is
potentially meaningful only to ldc developers. Anyway the `generateAST`
result type is fixed, along with some other small stuff around.
2023-11-13 20:11:16 -06:00
Patrick Quist 455d92916a Execution with heaptrack (#5644) 2023-11-07 23:59:40 +01:00
Ofek e7d266ac9c Fix #5255 (#5700) 2023-11-04 20:01:43 +01:00
Patrick Quist 4a8fdbf810 store exec+sandbox types (#5696)
prep for #5533 and #5644
2023-11-01 00:06:47 +01:00
Matt Godbolt d1fb26d896 Capture more information in sentry, per @jeremy-rifkin suggestion (#5693) 2023-10-31 11:05:51 -04:00
Matt Godbolt edeca232c5 Handle errors in the LLVM transform (#5690)
Previously an error in e.g. YAML parsing would take down the whole
process.

Part of #5686 but doesn't fix the underlying issue.
2023-10-30 19:40:45 -05:00
partouf c6c2404b94 more types 2023-10-24 17:35:50 +02:00
partouf 5ef2fb1025 add types 2023-10-24 17:30:36 +02:00
partouf b93fdb3ca3 fix types 2023-10-24 17:24:07 +02:00
Matt Godbolt 37ce1f56ed Fix test 2023-10-19 08:09:30 -05:00
Matt Godbolt 18b0b8edd3 Thank you @partouf...I spend too much time doing python these days... 2023-10-19 07:52:02 -05:00
Matt GodboltandNick DeMarco 458fa247f8 Hylo fixes; specify PATH, and fix name (#5625)
-  Add a general extraPaths for compilers and use it to let Hylo find clang++

Co-authored-by: Nick DeMarco <nickpdemarco@gmail.com>
2023-10-18 21:59:42 -05:00
partouf 4ee4f7646c make rpath flag easier overridable in compiler class 2023-09-24 00:40:10 +02:00
partouf effea73b0a include languageid in result 2023-09-04 14:00:37 +02:00
Matt Godbolt 6c476bbccc Support abandoned queued compilations (#5278)
After some time we know either the client or CloudFront will give up on
pending compilations. As such, if we continue to process compilations
after the client's timed out we're just clogging up the compilation
queue with pointless work.

As such, this change now supports the notion of "stale" work which will
be abandoned once it's made it to the front of the queue. Only compiles
coming from the user will be abandoned, so discovery and health checks
are unaffected.

Hopefully this will mitigate the number of nodes marked unhealthy due to
being overloaded: work they were doing was "pointless" anyway, and them
being killed by going unhealthy is equivalent to abandoning all the work
in flight anyway, but this means there's a fighting chance the node will
recover quickly enough to return a "healthy" status.
2023-08-07 22:17:12 -05:00
Patrick Quist b0b98a5739 Fix execution with library selection in different languages (#5325)
Should fix issues when libraries are selected in other languages than
c/c++/circle/rust

Example that gave an error https://godbolt.org/z/hTe6EoGez
2023-08-07 19:44:57 -05:00