Commit Graph
9697 Commits
Author SHA1 Message Date
Mats Jun 42acafcf07 Mark coverage as excluded in IntelliJ (#7069)
Vitest outputs coverage information into `/coverage`.
gh-13216
2024-11-06 14:59:56 +09:00
Matt Godbolt e2957912a6 Minor package bumps (#7065) gh-13201 2024-11-05 07:46:34 -06:00
Matt Godbolt 0d2fc74419 Deduplicate ARM opcodes (#7067)
Prevents us generating duplicate case statements, though this doesn't
mean we correctly collate things. This has no functional change (as the
duplicate switches the first one wins) but reduces the amount of code
generated.
gh-13198
2024-11-05 07:31:20 -06:00
Elias Kosunen fbc8a25358 Add scnlib v2.0.3, v3.0.2, and v4.0.1 (#7061)
The latest included release, v2.0.0, is from this January. This PR
updates the included versions.

Infra PR: https://github.com/compiler-explorer/infra/pull/1447
gh-13193
2024-11-04 18:58:07 -06:00
Filippo Barbari 99fb0fa73b Added Intel OneAPI 2025.0.0.740 (#7062)
Refers to [this
PR](https://github.com/compiler-explorer/infra/pull/1448).
gh-13192
2024-11-04 18:57:15 -06:00
Nhat NguyenandMatt Godbolt 77f39ef181 Add Beman.iterator library trunk version (#7060)
Add Beman.Optional26 library trunk version -
https://github.com/compiler-explorer/compiler-explorer/issues/7059
Infra linked
[#1446](https://github.com/compiler-explorer/infra/pull/1446)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
gh-13191
2024-11-04 18:55:41 -06:00
Bernhard Manfred Gruber 637ffa6397 Make CCCL/cudax library available (#7063)
cudax is a sub library of CCCL (CUDA Core Compute Libraries) and
contains experimental CUDA library features. cudax is shipping as part
of CCCL since version 2.5.0.
gh-13188
2024-11-05 08:31:02 +09:00
Dmitriy Matrenichev 076dd3ee99 Add Go 1.23.2 (#7057)
Just like #6296 but for Go 1.23.2.
Depends on compiler-explorer/infra#1443
gh-13185
2024-11-04 21:07:17 +09:00
Bernhard Manfred Gruber 571b6584fb [LIBRARY_REQUEST] Make CCCL library available for C++ as well (#7043)
The CCCL (CUDA Core Compute Libraries) are currently only availabel for
the CUDA language. However, they also contain many parts that compile
just fine with plain C++.

This PR makes CCCL available for the C++ language as well. As a drive-by
fix the recent name change from CUDA C++ Core Libraries to CUDA Core
Compute Libraries is appiled (we also ship Python libraries now).
gh-13184
2024-11-04 21:06:48 +09:00
Spencer Fricke 35527dd3b4 Fix OpLabel being in previous block (#7054)
SPIR-V is like LLVM in there are "Blocks" used for Control Flow,
`OpLabel` has a special text in the SPIR-V spec

> A block always starts with an
[OpLabel](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpLabel)
instruction. This may be immediately preceded by an
[OpLine](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpLine)
instruction, but the OpLabel is considered as the beginning of the
block.

But currently the coloring is off-by-1


![image](https://github.com/user-attachments/assets/4ec20d7d-0beb-49de-ba32-204f708a08c2)

This change now moves it up a line so it is the start of the block


![image](https://github.com/user-attachments/assets/3d6d1742-469f-4b29-a644-7677056bce9e)

This can be better seen why looking at the [SPIR-V
Visualizer](spirv-visualizer) tool output


![image](https://github.com/user-attachments/assets/10cbad0b-f093-4bd5-98dd-b38e78615218)
gh-13178
2024-11-03 19:37:45 +09:00
Ofek 6c8f9aed5a Fix #4225: make now copies etc/scripts/disasms into out/dist (#7047) gh-13170 2024-11-02 10:56:03 +02:00
Sirui Mu a6ca0fed18 Add ClangIR compilation options (#6914)
This patch adds two options to the clangir pane that affects the clangir
compilation pipeline:

* Flat CIR enables the emission of flat clangir CFG;
* -fclangir-mem2reg enables the mem2reg pass on the flat clangir CFG.
gh-13169
2024-11-02 10:53:33 +02:00
Eric Niebler e8b43f5744 Update the name of the CUDA Core C++ Libraries (#7049)
i went searching for the CCCL library and couldn't find it. that's
because it doesn't have "CCCL" in its name. this pr remedies that
situation. it also makes the library name consistent with #7043.
gh-13168
2024-11-02 12:11:11 +09:00
goto40 7476cf387c fix: changed ClientStateExecutor.arguments type to string (was: any[]) - closes #7037 (#7044)
Just a small fix concerning the type (and the default value!) of
`ClientStateExecutor.arguments`.

This solves #7037 .

**Please have a detailed look at my changes**, since I have no deep
insight in all dependencies of this software (however, the tests pass)!

I tested the new code with the link in #7037 - and I tested the error
(wrong type) with [this link (the arguments are a list
here)](http://localhost:10240/clientstate/eNpNUEFqwzAQ/MqiQrCJS0jSk5205AW9hF7qHGRFuAJ5baQVpAj9vSvjmCKENLOj2dVE4bX3ZkQvaviOwtz53FcgrMQ+yF4zFGq7FUz5MTg1Ey2+GFQ23DWcJmeQ3lv05IIiuEBkDI/qt0lNiy2SHiYriZXKSu/hylqD1qAGxW0JrhsY5AOKBcFGVrDeuxIiu5DTFByChBN08MG7Bsn2KXfI/QZpsJi1AJ7udT2PZbFoBZsXx+qtPMfU8jeesGyydrebiUvcV4dUXSJXUq6k/GE1DpOx2s3Z3JjQD60CjW4JS7o+DBpprT8fMF6iFL1HOfmfkbKhNd2qHSdaYhevPPGZQz4cRfrn8hloCvRlvOlsjp0D1unG6w9dpIzQ).

**Note:** I check manually for the correct type and throw a `TypeError`
in case of problems. We could add a proper JSON-Schema definition of
important Data Types and include a Schema-check (I have good experience
with `zod`, but there are many of such libs). **If you are interested**,
I could prepare a demo-PR with e.g. `zod` for the `ClientStateExecutor`?
gh-13159
2024-11-01 10:32:06 +02:00
github-actions[bot]andCompiler Explorer Bot 3fc17c8b1f [bot] Update browsers list (#7045)
Automatic run of `npm run-update-browerslist` which needs to
 be done periodically to keep in-date.
See
[here](https://github.com/browserslist/browserslist#browsers-data-updating)
for more details.

Co-authored-by: Compiler Explorer Bot <mattgodbolt@users.noreply.github.com>
gh-13158
2024-11-01 09:38:56 +09:00
Spencer Fricke 868be5dc99 Add GLSL Logo (#7041)
Follow-up of
https://github.com/compiler-explorer/compiler-explorer/pull/6883

Someone pointed out today (since GLSL went live) that the OpenGL logo
would be best reprentation for the language as the `GL` in `GLSL` does
stand for the `GL` in `OpenGL`... also there is no other official logo
and it feels like a bug that there is no logo for it 😆
gh-13156
2024-10-30 23:30:54 +09:00
Mats Jun 35dd30c105 Clean up IntelliJ project configuration (#7040) gh-13153 2024-10-30 09:22:17 +01:00
Partouf a4d8560877 fix gh-13147 2024-10-29 10:31:22 +01:00
Partouf 9ad3a6ef6f bugfix/workaround windows gh-13146 2024-10-29 09:40:11 +01:00
Matt Godbolt 8248713dce Tweaks to spirv configuration (cc @spencer-lunarg) gh-13145 2024-10-28 21:27:55 -05:00
Spencer Fricke 02603a6371 Add SPIR-V language with SPIRV-Tools compilers (#6947)
for https://github.com/compiler-explorer/compiler-explorer/issues/2331

Hey, so I am currently trying to improve the SPIR-V ecosystem, in-charge
of the [SPIR-V Guide](https://github.com/KhronosGroup/SPIRV-Guide), and
part of the SPIR-V Working Group. We talked at our last Face-2-Face
gathering about getting more support for GPU tooling in something like
Compiler Explorer because you have all made this such an amazing tool!

I have enjoyed working in this codebase and happy to help keep improving
the SPIR-V as people find issues or want enhancements (I was already
about to spend time rebuilding Compiler Explorer, so happy to donate my
time to a single tool's effort)

(For those who haven't spent last few years staring at SPIR-V)

- SPIR-V is a an IR (very much like LLVM IR) but for GPUs
- SPIR-V can be used for Graphics and Compute
- Compute:
    - Can be tied to things like clang, llvm, mlir, OpenCL, etc
- One could take `spirv` as a language and compile it to something like
x86
      - (Future PRs for this realm of things)
- Graphics:
- Much harder to actually "compile" to any ISA because other graphics
pipeline information is missing that will effect the final ISA
- Microsoft has even now planned to move to [SPIR-V for DirectX
soon](https://devblogs.microsoft.com/directx/directx-adopting-spir-v/)
- Both:
- There are many tools that run on SPIR-V regardless (hence why they
share the same IR)
    - Being able to do tooling in compiler explorer would be AMAZING

This PR adds `SPIR-V` as a language and a new `SPIRV-Tools` compiler as
an initial compiler for it the language (since we already have the
SPIRV-Tools repo being pulled in on the infra side!)

I personally use `spirv-opt` and `spirv-val` the most and have been
testing this locally for a few days and feel it is ready to go. I plan
to slowly add more tools (ex. `spirv-fuzz`, `spirv-cross`,
`spirv-reflect`, etc)

Cheers!

(some screenshots of course)

![image](https://github.com/user-attachments/assets/419feab0-d030-4578-b32a-ef1cf95701da)

![image](https://github.com/user-attachments/assets/a00fa60f-7f05-4522-a9fc-1c43ecee1c42)
gh-13144
2024-10-28 21:24:50 -05:00
Matt Godbolt a13b52fd9e Add glsl amazon properties (cc @spencer-lunarg) gh-13143 2024-10-28 21:20:09 -05:00
OfekandMats Jun 679b908c39 Tooltips for llvm opt output (#7036)
This does fix #7019, but unfortunately in IR lines like -
```
  %2 = mul nsw i32 %0, %0
```
Monaco assigns both the `mul` and `nsw` tokens with type
'operators.llvm-ir' (handled as asm keyword by this PR) and requests the
backend for their docs. Only `mul` is an actual documented keyword -
`nsw` is just a modifier and the request fails with errors like `GET
http://localhost:10240/api/asm/llvm/nsw 404 (Not Found)` thrown at
[getAssemblyDocumentation](https://github.com/compiler-explorer/compiler-explorer/blob/63dd5e35a5856bcd1670b7b1cf21ffd854928ef7/static/api/api.ts#L50-L51).

This draft PR is meant for discussion. Would it be enough eg to wrap the
request in `getAssemblyDocumentation` in a try-catch? Maybe the right
thing to do would be to intervene in the monarch parsing for llvm-ir?
Other ideas that I'm missing?

---------

Co-authored-by: Mats Jun <mats@jun.codes>
gh-13142
2024-10-28 19:41:38 +09:00
Mats Larsen ef0c9f5ded Don't use sinon/chai code for frontend tests
Using these imply that sinon and chai will be built for the final bundle that the user downloads. This is not a good thing, because it bloats our bundle.
gh-13139
2024-10-28 18:59:56 +09:00
narpfel 5e27a95042 [rust] update clap crate (#7003)
see https://crates.io/crates/clap

`clap` is a popular argument parsing library. This PR adds version
4.5.20 because the version currently supported on CE is quite old and
`clap` has had a major version bump in the meantime.

Infra PR: https://github.com/compiler-explorer/infra/pull/1442
gh-13138
2024-10-28 18:16:42 +09:00
Mats Jun 9e1a42288b Remove legacy test dependencies (#7034)
Replaces sinon mocks with cy and removes deep-equal-in-any-order

Removes any old chai imports
gh-13133
2024-10-28 18:12:58 +09:00
Mats Jun 78ac34071f Include my full name in the AUTHORS file (#7038) gh-13130 2024-10-28 10:08:37 +01:00
narpfel 01a873ab27 Reintroduce [already open] for “new tool” buttons (#7035)
Fixing the merge conflicts in #6974 accidentally removed the
`new-pane-button` class from the buttons in the “Add tool...” menu from
#7002:

https://github.com/compiler-explorer/compiler-explorer/pull/6974/files#diff-40ca496bc7fcf6c9bcd41d530708fe3a7bcc5f58cd9bad27ab919b5033f557deL2695-L2696

See https://godbolt.org/z/fd7v8zfE5 (click on “Add tool...”, `ldd` is
disabled but does say `[already open]`).

This PR reintroduces that change. However, the implementation in #7002
would also show `[already open]` for the “No tools available” button if
there are no tools. In this PR, the `new-pane-button` class is only
added to the “real” new tool buttons.
gh-13121
2024-10-28 16:43:31 +09:00
Ofek Shilon 45cf2cc6a8 Add clang19 to llvm gh-13120 2024-10-27 22:08:41 +02:00
Ofek 63dd5e35a5 Various tsifications (#7025) gh-13116 2024-10-27 15:28:38 +02:00
Ofek b6386887a8 Make 'new source editor' preserve the origin language (#7031)
When doing 'Add new...'/'Source editor' from, e.g., a Rust editor - open
a new Rust editor and not a C++ one.


![image](https://github.com/user-attachments/assets/861c53bc-fb1e-44c0-ac23-09d2ac839bdb)
gh-13109
2024-10-27 11:06:51 +02:00
Ofek a0fe0e3d4f In diff view, protect against undefined asm (case of a failed build) (#7030)
Fixes #7029
gh-13105
2024-10-27 09:20:31 +02:00
Ofek ab4b662ee0 Extra safety around executeParameters.args (#7028)
Hopefully fixes #7027
gh-13102
2024-10-27 09:09:44 +02:00
Ofek Shilon 407e0f9e83 Unhide another word in markdown gh-13097 2024-10-27 08:40:25 +02:00
Alcaro 910f35e1d8 Unhide secret words (#7026) gh-13094 2024-10-26 23:23:05 +02:00
Partouf f3e369d5dd bugfix cmake execution gh-13090 2024-10-26 19:09:39 +02:00
Partouf b5644fc22f bit more logging gh-13089 2024-10-26 18:48:42 +02:00
Ofek 3fc9fcabd2 Add types to remote-execution files (#7024) gh-13088 2024-10-26 18:26:56 +02:00
Partouf 025be9c495 fix types gh-13085 2024-10-26 17:53:46 +02:00
Ofek f6438f9c4d Store times in numbers only (#7023)
Also fixes #4655
2024-10-26 18:43:59 +03:00
Patrick Quist 4fe8397fac Remote execution (#6700) gh-13083 2024-10-26 17:42:22 +02:00
Ofek 648795d0f5 Unify CompileChildLibraries and SelectedVersionLibraries (#7022) gh-13078 2024-10-26 15:53:27 +03:00
Ofek c312beae24 TSify StackUsage and others (#7021) gh-13075 2024-10-26 11:35:35 +03:00
Ofek 4e5348ab77 Tsify tools (mostly) (#7018)
This includes among others:
 - Proper tsification of various tools code,
 - Elimination of the `CompilationInfo2` type,
 - Use of `CompilationInfo` instead of `Record<any, any>` in some places
 - These lines in CompilationResult:
```
    // Temp hack until we get all code to agree on type of asm
    asm?: ResultLine[] | string;
```

The next task would be to get all code to agree on the type of
CompilationResult.asm, thereby enabling fixing of most the remaining
TSification.
gh-13072
2024-10-26 10:58:30 +03:00
Ofek d7da9a7d64 Fix compilers to executors (#7020)
@partouf fyi
gh-13071
2024-10-26 10:55:02 +03:00
Ofek 93133510c2 Move ToolState to component.interfaces, to avoid duplicate tool.interface.ts gh-13060 2024-10-25 22:02:30 +03:00
Ofek c1985d64a1 Tsification binge #7 (#6974) gh-13053 2024-10-25 12:19:04 +03:00
narpfel 02b574b4a9 Show that pane is already open when disabling the button to create a new pane (#7002)
When a new pane (such as the LLVM IR view) is opened using a button in
the “Add new...” or “Add tool...” menu, the button is disabled. This can
be confusing when the pane is not visible (e. g. when it is in a tab in
the background), because it can also be interpreted as “this is not
supported“.

This PR adds an `[already open]` to the button when it is disabled.
gh-13050
2024-10-24 21:24:54 +03:00
Marc Poulhiès 9c547b5240 Add latest Kalray compiler: ACB 5.2.0
closes #7013

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gh-13049
2024-10-24 19:06:20 +02:00
Ofek Shilon 79a2b61447 Delete unused cliconan gh-13044 2024-10-24 19:03:34 +03:00