2261 Commits
Author SHA1 Message Date
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
Robert Cohn 7d3156ae5f oneapi 2024.0.0 release (#5867)
* directory structure has changed
* no more releases of icc

Depends on deployment of
https://github.com/compiler-explorer/infra/pull/1188
2023-12-10 14:19:43 -06:00
kevinjeon-g fb0f0a86d9 Add the HandlerConfig type to the global handler config (#5858) 2023-12-10 14:03:34 -06:00
Vicente BoleaandMatt Godbolt 20d2852138 lang: add cmakescript language (#5815)
Fixes #5502 

In this PR I make an early attempt to add the CMakeScript as a language
in compiler-explorer. I will be fantastic having this since CMake is one
of the most used build system. Having an cmake interpreter in the web
would probe truly useful for teams and individuals, it will be a
fantastic way to share snippets of cmakescript and show how they are
executed with different cmake versions.

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-12-04 21:03:50 -06:00
kevinjeon-g 7efe253f5f Add support for Android D8 (8.1.56) (#5756)
Adds D8Compiler, which applies to the Android Java and Android Kotlin
languages. D8Compiler instantiates a JavaCompiler or KotlinCompiler
using the java/kotlin dependencies' paths for D8 in the infra repo.

compiler-finder.ts has been updated to allow for duplicate compiler IDs
for 'android-java' and 'android-kotlin', as it is expected that the
compilers used for these languages is the same.
2023-12-04 19:35:56 -06:00
Matt Godbolt aa786bd0ef Update deps, format, lint, bump workaround version 2023-12-03 17:30:50 -06:00
Jeremy RifkinandMarc Poulhiès 7680595a88 Add GIMPLE (#5817)
This PR adds GIMPLE as a language

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/42d2b423-0d87-4a41-b762-3d8b4e7cedd2)

---------

Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
2023-12-03 11:34:25 -05: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
partouf e129f242b1 Merge branch 'main' of https://github.com/compiler-explorer/compiler-explorer into main 2023-11-30 00:39:10 +01:00
partouf 142691231d fix formatting 2023-11-30 00:38:42 +01:00
Patrick Quist b918a936fb fix ldc llvmir (#5827) 2023-11-30 00:36:54 +01: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
Matt Godbolt 87e4d460df Cache AWS creds at startup and reuse (#5814)
Also errors early if we can't get them at all, and configures retries
and timeouts

Mitigation for #5813
2023-11-27 22:32:04 -06:00
abhishekkaushik22 63b3f6beba Fix #5660 (#5794)
Closes #5660
2023-11-27 22:17:26 -06:00
Ofek c0db47487c Fix #5784 (#5793)
Fix the name of the entry block in an IR control flow graph.
2023-11-27 10:33:03 -05:00
aliaegik 4ad823b080 New C3 compiler added (#5789)
c3c compiler version 0.5 (alpha) added.
2023-11-22 17:47:40 -06:00
Mauro Baladés 7a33cd6e2e Changed exec to exe for snowball (#5788) 2023-11-22 10:51:46 -06:00
Patrick Quist 04efa86241 Changes to support CMake for Windows (#5769) 2023-11-22 03:06:26 +01:00
Mauro Baladés d2f4617d0d Added support for intel and new examples (#5754) 2023-11-21 18:12:05 -06:00
Matt Godbolt a7e6ec61e3 Bump remaining deps (#5781)
And reformat everything.
2023-11-20 22:04:57 -06:00
Ofek e19d6ef24b Fix #5762, along with another cmake warning (#5766) 2023-11-18 17:19:00 +01:00
Mauro Baladés caa8b335ba Fixed CLI args for snowball (#5753) 2023-11-14 17:14:48 -06: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
Steve 6b94b29f55 Disable diffable asm for dotnet 8.0+ by default (#5739)
Since .NET 8.0, the JIT disasm no longer prints encoded bytes of
instructions by default, so we can disable diffable asm by default.
2023-11-13 20:08:43 -06:00
Mauro Baladés 058dc15581 New snowball syntax (#5738)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-11-13 20:08:09 -06:00
Mauro Baladés 0ac5f15d14 Updated snowball to version 8 (#5730) 2023-11-12 14:24:10 -06:00
David Spickett e15619abfe Add llvm-dwarfdump tool for C/C++ languages (#5726)
https://llvm.org/docs/CommandGuide/llvm-dwarfdump.html

This dumps the DWARF debugging information in a human readable form:
```
<source>: file format ELF64-x86-64

.debug_info contents:
0x00000000: Compile Unit: length = 0x00000063 version = 0x0004 abbr_offset = ... 

0x0000000b: DW_TAG_compile_unit
              DW_AT_producer  ("GNU C17 9.4.0 ...)
```

This tool would be useful to have when comparing the debug output of two
compiler versions or compiler targets. For instance I wanted to find out
recently how AArch64 and X86 targets represent TLS variables.

The tool runs on the compiled binary, so is post compilation. If the
binary
has no debug information the tool does not crash, it just tells you that
there is no information.

To fit the other llvm/clang tools, I've just added an "llvm-dwarfdump
(trunk)"
like llvm-mca has done. Added it to c/c++/objc/objc++ (open CL can't
compile
to binary so skipped those). MSVC is excluded because it produces PDB
files
instead.

The tool works for at least ELF and XCOFF files, I haven't been able to
test
any others.
2023-11-12 14:21:52 -06:00
partouf a838ca31e7 fix windows build 2023-11-11 16:48:32 +01:00
Ofek 31bd47909f Fix #4931 and #2218 (#5706) 2023-11-11 13:56:25 +01:00
Patrick Quist 286e83530d Update heaptrack-wrapper.ts 2023-11-10 12:52:29 +01:00
Patrick Quist 455d92916a Execution with heaptrack (#5644) 2023-11-07 23:59:40 +01:00
partouf e4f2bf6b42 update clientstate with filter binaryObject & libraryCode 2023-11-07 18:19:07 +01:00
Phil @ RISC-V Embedded Blog "Five Embeddev fcb8513f7f RISCV64 assembly opcode documentation - update (#5598) 2023-11-07 14:52:43 +01:00
David Spickett 28e607057c LLVM TableGen: Improve docstring for Actions Override and add example (#5711)
A majority of the actions/backends expect to find certain classes and
definitions in the source code. There's no canonical reference for this
so it's a combination of incomplete docs and the actual uses in
llvm-project.

(most of the time I expect people will come from llvm-project to
experiment, rather than the other way around)

I've added an example that uses the Searchable Tables backend.

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-11-07 00:32:24 +01:00
Justin Bogner b23c01e8cc Support the opt pipeline view in dxc for HLSL (#5704) 2023-11-04 20:55:39 +01:00
David Spickett 971889e5d7 LLVM TableGen: Add actions to Overrides menu (#5699) 2023-11-04 20:54:43 +01:00
Ofek bb66fc6a97 Fix #5694 (#5703) 2023-11-04 20:54:24 +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
Ofek 991c58e18c Fix #5672 (#5691)
The existing `returnInstruction` regex failed both `ret` (with no
arguments) and `pop {r4, pc}`. This small fix solves these.
2023-10-31 10:33:59 -04:00
Ofek 2f73f1d26e Fix #5683 (#5685)
The filtering of directive lines (those starting with dot) is already
performed at `parser.filterData`. All that was missing is dropping empty
"functions".
2023-10-30 20:57:42 -05:00
David Spickett 91ec8f09fa LLVM TableGen: Add trunk compiler and default include path (#5652)
Since trunk will be a moving target, I've left the default compiler as
17.01.

The standard include path will allow for examples that include files
like `include "llvm/TableGen/SearchableTable.td"`, without extra
options. This is useful if you want to create a minimal example of the
records that an existing backend expects to see.
2023-10-30 20:44:14 -05:00
Ofek 47a2493c82 Fix #5464 (#5654)
Nothing fancy, just 2 more special cases for multi-line IR instructions.
2023-10-30 20:36:35 -05: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
Steve 2f0b8028c7 Always get version string for dotnet (#5648) 2023-10-30 16:23:54 +01:00
Steve 9daa1a9447 Fix crossgen2 compilation (#5661) 2023-10-30 16:19:04 +01:00
Patrick Quist 7975602953 Dont attempt to demangle (llvm-ir) if we cant (#5666) 2023-10-28 16:32:19 +02:00
Patrick Quist 49252efa92 Execution hotfix (#5659) 2023-10-26 20:46:32 +02:00
Ofek ca7447e185 Fix #5621 (#5637)
I opted to suggest as minor a change as possible, and just special-cased
these `.omp_outlined.` functions (their name can contain an index) in
two places. This is enough to solve the confusing IR/ASM cfg diff, and
have asm separate functions properly.
2023-10-24 15:27:57 -04:00