1874 Commits
Author SHA1 Message Date
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 2455e412fa obsolete vars 2022-11-29 00:54:37 +01:00
partouf b6d459c9af format and lint 2022-11-28 23:29:38 +01:00
Patrick Quist 4f1bbcf526 .net - compileToBinary fix (#4353) 2022-11-28 23:13:01 +01:00
kasperk81 df607d5f6b dynamically set targetFramework (#4354) 2022-11-28 23:09:48 +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
Steve 75b9d30485 Support trunk and execution for .NET (#4351)
* Support trunk and execution for .NET
* Adjust compilers order
* Support stdin
* Update samples
2022-11-27 10:14:35 -06:00
Jeremy RifkinandMatt Godbolt e13fe4a2f9 Mg/props ts (#4340)
* WIP

* Type changes to the property getter

* Finish getting types working for properties.ts

* Reduce type casts in exec.ts

* Format files

* Remove old comment

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-11-26 13:56:04 -05:00
Ofek 21cb6f0fe5 Fix4312 (#4338)
* Fix #4312
2022-11-26 10:42:43 -06:00
Matt Godbolt e38d248aeb Fixes for .NET 7 (#4347)
- check return code of restore
- set env vars to prevent file size blowout
2022-11-26 10:42:24 -06:00
Steve 959822a74c Fix F# build failure (#4344)
* Fix FSharp compilation
2022-11-26 09:46:01 -06:00
Steve 0961116011 Fix crossgen2 arguments (#4342)
* Fix crossgen2 arguments
2022-11-25 17:48:26 -06:00
Matt Godbolt 065a166616 Work in progress on net .NET
- uses new installs
- works around issue where empty output would crash runCrossgen2

Not working yet (at least locally).
2022-11-25 08:03:30 -06:00
Steve 201f848b50 Update dotnet script (#4337)
* Uses new way to invoke compilers
* adds new
2022-11-25 07:39:10 -06:00
Matt Godbolt ee54aa914e Don't try and set up buildenv or external parser if remote (#4332)
* Don't try and set up buildenv or external parser if remote
2022-11-23 08:27:15 -06:00
Matt Godbolt f371b10324 Fail if compiler discovery fails (#4331)
* Fail if compiler discovery fails
2022-11-23 08:25:21 -06:00
Rubén Rincón Blanco f4d30924cd Fix error with null stderr (#4322)
* Fix error with null stderr

* Fix test
2022-11-22 15:05:37 +01:00
Matt Godbolt f276f73dab First pass at making compile.js into TS (#4313) 2022-11-22 07:27:43 -06:00
marcosmartinezfco fcb7683019 Add support for evm opcode documentation (#4319) 2022-11-21 17:16:15 +01:00
Patrick Quist c206b3cc9b separate llvmmos targets and nes emu (#4299) 2022-11-18 19:08:37 +01:00
Patrick Quist d180698be2 Fix4293 (#4298) 2022-11-17 17:32:46 +01:00
Rubén Rincón Blanco b67f5cfaa2 Fix Python argument order (#4295) 2022-11-17 15:20:12 +01:00
Rubén Rincón Blanco 61ff341caf Add Python instruction docs (#4290) 2022-11-16 00:51:37 +01:00
Patrick Quist 189d445363 store compilationOptions so that we can debug buildsteps better (#4288) 2022-11-13 19:39:17 +01:00
Rubén Rincón Blanco 423be5bdfe Fix execution for interpreted languages (#4289)
Types had a missmatch when they were interpreted
2022-11-13 18:59:01 +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
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
Sebastian Büttner fef60ac025 Add missing data definition directives (fixes #4275) (#4277) 2022-11-12 09:04:38 +01:00
Rubén Rincón Blanco da7d22bef1 Set proper stubText type (#4270)
* Set proper stubText type

* Remove leftover newline
2022-11-12 04:46:18 +01:00
Jeremy Rifkin c2b3829883 Add stdout to the compilation error result (#4278) 2022-11-11 18:15:42 +01:00
Patrick Quist 17a56af696 Bugfix Map usage (#4265) 2022-11-09 14:08:19 +01:00
Rubén Rincón Blanco c7cfda6a3f Add language tooltips (#4237) 2022-11-09 02:53:04 +01:00
Ofek db9b4f48b0 Add Hide metadata option to LLVM pipeline (#4243) 2022-11-06 12:22:47 -05:00
Patrick Quist 949890e326 typescriptify and fix mistake overriding the wrong function (#4229) 2022-11-02 09:58:13 +01:00
Paul Taylor df36579a20 Add nvc++ as a C++ compiler (#4204)
* add nvhpc-sdk C++ compilers

* return await more promise-returning functions

* add nvc++-specific demangler
2022-10-31 22:39:34 -05:00
Matt Godbolt c363d1a07d Port @trxcllnt improvements to awaiting (#4220)
* Port @trxcllnt improvements to awaiting

* More async improvements
2022-10-31 22:38:23 -05:00
Patrick Quist 0212779a74 CC65 Binary + NES support (#4139) 2022-10-29 17:01:44 +02:00
Matt Godbolt ca0bfdf22b Support multiple sponsor descripts (#4200)
* Support multiple sponsor descripts
2022-10-26 07:33:48 -05: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
Mats Larsen ad5ece867a Bump jvms version to 18 and fix find-node path (#4192)
* fix: bump jvms version to 18 and fix find-node path
2022-10-24 20:28:55 -05: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
Matt Godbolt c5f50d603c Fix typing and usage of tools (#4180)
* Fix typing and usage of tools
* Fix tests and break cycle
* More improvements
2022-10-22 17:16:23 -05:00
Marc PoulhièsandMatt Godbolt 0b7e9db6a8 ada: move to typescript (#4178)
Convert the ada compiler code to typescript.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-10-22 14:02:59 -05:00
ddafb32feb Try to fix main (#4173)
* Fix Editor not being able to load full links
* Better type for this.filename in compiler.ts
* Updates editor.ts and improves compilation types
* Fix some of the type issues, lots still remain
* fixes to language selection & refactoring of hub and some inits
* fix flow of events
* Fix llvm opt handling (cc @jeremy-rifkin)

Co-authored-by: partouf <partouf@gmail.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-10-22 13:59:51 -05:00
Jeremy Rifkin 8d5d723a3f Fixed bug with the llvm pass dump viewer, split test case from the llvm ir parser code (#4170) 2022-10-19 18:03:32 -04:00
zooster e43660bc47 fix: Zig trunk compile error (#4144) 2022-10-12 21:51:14 +02:00
Rubén Rincón Blanco c3eee72def Sort libs based on semver (#4153) 2022-10-12 21:12:44 +02:00
partouf b8e4d2d105 jakt fixes 2022-10-12 21:11:47 +02:00
partouf 3f36aa96cb formatting 2022-10-12 18:07:44 +02:00
Ofek aa4db15ea7 Add tests to LlvmPassDumpParser intra-line filters (#4133) 2022-10-10 15:54:03 +02:00