Commit Graph
15 Commits
Author SHA1 Message Date
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
Ofek aa4db15ea7 Add tests to LlvmPassDumpParser intra-line filters (#4133) 2022-10-10 15:54:03 +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
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
RabsRincon f5c199a196 Add test to ensure libraries are properly added
Reformat some others to use before/after
2020-04-09 02:39:08 +02:00
Alessandro Vergani e1266bb609 Fix a small error in llvm-ir-parser-tests.js (#1629)
This removes the 'error: Tried to pass maxLinesOfAsm as a language ID'.
Those are printed the test creates a LlvmIrParser.
2019-10-11 10:46:34 -04: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 a056f27b27 [LLVM] Add tests for directive detection 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 d384986b3a [LLVM] Implement PoC llvm ir highlighting 2018-11-28 14:29:10 +01:00