Commit Graph
24 Commits
Author SHA1 Message Date
Patrick Quist 96e15d6630 Unbundle and disassemble device code (#4019) 2022-09-03 19:13:31 +02:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
Matt Godbolt a4edf7ed6b No array for each 2021-05-28 18:08:05 -05:00
Matt Godbolt 4e36d206b4 Prefer regex.test() 2021-05-27 23:19:32 -05:00
Matt Godbolt a519919a34 Bump max ir lines default for all languages to 5000.
Closes #2600
2021-04-27 17:56:48 -05:00
Arseniy Zaostrovnykh 4f88b3f4ec Highlight ASM and LLVM IR lines corresponding to the given token and vice-versa (#2594)
* Highlight the lines in LLVM-IR corresponding to specific tokens

In addition to the highlighting of all the IR lines corresponding to the given
source line (using blue background), also make the lines corresponding to the
given token on that source line.

* Parse the optional source column number in the text asm

* Bolden the asm lines corresponding to the given token and vice-versa

* Ignore column number if it is 0; add a test with no column specified
2021-04-13 10:22:44 +02:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Matt Godbolt 473f41cbed Slightly over-defensive fix for #1767. Not sure 100% of the original intent... 2020-01-07 22:11:59 -06:00
Partouf 12c54d9d10 conform llvmir result to asmparser result 2019-12-25 21:06:56 +01:00
Matt Godbolt 2e7fc5fe80 Super minor tweaks to @bugwelle's awesome PR for LLVM IR mode! 2019-03-21 21:28:43 -05:00
Andre Meyering b8815fbdb2 [LLVM] Fix linter warnings
- redefinition or property
 - use of undefined symbol (caused by mistake while rebasing)
2018-11-28 14:29:10 +01:00
Andre Meyering bafb9a4787 [IR View] Add line highlighting; Rename "ast" => "ir"
- "astEditor" => "irEditor", etc.
 - add line highlighting in ir-view
2018-11-28 14:29:10 +01:00
Andre Meyering c34fa3f46e [LLVM] Better debug info parsing 2018-11-28 14:29:10 +01:00
Andre Meyering 394c13b403 [LLVM] Refactor meta node parsing; add tests 2018-11-28 14:29:10 +01:00
Andre Meyering 7074c3e5f8 [LLVM] Fix "Scroll to assembly/source" 2018-11-28 14:29:10 +01:00
Andre Meyering a056f27b27 [LLVM] Add tests for directive detection 2018-11-28 14:29:10 +01:00
Andre Meyering 923023dc6e [LLVM] Avoid multiple successive empty lines 2018-11-28 14:29:10 +01:00
Andre Meyering e968877ce3 [LLVM] Refactor getSourceLineNumber
- refactor line to source line number handling
 - add tests
2018-11-28 14:29:10 +01:00
Andre Meyering de52d395d2 [LLVM] Better handling of max lines 2018-11-28 14:29:10 +01:00
Andre Meyering 99bd7cb69f [LLVM] Add "directives" filter 2018-11-28 14:29:10 +01:00
Andre Meyering bc927ce66c [LLVM] Add "commentOnly" filter 2018-11-28 14:29:10 +01:00
Andre Meyering 061dcd35c7 [Utils] Add trimLine() function
- trimLine() trims left, right and int-between spaces
2018-11-28 14:29:10 +01:00
Andre Meyering d384986b3a [LLVM] Implement PoC llvm ir highlighting 2018-11-28 14:29:10 +01:00