2799 Commits
Author SHA1 Message Date
aneshlya 8debe7e701 Add ISPC v1.23.0 (#6152)
ISPC v1.23.0 has been released. Related change:
https://github.com/compiler-explorer/infra/pull/1238
2024-02-18 15:38:44 -06:00
Marc Auberer aae6c49fd7 [Spice] Add version 0.19.3 (#6156)
Add Spice version 0.19.3

Infra PR: https://github.com/compiler-explorer/infra/pull/1240
2024-02-18 15:37:44 -06:00
Chris B cc8a893b08 Add DXC 2212, 2306 and 2308 releases (#5785) 2024-02-16 18:57:11 +01:00
gnikit 20439bbcf3 feat: adds Fortran stdlib (#6116) 2024-02-16 17:19:10 +01:00
Alfredo Correa 1099c57854 Add simdutf to libscn (#6149) 2024-02-15 23:21:57 +01:00
Patrick Quist d92b473cbd Give access to alternatives (#6141) 2024-02-14 21:07:46 +01:00
Patrick Quist d07b67945d Update vb.amazon.properties 2024-02-14 16:21:20 +01:00
Patrick Quist e89d6cb805 Update fsharp.amazon.properties 2024-02-14 16:20:57 +01:00
Patrick Quist 20f99e1e7f Update csharp.amazon.properties 2024-02-14 16:20:29 +01:00
Patrick Quist 81951dd3b9 Update hook.amazon.properties 2024-02-14 16:19:24 +01:00
Marc Auberer ed99c4a52d [Spice] Make clang and lld available to compiler executable (#6137) 2024-02-13 21:53:51 +01:00
Alfredo Correa bc60289fc5 add scnlib version 2.0.0 (#6121)
add version 2.0.0 of scnlib
2024-02-12 21:55:59 -06:00
Patrick Quist c2d91528d7 fix clang-format formatter name (#6119)
Should fix
https://github.com/compiler-explorer/compiler-explorer/issues/6074

Tested the regular formatting, Preprocessor and clang-format tool. Don't
think this should break anything.
2024-02-12 21:53:43 -06:00
Marc Auberer 54dda76f22 New language: Spice (#6105)
Add support for the Spice programming language.

Spice (`spicelang`) is a simple, AOT compiled, LLVM-based systems
language with focus on practicality and performance.

**Key features of Spice**
- simplicity - see what you get aproach with batteries included
- performance: As Spice uses LLVM as its primary backbone, it competes
with the performance of other LLVM-based compilers
- enhanced safety: Spice implements an enhanced safety mechanism, which
includes builtin heap type with auto-free and more
- cross-compile support: Currently x86_64, AArch64 and wasm32 are
supported cross-compilation targets, but more to come
- Pretty good C and C++ interop

**Links**
- Source code: https://github.com/spicelang/spice
- Website: https://spicelang.com
- Playground (own CE instance): https://play.spicelang.com
- Infra PR: https://github.com/compiler-explorer/infra/pull/1229

**Things this PR addresses**
- General support for Spice
- Three code examples
- Spice mode (Syntax highlighting)
- Opt pipeline support
- LLVM mca and osaca support
2024-02-12 21:50:33 -06:00
Andrea TomasiandMatt Godbolt 4d39fdddb8 View Erlang jitted assembly (#6104)
Hi, this PR adds a way to view the assemply code of Erlang code.

Since OTP 24 inside the Erlang VM there is a jitter that runs while we
load the code.

The standard way to dump the asm code is to pass an option during the
startup. The main issue is that this triggers the dump of all the
modules we are loading (and it is slow).
To avoid this I'm using some instrinsics of OTP 26 but at least we dump
only what we need.

(I'm planning to add it to `infra` and then to awmason

Some references:
-
https://www.erlang.org/blog/otp-26-highlights/#improvements-in-the-erlang-compiler-and-jit
-
https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_bif_info.c#L5255

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2024-02-12 21:49:03 -06:00
Johan Engelen 52b56caebb Add LDC 1.36.0 and make it the default (#6111)
Also update llvm-symbolizer to LLVM 17 (I hope the clang 17 package
contains llvm-symbolizer like before ;-)
2024-02-12 21:46:38 -06:00
Marc Poulhiès f8d9e703e9 Add ppc64(le) nightly compilers (#6068)
Add ppc64 and ppc64le nightly compilers.

fixes https://github.com/compiler-explorer/compiler-explorer/issues/5881

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-02-12 21:29:58 +01:00
Michael Woerister e097590700 Enable the llvm-dwarfdump tool for Rust. (#6127)
This PR enables the llvm-dwarfdump tool for Rust (inspired by
https://github.com/compiler-explorer/compiler-explorer/pull/5726). The
default backend for the Rust compiler is LLVM and being able to inspect
the debuginfo it generates would be really useful.
2024-02-12 14:58:09 +01:00
Patrick Quist 4605ebfb4b Add Fortran library support (#5533) 2024-02-09 23:31:05 +01:00
Patrick Quist 2949181b34 revert demangler 2024-02-09 18:59:48 +01:00
Ofek b59e7a91c4 Implement #4929: replace c++filt with clang-trunk llvm-cxxfilt (#6080)
`c++filt` was taken sometimes from gcc-13.1.0 and sometimes from
gcc-snapshot, I took `llvm-cxxfilt` from just clang-trunk.

This PR is _just for clang C/C++ compilers_. Maybe it's better for some
other (non C/C++) llvm based compilers? Suggestions are welcome.
2024-02-09 18:32:18 +01:00
Marc Poulhiès 6a5e5ba448 fix: clang trunk should use gcc trunk (#6108)
clang trunk for C was using gcc-9, which caused mismatch between
compiler and actual binutils supports:


/opt/compiler-explorer/gcc-9.2.0/lib/gcc/x86_64-linux-gnu/9.2.0/../../../../x86_64-linux-gnu/bin/ld:
 warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported
 GNU_PROPERTY_TYPE (5) type: 0xc0008002

This is not the case in the C++ config where we correctly use nightly
gcc.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-02-09 18:29:48 +01:00
Miguel Ojeda beda606734 Rust 1.76.0 (#6109)
Infra: https://github.com/compiler-explorer/infra/pull/1230.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2024-02-08 15:40:08 +01:00
Andrea Tomasi 1cacc9ce79 Add Elixir language support (#6081)
Hi, I am adding support for the Elixir language
(https://github.com/compiler-explorer/compiler-explorer/issues/3947)
I have done this so far. It is not perfect but at least is something I
can work with.
 
In Elixir you can write several modules in the same file, so I show the
different compile utins as a list.

It works locally but I don't know how to add the Elixir language to
[infra](https://github.com/compiler-explorer/infra/)

Some notes:
- I think Elixir's macro system may be a potential security issue
because I can run code during compilation.
- The decompiled code contains a reference to the file path on the
system machine.


![elixir_compiler](https://github.com/compiler-explorer/compiler-explorer/assets/11353602/59e46c98-646d-4275-9c03-e4097a4977ef)
2024-02-05 20:54:01 -06:00
David Spickett 80e3236243 fortran: Enable running binaries with flang-new (#6047)
Flang used to require that libpgmath be installed

(https://github.com/flang-compiler/flang/blob/master/docs/libpgmath.rst).

This is no longer the case (https://reviews.llvm.org/D140236), so we
should be able to build executable binaries without it.
2024-02-05 20:38:58 -06:00
David Spickett 821e3f2289 Fortran: Add LLVM Flang to default compiler config (#6039)
And enable exectution for flang-new.

This assumes that LLVM flang is installed from `ninja install` rather
than a package manager, since I'm not sure any have it yet. So
it's `/usr/local/bin` instead of `/usr/bin`.

gfortran I've assumed is in `/usr/bin` to match the existing
settings in the file.

I removed the `ldPath` settings that the `amazon` config has because:
* Most of them refer to /opt/compiler-explorer.
* Removing the rest didn't prevent me from linking/running binaries.

flang-new used to require a seperate libpgmath library to produce
exectuables but this requirement has been removed so I've enabled
execution.
2024-02-05 20:38:05 -06:00
jmuddnv 0a928f4b04 Changes for NVIDIA HPC SDK 24.1 #2 (#6075)
Fixed issues in first PR
Add HPC SDK 24.1 to  etc/config/c++.amazon.properties
2024-02-05 20:35:07 -06:00
Fábio de Souza Villaça Medeiros 56911da919 Move Hook to hook-lang organization (#6066) 2024-01-30 23:18:40 +01:00
Matt Godbolt ba215bdc37 Support a new sponsor layout (#6063) 2024-01-29 22:16:14 -06:00
Patrick Quist 85b897e873 mark dex2oat latest as nightly 2024-01-24 14:08:03 +01:00
Patrick Quist 3ea8205fb6 mark dex2oat latest as nightly 2024-01-24 14:07:30 +01:00
Marc Poulhiès 6fb86f16f9 icc: workaround bug in libstdc++ (#5984) (cont) (#6032)
Forgot some config in f3277b8aed.

fixes #5943

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-01-21 19:48:56 +01:00
Jeremy ad50638850 Forgot to set compilerType for wyrm 2024-01-21 12:06:36 -06:00
Jeremy Rifkin 8c1c3eab2a Add Wyrm transpiler (#6028)
https://github.com/compiler-explorer/compiler-workflows/pull/22
https://github.com/compiler-explorer/infra/pull/1218
https://github.com/compiler-explorer/misc-builder/pull/76

Depends on #6027
2024-01-21 10:43:20 -06:00
David Spickett 4edb4a35fb Update LLVM Flang file names (#6010) 2024-01-20 18:56:39 +01:00
narpfel 61a79207c1 Add gcem library (#6012) 2024-01-20 18:32:33 +01:00
wc7086 d6ca3afd80 Add SDCC 4.2.0 and SDCC 4.3.0 (#6018) 2024-01-20 18:30:53 +01:00
Julian 99559780bf Add UPMEM's DPU clang (#5950) 2024-01-20 18:05:14 +01:00
Mosè Giordano 8ee8be2bcf [julia_wrapper] Slightly improve performance (#6024) 2024-01-20 17:22:57 +01:00
Mauro Baladés 597344cb51 Hello again. Fixed snowball (#6021) 2024-01-20 17:15:35 +01:00
Marc Poulhiès 0be4fbf9c5 add some cross gcc mips (#6023)
Add missing 4.9.4, 5.5.0 and 9.5.0 for some mips variant.

goes with
https://github.com/compiler-explorer/compiler-explorer/pull/5723

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2024-01-18 21:38:27 +01:00
kevinjeon-g 6c31805a94 Add artArtifactDir to Android config files (#6011)
This was present in the default properties files for android-java and
android-kotlin but missing for the amazon properties files.
2024-01-16 22:12:35 -06:00
Jeremy a3799c3d57 Add opt17 to llvm default properties and set instructionSet 2024-01-16 20:08:23 -06:00
Mauro Baladés b4ca920fa5 Updated examples and changed to snowball 0.1.0 (#5969) 2024-01-15 15:18:59 -06:00
Henrich Lauko 7cab57f6a3 Add vast-trunk compiler (#5973)
More context in https://github.com/compiler-explorer/infra/pull/1209
2024-01-15 15:18:29 -06:00
narpfelandMatt Godbolt 9fb4309ef9 Add Python 3.12 and make it the default (#5968)
Python 3.12 has been released a while ago, but it seems that it’s not
yet been added to Compiler Explorer.

This PR also changes the license link to link to the actual CPython
license.

Corresponding infra PR:
https://github.com/compiler-explorer/infra/pull/1207

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2024-01-15 15:17:52 -06:00
Stephen Berry 6738662d94 Fixing paths for Glaze and adding latest version (#5966)
This adds the latest version of Glaze, as well as adding `/include` to
the paths per a request from #5901. Thanks!
2024-01-15 15:15:55 -06:00
kevinjeon-g 2f6a7328b2 Add support for dex2oat (latest) (#5916)
Adds Dex2OatCompiler, which applies to the Android Java and Android
Kotlin languages. Dex2OatCompiler runs on .dex files output by
D8Compiler, which in turn runs on .class files output by JavaCompiler or
KotlinCompiler. A parser has been added for dex2oat optimization passes.
2024-01-15 15:15:05 -06:00
Boris Verkhovskiy dddaed4d13 Add Zig 0.11.0 (#5986)
Fixes #5351

I just copied the changes in #4358 and checked that it works locally
with

```sh
make debug EXTRA_ARGS='--language zig'
```

although I had to make the following changes to get it to work locally:

```diff
diff --git a/etc/config/zig.defaults.properties b/etc/config/zig.defaults.properties
index 008aa215..f4db084c 100644
--- a/etc/config/zig.defaults.properties
+++ b/etc/config/zig.defaults.properties
@@ -1,4 +1,4 @@
-compilers=/usr/bin/zig
+compilers=/opt/homebrew/bin/zig
 supportsBinary=true
 compilerType=zig
 objdumper=objdump
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts
index b0d55432..8e33767f 100644
--- a/lib/compilers/zig.ts
+++ b/lib/compilers/zig.ts
@@ -44,6 +44,7 @@ export class ZigCompiler extends BaseCompiler {
         super(info, env);
         this.compiler.supportsIntel = true;
         this.compiler.supportsIrView = true;
+        this.compiler.semver = '0.11.0';
 
         this.self_hosted_cli =
             this.compiler.semver === 'trunk' ||
```
2024-01-15 15:13:50 -06:00
David Spickett 2147ea44b0 Add latest GNU assembler for Arm64 (#5997)
The previous highest version was 2.35.1 and between then and 2.38,
support for many new extensions has been added.

This includes the Scalable Vector Extension (SVE), it's own extension
SVE2, memcopy acceleration (MOPS) and many more.

I checked the version number by installing locally:
```
/opt/compiler-explorer/arm64/gcc-13.2.0/aarch64-unknown-linux-gnu/bin$ ./aarch64-unknown-linux-gnu-as --version
GNU assembler (GNU Binutils) 2.38
```

So that we can handle the new encodings, the objdumper for this category
is also updated to the same version.
2024-01-15 15:08:28 -06:00