Commit Graph
1425 Commits
Author SHA1 Message Date
Patrick Quist c0a45e754c Add CMake API (#2509)
And multifile support. No UI support.
2021-03-22 22:59:03 +01:00
partouf f227c75f5b bugfix arch detection 2021-03-22 20:24:51 +00:00
Arseniy ZaostrovnykhandArseniy Zaostrovnykh 23b152b298 Colorize the LLVM AST to match the colors of the source (#2511)
Colour the AST view with the same colors as the source code

* Add a couple of trivial test cases for processAstOutput
* Fix the processAstOutput test, ad a test for a file with #include
* Send individual lines for the AST output
* Parse the source lines for AST
* Register as a contributor
* Factor out the LlvmAstParser into a separate file

Co-authored-by: Arseniy Zaostrovnykh <arseniy.zaostrovnykh@sonarsource.com>
2021-03-22 13:21:08 -05:00
Matt Godbolt 6fcf5d758f Increase the number of characters in s3 URLs
We used to use 6. This gives 32^6 possible URLs.
As we increase the number of URLs the godbolt.org site
stores, the chance of an attacker being able to guess
existing URLs has increased. To stay one step ahead,
we bump to 9 characetrs here: 32^9 possible is 35 trillion
possibilities.
2021-03-21 15:06:53 -05:00
Rubén Rincón Blancoandpartouf 7f4c4a9ebf Report back an estimate of filtered lines (#2506)
* Report back an estimate of filtered lines

The commit is tested, but I had to remove an eslint check and
 not run the filter tests because I forgot how to bless them.

* Implement proposed wording change

* Add filtered report in compile info label

* Simplify and add reporting to binary mode filter

* Fix bad git stash shenanigans

* ignore filteredCount when testing

* filteredCount is not guaranteed to be returned

* extra check

Co-authored-by: partouf <partouf@gmail.com>
2021-03-20 20:17:38 +01:00
Patrick Quist 8e2de4b887 Let api compile also detect aliased compilers (#2502)
* initial implementation to look for aliases correctly and test

* refactoring

* lintfix
2021-03-19 12:04:29 +01:00
RabsRincon 2d91a5e8b2 Shut Winston up 2021-03-18 15:51:35 +01:00
Matt Godboltandpartouf 273017c431 Tweaks to new ASM stuff
* Update right-click menu item to be more general than x86
* mounts /asm/:arch/:opcode and handles unknown arch
* adds dummy aarch64 placeholder
* tags some stuff as aarch64
* tags some stuff as amd64
* uses a redirect from /asm/XXX -> /asm/amd64/XXX
* instructionset detection when property is not set

Co-authored-by: partouf <partouf@gmail.com>
2021-03-14 12:39:55 -05:00
Patrick Quist fc46d0bfae add compilers ldpath to cached requests (#2493) 2021-03-12 15:32:41 +01:00
Jeremy Overesch 11e470a8f7 Feature/jo/arm dockenizer (#2463)
* Update docenizer to python3
* Remove unused code in docenizer
* Create new asm-docs-arm and asm-docs-api-arm files for parsing and retrieving arm related opcodes.  Add conditional instruction switch.
* Rename docs files to specify instruction set
* Add arm32 at /api/asm/arm32/:opcode
* Add @jovere to contributor list
* Add `instructionSet` compiler option
* Update client to access correct instruction based on the `instructionSet` option
* Add `arm32` `instructionSet` option for ARM C++ compilers
* Add `arm32` instructionSet to obvious places in C/C++
2021-03-12 07:40:49 -06:00
Robert Cohn f5babe50f9 enable optimization output for icx/icpx (#2488) 2021-03-11 22:01:51 +01:00
Patrick Quist 77c0a8f3b6 fix undefined stats logging (#2487) 2021-03-11 21:23:11 +01:00
Patrick Quist a0f70d4b0b allow other nasm inputformat, add readelf to assembly (#2481) 2021-03-11 20:35:30 +01:00
Patrick Quist 7edd6d40ac Time all the things (#2462)
* time executeDirect in ms

* measure library download and extract time

* time package download

* download timings when using execution checkbox

* proof of concept timing graph implementation

* use vertical bars for graph

* add objdump time

* add timing for asm parsing

* add timing graph to execution pane as well

* download timings on execution pane

* things
2021-03-11 17:37:57 +01:00
Patrick Quist 6ef5a9c628 fix #2231 (#2478) 2021-03-11 17:30:25 +01:00
Patrick Quist 82daa3d9fe Update base.js 2021-03-09 21:28:54 +01:00
Patrick Quist 1a324cb3a7 Update base.js 2021-03-06 20:09:33 +01:00
Patrick Quist 07114b7a8c Update base.js 2021-03-06 19:58:31 +01:00
Patrick Quist 09244df5aa fix compiler firejail execution with ldPath (#2466) 2021-03-06 18:43:50 +01:00
Patrick Quist 29236dd92c Attempt at refactoring to better separate ldpaths and libpaths (#2452)
* attempt at refactoring to better separate ldpaths and libpaths

* fix doc

* fix doc

* bugfix win32 libpaths

* add ldPath to getVersion query environment
2021-03-05 22:40:18 +01:00
Partouf 56e64c1faf fix compiler.options splitting 2021-03-04 22:08:42 +01:00
Rubén Rincón BlancoandPatrick Quist 1642130a55 Add support for more cases of verbose demangling (#2446)
* Add support for more cases of verbose demangling

I skipped the tests on this commit so that I could push it,
 and add the tests at a later date.

I do this because I'm not sure this does not break unreleated
 stuff so I wanted to make the changes visible before fixing the tests

* Adress review comments

* Update cpp.js

* new test results

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-02-25 21:38:51 +01:00
Patrick Quist e68114b319 bugfix 2021-02-19 22:56:56 +01:00
Austin Morton 28219f9e1e Add loki log transport (#2302) 2021-02-19 08:20:51 -05:00
Matt Godbolt 17b2bb8a58 Move /shortener to /api/shortener (#2426)
We still support /shortener (though will scrape logs to see when
we can remove).

The route under /api/shortener will have the CORS headers set up
properly for things like @foonathan's lexy visualiser.
2021-02-15 12:52:46 -06:00
Matt Godbolt 459afeb426 Goodbye, travis 2021-02-13 09:23:17 -06:00
Rubén Rincón Blancoandpartouf 4e683c53d6 Adds args field to tools (#2406)
* Adds args field to tools

This args field is show in the UI inside the Arguments input.

Closes #2395

* support options for all tools

* clang-format tidy and query use .options differently

* compiler dropin uses options differently as well

Co-authored-by: partouf <partouf@gmail.com>
2021-02-08 07:15:13 +01:00
RabsRincon ebd159f72b Fixes wrong word in intel asm docs
The docenizer script is ran manually every time we update the docs,
 so we can modify it while a fix lands on the Intel manual,
 and then Felix updates the page.

We'll just have to remember to check the fix before updating the docs

Fixes #2380
2021-01-30 10:25:59 +01:00
Matt Godboltandpartouf a9d76dd0df Demangle optimization (#2390)
Uses a prefix tree to find replacements in each
line, instead of looping over all replacements for all lines.
Adds a large test (which was part of bug 1336). On my machine it
used to take 45s to process that test, now it takes ~1.5s.

Skip demangle replacement entirely if there's no demangling to be done. CC @apmorton

Co-authored-by: partouf <partouf@gmail.com>
2021-01-18 11:33:19 -06:00
Matt Godbolt 9cbc894ae4 npm run lint-fix 2021-01-16 09:57:34 -06:00
Tom Ritter 52b268801e Check for tool binary existance, and add some default c++ Tools (#2384)
* Add some default C++ tools that are commonly found

* Check for the presence of tool exe's and do not add them if not found
2021-01-14 22:00:32 +01:00
Matt Godbolt 255bb19dea Fix warning message, see #2388 2021-01-13 22:31:53 -06:00
Tom Ritter 7e595ee0e4 Fix regex so unicorn doesn't complain (#2385) 2021-01-14 02:15:30 +01:00
Tom Ritter 6c68038945 Make the input file to clang-query unique so you can run multiple clang-query tools (#2378) 2021-01-09 14:52:35 -06:00
Patrick Quist 4737c7c11a support .d2line (#2375) 2021-01-07 14:16:34 +01:00
Patrick Quist 471474a64c fix regex for .weak and .weakext detection (#2370) 2021-01-02 16:10:53 +01:00
Patrick Quist 50f6859730 TinyC support (#2365)
* minimal tinycc support

* dont pass -g by default + don't use binary mode on -E

* work around for trunk

* add tinycc trunk
2021-01-02 16:10:05 +01:00
Matt Godbolt fa31476917 move execution counting spot 2020-12-08 09:24:35 -06:00
Matt Godbolt 547dd61df0 Address @apmorton comments 2020-12-08 08:12:12 -06:00
Matt Godbolt 88d8505cca Count compilations and executions in prom 2020-12-07 22:57:03 -06:00
Patrick Quist 8140936756 stop using exe field in compilers api (#2194) 2020-12-06 02:23:30 +01:00
Matt Godbolt 7c9b8c10c8 Support additional env vars in execution
For now hardcoded list of things to make sanitisers colour.
Closes #2339
2020-12-03 23:05:20 -06:00
Julian a81d3f8c67 Applying filters to OSACA input (#2330)
* updated OSACA to 0.3.12

* applying filters to osaca input

* added missing semicolon

* const and async
2020-11-22 12:14:21 -06:00
Alexandros Naskos 80763a2574 Fixed zig trunk LLVM IR output (#2327)
* Fixed zig trunk LLVM IR output

* Filter all emit compiler options
2020-11-13 08:24:13 -06:00
Julian 63971bffc6 OSACA tool & analysis support (#2280)
* added rudimentary OSACA tool & analysis support
* added osaca to tools. using -trunk
* fixed copyright string and added myself to CONTRIBUTORS.md
* use OSACA v0.3.10
2020-11-03 08:01:23 -06:00
Austin Morton 75ba44c8fd Fix VcAsmParser when multiple anonymous functions appear on the same line
Fixes #2093
2020-11-03 07:38:03 -05:00
Austin Morton 4b869071fd Fix golang compiler output when run under firejail
Due to some environment differences between running
under firejail or under no sandbox, the regex used in
`extractLogging` does not match any lines because the
compiler output already has filenames replaced with
`<source>` when run under firejail.  When run outside
firejail the filenames are not filtered.  Additionally, some
compiler output was lost due to having a filename of
`<autogenerated>`.

Fixes #2228
2020-11-03 07:32:52 -05:00
Matt Godbolt 17c8ab8f46 Add stats for caches (#2300) 2020-10-20 14:51:31 -04:00
Austin Morton 80ec4ca90d Optimize instance startup time (#2293)
* Avoid execution queue contention during instance startup if compiler executions would be cached

* Avoid mutating execution options when running wine commands

These mutations would prevent cached executions from functioning correctly
2020-10-16 17:35:44 -04:00
Austin Morton a16013a768 Use execCompilerCached for GCC argument parser 2020-10-16 13:24:40 -04:00