* OCaml properties fixes
- Improve defaults by adding local and system versions
- Make no assumptions about whether local and system are the same
- Enable OPAM workflows which rely on updating PATH
- Fix version flag
- Fix objdumper
* OCaml output refactoring
* Add an arg parser for OCaml
Derived from Pascal (for now)
* Rename default OCaml compiler ids
* Add alias of old OCaml default compiler id
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
A new compiler type 'win32-vc6' has been added, which uses a slightly
modified version of asm-parser-vc to handle assembly output differences
from current Visual Studio output.
In particular, MSVC6 does not output a comment line containing the
function's compile flags prior to the function body. The win32-vc parser
uses this to identify the start of a function and initialize
currentFunction. Instead, we use the regex that identifies a function
name to do this. Otherwise, a TypeError occurs trying to set
currentFunction.name when currentFunction is null.
In addition, MSVC6 only outputs a file comment once (presumably, until a
function from a different file is output). So instead of initializing
currentFunction.file to undefined, it is set to currentFile instead.
This should get set on the first function found in the file, but if not
it is initialized to undefined, so the behavior there would be the same.
Finally, the _DATA and _TLS segments are handled as well as some
additional miscellaneous directives.
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config
Co-authored-by: Matt Godbolt <matt@godbolt.org>
Changes:
- ocaml.default.properties:
- add the relevant flags for execution and emitting binaries
- add nicer version number reporting
- let CE know `objdump` can be used on ocaml objects
- ocaml.js:
- update optionsForFilter for both executable and object handling
- override the getter for executable to work within ocamlopt context
* Add assembly documentation endpoint for Java bytecode
* Upstream asm docenizer for Java
* Remove jvms.html from gitattributes as it is never checked into vcs
* EOF line for docenizer-java.js
* Use find-node to locate nodejs
* Format code according to style guide
* Extract device code from assembly files.
This commit by itself does not actually add any viewing panes for the
extracted device code, nor does it provide any means to provide
device-specific postprocessing steps.
* Add a rudimentary device view.
This doesn't handle multiple device outputs correctly at the moment, and
it provides no opportunity to view device code differently from
non-device code for now.
* Lint issues
* Some more WIP getting it working.
* Add device extraction code
* More fixes, and keep state
Co-authored-by: Joshua Cranmer <joshua.cranmer@intel.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
* Adds configs for nsjail cfg and firejail profile paths
As suggested by @apmorton
Issue #2845
* Add & improve exec tests with new config changes
* Remove stub. Exports are inmutable so no replacing the internal calls
* Resort back to calling the mapping function in the tests too
* But don't call it in the one function that is testing it
* Expand reach of .local gitignore
* Address @apmorton PR review
The tests are now a mess, so I won't merge,
just in case I get shown how to do it properly
* Allow a tool to have a separate monaco editor for it's stdinput
* Fix bugs identified during code review.
- Selection wasn't being persisted in state.
Needed to do some kind of ugly things to make this work...
- Closing and re-opening the panel wasn't persisting the input!
- getToolInputViewWith -> getToolInputView
- remove _currentDecoration
* Treat data definitions in the middle of functions as "strong"
Things like ARM jump tables put important data inline within a function. Such
data should be treated as a "strong" reference (e.g. a root use). For example:
```
sub r3, r0, #65
cmp r3, #19
ldrls pc, [pc, r3, asl #2]
b .L7
.word .L8
.word .L7
.word .L6
.word .L7
....etc...
.L7: some things
.L8: some other things
```
Without this change, the `.L8` label would be dropped as unused. But it's implicitly used
by the sequence of `.word`s in the middle of the function.
Closes#2788
* Keep curly bracket style of existing if-else block
Co-authored-by: RabsRincon <ruben@rinconblanco.es>
* Added support for HIP compilation for AMD GPUs.
At the moment it only supports stand-alone compilation w/o ROCm SDK.
* Enable barebones HIP compilation.
Clang by itself is good enough to compile simple kernels that do not need ROCm
SDK headers and bitcode libraries.
Closes#2760
GCC backend for rustc is still in a very early state.
It is in the process of being merged in main rustc source:
https://github.com/rust-lang/compiler-team/issues/442
Currently reusing main rust compiler class and simply remove -Cllvm= argument if
any (only for intel asm syntax).
Disabling binary until the result is more friendly (currently binary are too
big).
refs #2683
The KVX assembly uses ;; as the bundle separator, which can be a problem to
parse as ; is also commonly used as a comment marker.
Latest compiler version also adds cycle information for opt level >= 1, which
confuses the current comment filter that treats the bundle separator as comment.
Tune the regex to treat the following :
addd $r12 = $r12, -96
get $r16 = $ra
;; # (end cycle 0)
as non-comment. The ';; #' is special-cased as non-comment.