2177 Commits
Author SHA1 Message Date
Justin Bogner 6a5a78f3b8 Introduce ClangDxcCompiler for HLSL (#5388) 2023-09-04 14:14:18 +02:00
partouf fae2f3628b fix 2023-09-04 14:04:07 +02:00
Cassandra Beckley 92a41e3468 Improve SPIR-V parser (#5441) 2023-09-04 14:02:31 +02:00
partouf effea73b0a include languageid in result 2023-09-04 14:00:37 +02:00
Cassandra Beckley 94dae50be0 Use the SPIR-V parser for DXC SPIR-V output (#5418) 2023-09-04 13:59:52 +02:00
Matt Godbolt ef8e591cb0 Merge branch 'main' into edg-support 2023-09-03 12:49:28 -05:00
Jeremy Rifkin 63ac0a3308 Also specify MSAN_SYMBOLIZER_PATH for clang (#5424) 2023-08-27 11:27:21 -04:00
Matt Godbolt 6173492723 Merge branch 'main' into edg-support 2023-08-25 12:59:53 -05:00
Steve 58697ccf38 Improve the disassembly format for dotnet (#5419)
This is an improvement that can improve the disassembly format to make
it more friendly to a diff checker.

All versions tested:

net6.0:

![image](https://github.com/compiler-explorer/compiler-explorer/assets/14960345/1ae4fda5-db73-4703-88f9-abd640b4e5e1)

net7.0:

![image](https://github.com/compiler-explorer/compiler-explorer/assets/14960345/6dfe1a74-a09a-40c4-b586-425b8ee84b12)

trunk:

![image](https://github.com/compiler-explorer/compiler-explorer/assets/14960345/36247f19-1e26-4bb8-ab1d-040d7145854f)
2023-08-25 06:48:18 -05:00
Steve 6601a41423 Bring back crossgen2 (#5415)
It turns out we still need crossgen2 for net6.0.
So bring crossgen2 back for net6.0 only.

Also fix some bugs around `indexOf`.

No image rebuilding is required.
2023-08-24 19:23:53 -05:00
Steve 564ffed567 Use corerun and DisassemblyLoader for dotnet (#5391)
Depends on https://github.com/compiler-explorer/dotnet-builder/pull/4

- Use corerun instead of crossgen2 to do disassemble
- This can skip emitting actual executable by crossgen2 and speed up the
compilation
- Filter disasm to only show disasm for user code

We need to rebuild images for old compilers.
2023-08-23 11:03:36 -05:00
kasperk81 b3fd6f5c5c dotnet: show the actual error when compilation fails (#5410)
instead of ENOENT from the next line (fs.readFile), return the failed
compilation result.
2023-08-22 19:30:16 -05:00
kasperk81andkasperk81 k c8e70680c5 add dotnet aot support for linux-x64 (#5345)
limitations:

* linux-x64 only
* no execution support

all of which can be added later after this initial support

---------

Co-authored-by: kasperk81 k <3082615+kasperk81@users.noreply.github.com>
2023-08-21 21:19:17 -05:00
Justin Bogner 4c613e9f70 Implement comment filtering in LlvmIrParser (#5389)
This is arguably a bit pointless, since most if not all of the comments
in LLVM IR are filtered out as part of directives or attributes, but it
comes up for things like `opt` on LLVM IR with debug info and for DXC
(which is DXIL, but that's LLVM 3.7-era IR).

In any case, this makes things less confusing in those cases by making
the comments filter actually do something, rather than be ignored.
2023-08-20 11:32:02 -04:00
Spydr 07d9995ddf Fix V .vmodules path (#5385)
Currently, the `.vmodules` path is not writable. This PR changes the
path to a writable (temporary) directory.

Putting `.vmodules` into the compilation folder seems to be not that
simple since the env vars are created before a compilation folder is
assigned.
2023-08-17 16:08:28 -05:00
Matt Godbolt d2a6dc251d Update remaining packages and pre-emptively bump the .vXX hack; reformat 2023-08-15 22:35:24 -05:00
SpydrandMatt Godbolt 0bf769e245 New Language: V (#5297)
V (`vlang`) is a simple, fast and safe general purpose programming
language compiling to human-readable C.

#### Key features of V:

- simplicity, "only one way to do things"
- performance as fast as C
- safety: no null, no globals, no undefined behavior, immutability
- automatic C to V translation, good C interoperability
- hot code reloading
- flexible memory management (GC by default, manual, arena allocation,
autofree)
- other compilation backends like JavaScript, `native` (wip), `wasm`
(wip) or interpreted

#### Links:

Source code: https://github.com/vlang/v
Official website: https://vlang.io
Web playground: https://play.vlang.io/

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

#### Things this PR adds:

- General support for V
- Code inspection for the C, Go and JavaScript backends
- Support for the v formatter `v fmt`
- Some V example code

#### Things not implemented:

- Support for binary-output backends like `native` and `wasm`
- Support for running programs

<!-- 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!
-->

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-08-15 22:16:36 -05:00
Marc Poulhiès 3a496913e4 fix: correct some compiler categories (#5371)
Some compilers were badly assigned the default ISA (amd64).

Also fix rv32 GCC 10.3.0 that was pointing to the rv64 toolchain.

fix #5328

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-08-09 23:16:17 +02:00
Patrick Quist 49506f1cd6 Nvc++ deviceview support (#5324) 2023-08-09 13:06:06 +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
quic-rvarghesandRyan Sam Varghese ab1d965289 New Compiler: Hexagon-clang (#5330)
**Related to:** compiler-explorer/infra#1061

**Goal:-**
To enable back-end support for hexagon clang compiler so that it can be
used on the Compiler Explorer's website
([https://godbolt.org/.](https://godbolt.org/)) This will be
particularly useful to people working on Hexagon Digital Signal
Processor (DSP) developed by Qualcomm Technologies.

**Information about Hexagon DSP:-**

[https://developer.qualcomm.com/software/hexagon-dsp-sdk/dsp-processor](https://developer.qualcomm.com/software/hexagon-dsp-sdk/dsp-processor)

Co-authored-by: Ryan Sam Varghese <rvarghes@qti.qualcomm.com>
2023-08-07 18:33:45 -05:00
Goooler 2b52073f35 Add logo for Carbon-Lang (#5282)
Get the logo from https://github.com/carbon-language
2023-07-25 06:17:56 +02:00
Matt Godbolt 081f585bcc Use a unique temp file (#5275)
We _once_ saw a local file that had an extra `}` at the end and the
vague hypothesis is because it was cached multiple times at once (it was
a shared executable for clang++) then _sometimes_ it was one char longer
than another run, and two runs at the same time wrote to the same temp
file, and the last byte from the "longer run" was left...
2023-07-23 13:39:31 -05:00
Matt Godbolt 782c16e1ca Return null instead of undefined on failure to parse 2023-07-22 18:33:59 -05:00
Wyatt Childers 9fbeaeda37 Initial EDG support 2023-07-19 13:53:30 -04:00
Patrick Quist 9b983d6965 Load and show creation_date of shortlink (#5236) 2023-07-17 23:36:36 +02:00
Jorge Lopez a90dfab5f5 Add a line break before kill (#5258)
A fix for
https://github.com/compiler-explorer/compiler-explorer/issues/5233
2023-07-15 10:37:01 -05:00
Matt Godbolt 87024e2239 Bump latest deps (#5252) 2023-07-10 21:31:04 -05:00
Mauro Baladés a33dd9de16 Added snowball lang (#5245)
# Language name
Snowball 🐱 

Language version
Snowball v0.0.7-beta

## Language homepage
Soon™️ 

Not the websites but some (WIP) documentation:
https://snowball-lang.gitbook.io/docs/

Compiler homepage

https://github.com/snowball-lang/snowball

Compiler version
v0.0.7-beta

Motivation

With a myriad of features to offer, Snowball boasts object-oriented
programming, memory safety, built-in functions for enhanced
productivity, and faster execution than other languages. Plus, its
garbage collector and unit testing make it a comprehensive tool for
developers.

> It's still in development but it's development is fast
2023-07-10 20:38:55 -05:00
Jeremy Rifkin d6f9536902 Add checks for config problems (#5208)
Fixes #4947. I could not find existing checks, so I added something in
the compiler finder. The implementation is not as elegant as I'd hoped,
but it gets the job done.
2023-07-09 17:36:21 -04:00
Antonio Malara 1feaa088b4 Add LLVMOptPipelineView support for Swift compilers (#5241)
This PR adds support for the LLVM optimisation pipeline view pane for
the Swift family of compilers.
2023-07-09 09:00:22 -05:00
Guo Ci d1bb248206 Fix #1830 (#5201) 2023-07-07 00:24:48 +02:00
Jeremy Rifkin 3c4b22c1eb Quick llvm ir cfg parsing patches (#5234)
Fixes some issues noticed in
https://github.com/compiler-explorer/compiler-explorer/pull/5155#issuecomment-1617709720
- confusing coloring and hyphens not being part of the label regex

CC @OfekShilon
2023-07-06 08:09:27 -04:00
partouf 537e73d937 refactor and bugfix rust crates 2023-07-03 22:41:42 +02:00
Patrick Quist d1b75456ac Library code filter fix (#5204) 2023-07-03 21:32:30 +02:00
Guo Ci 701301642e resolve #4330 (#5196)
#4330
2023-07-03 15:07:26 -04:00
Steve 6e0b25b0e6 Fix the comment test regex for dotnet (#5229) 2023-07-03 18:16:34 +02:00
Steve 271d5ff788 AsmParser update for dotnet (#5227) 2023-07-02 17:43:59 +02:00
Marc Poulhiès 3e204e204f ada: add stack-usage support for GNAT (#5218)
GNAT is gcc based, but its --help doesn't show all of gcc's option and
the base compiler doesn't detect its support for -fstack-usage.

Force the support (currently we only have GNAT as an Ada compiler).

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-06-30 00:52:42 +02:00
Jeremy Rifkin 4260313e13 Common utilities and type work (#5200)
This PR refactors some common utilities out of lib/ and into shared/ and
eliminates some use of underscore.js, as well as general type
improvements done along the way.
2023-06-28 20:13:10 -04:00
Jeremy Rifkin ddb4ed8c05 Improve the type of ExecutionOptions.env (#5206) 2023-06-28 08:15:24 -04:00
Jeremy Rifkin 3638f6026c Support control flow graphs for more compilers (#5209)
This PR should make cfg generation available for all clang compilers,
icc, and any compiler whose instructionSet property is x86, arm, or
llvm.
2023-06-28 08:07:33 -04:00
Jeremy Rifkin a9bd0a1f80 Add the movfuscator (#5193)
Resolves #985

Builder: https://github.com/compiler-explorer/misc-builder/pull/65
Infra: https://github.com/compiler-explorer/infra/pull/1041
2023-06-26 20:28:09 -04:00
Patrick Quist 660319505a hotfix libraries (#5205) 2023-06-27 00:42:23 +01:00
Guo Ci f9ce1b35ef resolve #5014 (#5197) 2023-06-25 00:15:20 +02:00
Patrick Quist 40ae2261e0 Headers via conan (#5179) 2023-06-23 12:25:30 +02:00
Patrick Quist 76beb84b2e C64 emulation (#5198) 2023-06-23 12:21:28 +02:00
Jeremy Rifkin 72e6b34d55 Improve pane typing (#5191)
Resolves #4365
2023-06-21 21:40:35 -04:00
Jeremy Rifkin d907f34bdc Fix handling when the opt output is truncated (#5189)
Fixes #2984
2023-06-21 21:26:55 -04:00