2248 Commits
Author SHA1 Message Date
Jeremy Rifkin 18815a4e41 Fix binary lable issue (#4459) 2022-12-18 18:53:57 -05:00
Jeremy Rifkin 5ee5386678 Upgrade and audit npm packages (#4457)
* Upgrade and audit npm packages

* Go back to mocha 8.4.0

* Fix build, update for new api
2022-12-18 12:53:17 -05:00
Jeremy afbdbd6e3e Fix type error with tomselect downgrade 2022-12-18 11:01:53 -05:00
Jeremy Rifkin 7387fe73d7 Handle undefined theme in the site template widget (#4454)
* Handle undefined theme

* Fix comment
2022-12-18 10:51:24 -05:00
Jeremy Rifkin 7a56ee84f7 Assert and unwrap utilities (#4437)
* Add assert and unwrap utilities

* Playing around with diagnostics

* lib/assert diagnostic implementation

* Remove temporary testing stuff

* Reset package-lock.json to before I messed with it

* Further refinements and integration

* Added licence and removed an obsolete eslint directive
2022-12-18 10:30:17 -05:00
Rubén Rincón Blanco cd6c39905b Add select colours to ts-dropdown (#4448)
* Add select colours to ts-dropdown

* Ensure readable colour
2022-12-17 22:44:53 -05:00
Jeremy Rifkin 00b3a8ab23 Implemented png export (#4427) 2022-12-12 20:10:08 -06:00
Jeremy Rifkin 10ba9a10cd Add svg exports for cfgs (#4424)
* Added svg exports for cfgs

* Quick refactor

* Fix background colorfor chrome exports
2022-12-12 18:22:26 -05:00
Jeremy Rifkin abb943bdf0 Fix cfg chrome render bug (#4423) 2022-12-12 17:59:19 -05:00
Jeremy Rifkin 18db9621a2 Fix tomselect arrow padding (#4403) 2022-12-07 09:24:45 -05:00
Matt Godbolt a436592401 npm run format 2022-12-01 21:13:50 -06:00
Marc Poulhiès 9d3096d2cc fix: Gcc dump types (#4369)
While doing some cleaning, the typing of the GCC dump feature was found
incorrect. This change tries to fix most of it... But some details still need to
be fixed (FIXME notes left in the code).

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-11-30 20:41:15 +01:00
Rubén Rincón Blanco 924799919c Make Alert and Compiler-Picker widgets (#4366) 2022-11-30 12:41:54 +01:00
Jeremy Rifkin 1294c3f949 Control flow graph tool rework (#3899)
* Removed old code

* Base functionality

* Work on edge offsets

* Setup interval trees for edges

* linter things

* Formatting

* Added syntax highlighting

* Cleanup and simplification. Improved handling of direct dropdown edges.

* Basic zoom/pan

* Remove old blocks from output

* Fix distance calculation

* Added function selector

* Improved zoom behavior

* figue 8 logic

* Canvas scaling / repainting, updated colors

* Don't truncate output, also removed some console.logs

* Tweak to zoom system

* Replaced canvas stuff with svg

* Experimenting with adding shadows to edges

* Removed shadows, was causing problems. Improved how blocks with lots of incident edges are handled.

* Slightly improved edge system

* some work on implementing segment priority system from cutter

* Optimization to rendering process. I was worried the graph layout algorithm was causing the page to hang but it turns out it was adding elements to the page with +=

* Removed need for storing the previous segment

* refactor, splitting up some logic

* Cleaned up logic and got horizontal edges working better

* Remove vis-network dependency

* Updated package-lock, removed @import vis-network css stuff, added a todo for myself

* Cleaned up notes and error messages. Added comments. Clear the pane if there's no function to display

* Added layout time information, implemented .resize

* Light theme

* State work and bug fix for dragiing

* Re-dading lost dark theme changes

* Added jquery import

* Cleaned up console.logs

* Added basic block count

* Incorporated PR review comments; Fixed cypress (hopefully), added documentation, improved the dropdown, and fixed dropdown items not being cleared with an empty result.cfg

* Ran format
2022-11-29 22:28:10 -05:00
partouf b6d459c9af format and lint 2022-11-28 23:29:38 +01:00
Marc Poulhiès 2fa2bbb16a refactor: renames the CompilerFilters type (#4346)
The type which probably started as a real enum of possible post filtering
options now also includes options used for compilers' invocations.

The type was already split, but the naming was not reflecting this in the other
part of the code.

This changes tries to apply a simple renaming to the type only (corresponding
variables are left as 'filters').

While doing so, some typing error were discovered around the GccDump feature.
A fix for this will follow in a different PR.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-11-28 21:37:15 +01:00
Matt Godbolt 90e6e4ecfd Support backticks in labels (#4352)
.NET uses them, it seems. Closes #4350
2022-11-27 10:39:57 -06:00
Matt Godbolt 22a21e7cfc npm run format 2022-11-25 12:59:39 -06:00
Rubén Rincón Blanco f1a4f169a9 Fetch settings in initializeGlobalDependent (#4307) 2022-11-25 12:41:15 +01:00
Ofek 8be6ca12db Fix #4300 - take css classes outside .opt-decoration in dark theme (#4301)
* Fix #4300 - take css classes outside .opt-decoraiton in dark theme

* Apply reviewers comments

* Make default-theme.scss match dark-theme.scss for opt-remarks
2022-11-19 15:22:35 -05:00
Rubén Rincón Blanco 5ccd9d2029 Add licenses to lots of compilers (#4305)
* Add Rust license info

* Add hipclang license info

Same as C++'s rocm one

* Add license info for Ada compilers

* Add licenses to most C compilers

* Add license to Nim compiler

* Add license to FPC

* Add license to Python

* Add license to Zig

* Add licenses for Scala

Separates it between 2 and 3 as it changed quite a lot,
so that we can more easily add new versions to it in the future

* Add license for Pony compiler

* Add Ocaml license

* Add Mlir license

* Add license to LLVM pseudolang

* Fix mlir license props

* Add license to Kotlin

* Add OpenJDK license

* Add Jakt license

* Add GHC licenses

* Remove licenses from platspec compilers

* Add C++ licenses

* Add link to open issue if license is wrong

* Fix button link
2022-11-18 19:06:54 +01:00
Matt Godbolt cfb3dc54c7 Sponsorship changes (#4274)
Rotate sponsors on the top of the page:
- `topIcon` -> `topIconShowEvery`
- `Sponsors` becomes an interface with methods to get levels, pick sponsors etc
- A somewhat acceptable algorithm for generating a "fair choice" of sponsors given the constraints:
  - "show at least 1 in N times"
  - don't unfairly show one sponsor more than any other at the same level
 - Sponsor icons are loaded dynamically via a "bits" handler (introducing a short delay in them appearing), but this means the index.html doesn't change on every load, so it's still cacheable
2022-11-13 10:35:39 -06:00
partouf deb24bd942 grmbl 2022-11-12 19:38:56 +01:00
partouf d06ac0dea5 oops 2022-11-12 19:33:34 +01:00
partouf 6c9d5ca148 eslintfix 2022-11-12 19:32:49 +01:00
partouf 23cc0cf596 bugfix tree init 2022-11-12 19:16:58 +01:00
Jeremy Rifkin 1b37402cd9 Added llvm opt pipeline timing info (#4284)
* Added llvm opt pipeline timing info

* Fix naming

* Tweak timing pane and use exec's timing if possible

* Added timing info for processExecutionResult
2022-11-12 11:37:47 -05:00
Patrick Quist ae896673a6 reset file input after loading (#4246) 2022-11-12 15:15:41 +01:00
Patrick Quist 750f1930a7 File drop support (#4247) 2022-11-12 15:14:51 +01:00
RubenRBS 5c00d6ca8a Bugfix compiler context menu 2022-11-12 06:01:42 +01:00
Rubén Rincón Blanco 17000a936e Hide scroll to source context menu if line has no source (#4263)
Closes #4171
2022-11-12 04:46:04 +01:00
J. Ryan Stinnett dfdee79f03 Fix popular arguments iteration in UI (#4272)
This fixes popular argument iteration to pluck out the argument via the object
key instead of showing an array index.

Regressed by https://github.com/compiler-explorer/compiler-explorer/pull/4132
2022-11-10 17:07:57 +01:00
Rubén Rincón Blanco e962c3ef8b Fix errorResponse return value (#4248) 2022-11-09 03:12:01 +01:00
Rubén Rincón Blanco c7cfda6a3f Add language tooltips (#4237) 2022-11-09 02:53:04 +01:00
Rubén Rincón Blanco e440abc867 Save state on blur. Fixes cloing windows (#4234) 2022-11-07 13:45:51 +01:00
Ofek db9b4f48b0 Add Hide metadata option to LLVM pipeline (#4243) 2022-11-06 12:22:47 -05:00
Rubén Rincón Blanco aa816778d6 Fixes some issues with editor setting values (#4228) 2022-11-02 14:55:43 +01:00
Rubén Rincón Blanco a4d08986e8 Allow line linkings to be highlighted forever (#4227)
Closes #3487
2022-11-02 14:54:49 +01:00
Rubén Rincón Blanco c698059df0 Use more scss-isms in dark-theme (#4203)
* Use more scss-isms in dark-theme

* Fix wrong indentation
2022-10-31 22:47:04 -05:00
Patrick Quist 0212779a74 CC65 Binary + NES support (#4139) 2022-10-29 17:01:44 +02:00
Rubén Rincón Blanco 1d51e0cabe Fixes 6yo variable typo (#4208) 2022-10-29 16:29:49 +02:00
Rubén Rincón Blanco 3ba7c679f2 Fixes compiler init order by using initializeStateDependentProperties (#4210)
The options were being properly passed in the state,
but the UI was being initialized before the value was set to the member,
causing it not to be displayed.

Closes #4207
2022-10-29 16:29:35 +02:00
Rubén Rincón Blanco c00e31ab2c Stop beliving the lies of GL's .d.ts (#4209) 2022-10-29 16:29:17 +02:00
Matt GodboltandRubén Rincón Blanco c8e8a80760 Convert sponsor.js to sponsor.js, update tests to be more targeted. (#4199)
* Convert sponsor.js to sponsor.js, update tests to be more targeted.

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2022-10-25 18:20:16 -05:00
Patrick Quist 1e0543fbbb Change auto-open device-view to only when there's device asm (#4202) 2022-10-25 23:11:49 +02:00
Paul Taylor 1476937e82 Add split host/device views for CUDA C++ (#4177)
* make nvcc show the device asm view button, stop after compiling host assembly
* keep and extract ptx device code
* paper over some typescript compile errors (maybe mitigating orchidjs/tom-select#500, orchidjs/tom-select#501)
* await on promise-returning methods
* use gcc objdump for nvcc host code, add nvdisasm to disassemble SASS .cubin
* append device ASM lines to result ASM so they're also colourized
* append device ASM to all ASM
* automatically open the device pane if the compiler supports emitting device ASM
* save device view open boolean in compiler state
* make the nvcc compiler return all PTX and SASS results as separate devices
* ensure line hover highlights propagate from editor to compiler panes, and are re-applied when the user changes the selected device
* update cuda properties
2022-10-24 20:28:01 -05:00
partouf d0f349cfc4 fix #4194 2022-10-24 11:55:20 +02:00
partouf 583a73738e fixes #4189 2022-10-23 15:13:56 +02:00
partouf dafeca36da fixes #4185 2022-10-23 13:53:48 +02:00
partouf 96207717e8 fixes #4188 2022-10-23 12:53:04 +02:00