Commit Graph
45 Commits
Author SHA1 Message Date
Matt Godbolt c84b05763b Don't try and hack the compilation results (#4429)
* Don't try and hack the compilation results

Carbon tried to synthesize "having run" by overriding and hacking a result routine...but did so _after_ it had been cached. So cached results were broken, but live results not.

This "fixes" by adding a post-compilation, but pre-cache hook and uses that instead. Naming is terrible.

I also took the time to fix the `CompilationResult`'s `buildResult`

Closes #4426
2023-01-23 20:25:15 -06:00
partouf 1871f316fd demangling fix 2023-01-23 20:25:15 -06:00
Patrick Quist e4c8870cd6 Support patched clang for faster opt-view (#4416) 2023-01-23 20:25:15 -06:00
Patrick Quist 6f007fc605 fix interpreting with multiple files (#4407) 2023-01-23 20:25:15 -06:00
Patrick Quist 863c704361 first bits of compiler interface (#4378) 2023-01-23 20:25:14 -06: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 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 f276f73dab First pass at making compile.js into TS (#4313) 2022-11-22 07:27:43 -06: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
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
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
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
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
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
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
Rubén Rincón Blanco 0d09aecc19 Fix --emit llvm-ir when asked to emit binary mode (#4131) 2022-10-10 15:29:34 +02:00
Romaric Jodin 72a19da538 asm-mode: better tokenization for spirv (#4024) 2022-10-10 13:02:50 +02:00
Rubén Rincón Blanco b58deaf864 Add no-console to eslint checks (#4134) 2022-10-10 12:54:36 +02:00
Rubén Rincón Blanco c8f1b313da Move zig compiler files to TS and fix zigc{xx} semver comparisons (#4091) 2022-09-25 14:52:12 +02:00
Patrick QuistandRubén Rincón Blanco 8205573365 add compilationinfo and related types (#4051)
* add compilationinfo and related types

* fix mtime type

* Add rest of compiler keys

* Make it compile

* Rename Compiler type to CompilerInfo as per Partouf's suggestion

* Get ready for #4077

* Linter fixes

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2022-09-20 08:00:24 -05:00
Rubén Rincón Blanco 366cd5527c Adds llvm-cov tool (#4044) 2022-09-15 08:12:27 +02:00
Patrick Quist 8334d96bf3 tsify exec.js (#4026) 2022-09-06 20:22:28 +02:00
Patrick Quist 96e15d6630 Unbundle and disassemble device code (#4019) 2022-09-03 19:13:31 +02:00
Jeremy Rifkin 15007d3244 Refactored the LLVM Optimization Pipeline to provide better diagnostics, added timeout indication to exec.js (#4016) 2022-09-03 01:15:21 +02:00
Rubén Rincón Blanco 105b814acf Fixes wrong types in libraries.interfaces.ts (#3982)
* Fix getLibrary functions

* Fix library.path usage in Zig compiler
2022-08-25 21:45:59 +02:00
Rubén Rincón Blanco 7c6a5291ab Move compilers/golang to Typescript (#3980)
* Rename golang.js to golang.ts

* Move golang to Typescript

* Add types to base postProcess so golang knows about them

* Remove CompilationResult type from signature

* Remove asmSize, leave it for the other PR
2022-08-25 21:45:44 +02:00
Rubén Rincón Blanco ba5daface5 Adds some ts typings to base-compiler.ts (#3966)
Mostly to help #3961, but changed some I found along the way.

Lots of work still needed here, but babysteps :)
2022-08-22 16:21:59 +02:00
Rubén Rincón Blanco 63a88e0baf Adds ability to detect incompatible options & userOptions (#3912)
Also filters it with rust to remove the color==always flag as the first
implementation.
2022-07-26 17:18:31 +02:00
Christopher Smyth a5c45b6f0b Pony Lang Config (#3855) 2022-07-10 21:58:19 +02:00
Jeremy Rifkin edf3fadfe5 Add -fno-discard-value-names support for the llvm opt viewer (#3836)
* Added -fno-discard-value-names support for the llvm opt viewer

* Added -Z fewer-names=no for rustc
2022-07-04 11:32:21 -04:00
Jeremy Rifkin ed1a4e6b27 LLVM Optimization Pass Viewer (#3769) 2022-07-01 01:53:02 +02:00
Mats Larsen 540981ccef Port lib/languages.js to TypeScript (#3740) 2022-06-24 14:14:32 +02:00
Matt Godbolt 7179b8aef4 Properly async await so exceptions are processed in getVersion as one would expect (#3797) 2022-06-20 12:38:17 -05:00
Patrick Quist ebfa101ef2 Rust library support (#3754) 2022-06-10 01:48:41 +02:00
Patrick Quist ad2c28aa08 don't objdump when only executing cmake result (#3751) 2022-06-05 23:54:36 +02:00
Patrick Quist 8f79bb54d8 move buildenvsetup to typescript and fix some times (#3735) 2022-06-05 22:51:29 +02:00
Patrick Quist 1e7e3366c5 add counter for dump&parse time (#3742) 2022-06-01 11:14:15 +02:00
Patrick Quist 88cb7d65ac Base-compiler to typescript (#3718) 2022-05-27 22:51:23 +02:00