Files
compiler-explorer/static
OfekandMats Jun 679b908c39 Tooltips for llvm opt output (#7036)
This does fix #7019, but unfortunately in IR lines like -
```
  %2 = mul nsw i32 %0, %0
```
Monaco assigns both the `mul` and `nsw` tokens with type
'operators.llvm-ir' (handled as asm keyword by this PR) and requests the
backend for their docs. Only `mul` is an actual documented keyword -
`nsw` is just a modifier and the request fails with errors like `GET
http://localhost:10240/api/asm/llvm/nsw 404 (Not Found)` thrown at
[getAssemblyDocumentation](https://github.com/compiler-explorer/compiler-explorer/blob/63dd5e35a5856bcd1670b7b1cf21ffd854928ef7/static/api/api.ts#L50-L51).

This draft PR is meant for discussion. Would it be enough eg to wrap the
request in `getAssemblyDocumentation` in a try-catch? Maybe the right
thing to do would be to intervene in the monarch parsing for llvm-ir?
Other ideas that I'm missing?

---------

Co-authored-by: Mats Jun <mats@jun.codes>
2024-10-28 19:41:38 +09:00
..
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-26 10:58:30 +03:00
2023-08-15 22:16:36 -05:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-01-15 18:31:46 -06:00
2024-04-09 20:20:18 -05:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00
2024-10-25 12:19:04 +03:00