2246 Commits
Author SHA1 Message Date
partouf 25b5eccabf separate user executable parsing 2023-11-01 16:21:00 +01:00
partouf b26a20fb4a refactor line parsing 2023-11-01 16:19:54 +01:00
partouf 8068d3f909 separate graph from summary/details 2023-11-01 16:18:45 +01:00
partouf 9a79a297a8 add runtimetools to cmake 2023-11-01 03:33:54 +01:00
partouf 2e221bd225 refactoring 2023-11-01 02:01:33 +01:00
partouf c07a31626d refactoring 2023-11-01 00:34:21 +01:00
partouf f5ec87baef Merge remote-tracking branch 'origin/main' into exec-with-heaptrack 2023-11-01 00:09:18 +01:00
Patrick Quist 4a8fdbf810 store exec+sandbox types (#5696)
prep for #5533 and #5644
2023-11-01 00:06:47 +01:00
Matt Godbolt d1fb26d896 Capture more information in sentry, per @jeremy-rifkin suggestion (#5693) 2023-10-31 11:05:51 -04:00
Ofek 991c58e18c Fix #5672 (#5691)
The existing `returnInstruction` regex failed both `ret` (with no
arguments) and `pop {r4, pc}`. This small fix solves these.
2023-10-31 10:33:59 -04:00
Ofek 2f73f1d26e Fix #5683 (#5685)
The filtering of directive lines (those starting with dot) is already
performed at `parser.filterData`. All that was missing is dropping empty
"functions".
2023-10-30 20:57:42 -05:00
David Spickett 91ec8f09fa LLVM TableGen: Add trunk compiler and default include path (#5652)
Since trunk will be a moving target, I've left the default compiler as
17.01.

The standard include path will allow for examples that include files
like `include "llvm/TableGen/SearchableTable.td"`, without extra
options. This is useful if you want to create a minimal example of the
records that an existing backend expects to see.
2023-10-30 20:44:14 -05:00
Ofek 47a2493c82 Fix #5464 (#5654)
Nothing fancy, just 2 more special cases for multi-line IR instructions.
2023-10-30 20:36:35 -05:00
Patrick Quist b5fb8086d6 Merge branch 'main' into exec-with-heaptrack 2023-10-31 02:04:04 +01:00
Matt Godbolt edeca232c5 Handle errors in the LLVM transform (#5690)
Previously an error in e.g. YAML parsing would take down the whole
process.

Part of #5686 but doesn't fix the underlying issue.
2023-10-30 19:40:45 -05:00
Steve 2f0b8028c7 Always get version string for dotnet (#5648) 2023-10-30 16:23:54 +01:00
Steve 9daa1a9447 Fix crossgen2 compilation (#5661) 2023-10-30 16:19:04 +01:00
Patrick Quist ea78f75233 Merge branch 'main' into exec-with-heaptrack 2023-10-28 16:42:23 +02:00
Patrick Quist 7975602953 Dont attempt to demangle (llvm-ir) if we cant (#5666) 2023-10-28 16:32:19 +02:00
partouf 213189777a more refactoring 2023-10-27 23:34:39 +02:00
partouf 8977a3b40a refactor 2023-10-27 23:16:49 +02:00
partouf 24a0cba5f8 headers 2023-10-27 22:48:02 +02:00
partouf 6305e7467a add options to runtimetool, rename 2023-10-27 22:44:58 +02:00
partouf e83c1e5afb Merge remote-tracking branch 'origin/main' into exec-with-heaptrack 2023-10-27 20:52:09 +02:00
partouf 6b594f972d use directExec instead of mkfifo module, add prop 2023-10-27 00:37:57 +02:00
Patrick Quist 49252efa92 Execution hotfix (#5659) 2023-10-26 20:46:32 +02:00
partouf 86fbc6dd1a various bugfixes and passing things 2023-10-26 02:10:05 +02:00
Ofek ca7447e185 Fix #5621 (#5637)
I opted to suggest as minor a change as possible, and just special-cased
these `.omp_outlined.` functions (their name can contain an index) in
two places. This is enough to solve the confusing IR/ASM cfg diff, and
have asm separate functions properly.
2023-10-24 15:27:57 -04:00
Ofek f1c562395e Another fix on the way to resolving #5617 (#5646)
Turns out `ArmInstructionSetInfo.unconditionalJumps` and
`ArmInstructionSetInfo.conditionalJumps` are not disjoint, and the order
in which they are tested matters. Specifically an opcode like `b.lt`
provides a match for `ArmInstructionSetInfo.unconditionalJumps` in the
single char `b` and so erroneously returned `InstructionType.jmp`.

One can imagine a better solution in modifying the regexes to make them
properly disjoint, but AFAICT this is good enough, at least to un-break
the ARM CFG.
2023-10-24 15:27:06 -04:00
partouf 1d10c41a75 add widget and things 2023-10-24 19:32:06 +02:00
partouf b4ccc6cb22 Merge branch 'main' into exec-with-heaptrack 2023-10-24 17:36:33 +02:00
partouf c6c2404b94 more types 2023-10-24 17:35:50 +02:00
partouf 3acaad6170 undo unnessecary filter 2023-10-24 17:33:31 +02:00
partouf 156d7d99a3 Merge branch 'main' into exec-with-heaptrack 2023-10-24 17:31:35 +02:00
partouf 5ef2fb1025 add types 2023-10-24 17:30:36 +02:00
partouf b93fdb3ca3 fix types 2023-10-24 17:24:07 +02:00
partouf 0ead74ec8a formatting 2023-10-24 17:18:59 +02:00
partouf 809547f9de lintfixes etc 2023-10-24 04:18:34 +02:00
partouf aeb2210773 working version 2023-10-24 03:25:57 +02:00
David Spickett 5f3db78dce Add the LLVM TableGen language (#5629)
LLVM TableGen is used to generate complex output files in the llvm
project. A generic description of classes and definitions produces
"records" that can then be walked by a TableGen backend to produce
things like C++ code, configuration files, etc.

The biggest examples are LLVM's assembler and disassembler where all the
targets' instructions are defined in TableGen.

https://llvm.org/docs/TableGen/ProgRef.html

An example:
```
class Register<int _size, string _alias=""> {
    int size = _size;
    string alias = _alias;
}
def X0: Register<8> {}
def X29: Register<8, "frame pointer"> {}
```
```
------------- Classes -----------------
class Register<int Register:_size = ?, string Register:_alias = ""> {
  int size = Register:_size;
  string alias = Register:_alias;
}
------------- Defs -----------------
def X0 {        // Register
  int size = 8;
  string alias = "";
}
def X29 {       // Register
  int size = 8;
  string alias = "frame pointer";
}
```

It's often a pain point for people new to LLVM so having a quick way to
experiment would be a great benefit for the community (we have a Jupyter
kernel which is good but not as simple as Compiler Explorer).

The compiler for TableGen is `llvm-tblgen`. This comes with most release
builds of LLVM in /bin along with clang and the others. Its default is
to output a text dump of the records defined so that's what I've used
here. This is not executable code so I've disabled the features related
to that.

A user could pass options to `llvm-tblgen` to produce text in a format
other than this, C++ code or JSON for example. However this text dump is
the main use case.

I've re-used an existing clang install, since that includes
`llvm-tblgen` in `bin/`. I just added the 17.01 version for this first
change.

Syntax highlighting is a mix of the Fortran and Ada configuration,
following the language spec I linked above. Though I am very new to that
so it is likely incomplete.
2023-10-23 19:59:46 -05:00
Steve c5ffd00598 Allow disabling diffable asm manually (#5585)
When we see JitDisasmDiffable being set manually, we can stop
automatically emitting JitDisasmDiffable.
2023-10-23 19:53:09 -05:00
partouf 04f8e9f57f attempt 2023-10-22 20:15:24 +02:00
Cassandra Beckley d23bbc6596 Add AST viewer support for HLSL/DXC (#5627)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
Since DXC is a fork of Clang from LLVM 3.7, the AST can be generated and
parsed in a manner similar to the Clang AST.
2023-10-22 12:17:24 +02:00
Jeremy 394d29193a Fix another ReDoS vulnerability, turns out this was exploitable too with the same input 2023-10-21 00:52:59 -04:00
Jeremy 6f6bc6aa35 Fix ReDoS vulnerability in the z88dk assembly parser, regex was exploitable with relatively short inputs and could be used to freeze a node for extended periods of time 2023-10-20 23:15:15 -04:00
Matt Godbolt 37ce1f56ed Fix test 2023-10-19 08:09:30 -05:00
Matt Godbolt 18b0b8edd3 Thank you @partouf...I spend too much time doing python these days... 2023-10-19 07:52:02 -05:00
Matt GodboltandNick DeMarco 458fa247f8 Hylo fixes; specify PATH, and fix name (#5625)
-  Add a general extraPaths for compilers and use it to let Hylo find clang++

Co-authored-by: Nick DeMarco <nickpdemarco@gmail.com>
2023-10-18 21:59:42 -05:00
Matt Godbolt c115a45ecb Final fixups to get Hylo execution and binary working 2023-10-18 15:54:55 -05:00
nickpdemarco 5e1b320ee2 Update path from main 2023-10-18 16:40:25 -04:00