mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is useful to keep coloring the line correspondence between source and IR, while not polluting the IR with the debug intrinsics. Admittedly, I don't have much of a clue of what's going on here, so I might be missing obvious adaptions (e.g. can we disable this for all non-LLVM compilers for now somehow?). Also, not really a Node.JS testing wizard either... 🤷🏼 Just wanted this really bad for a workshop that's coming up soon ^^ Only tested with my system's default `clang` for now. Fixes #5044 --------- Co-authored-by: Matt Godbolt <matt@godbolt.org>
267 lines
8.3 KiB
JSON
267 lines
8.3 KiB
JSON
{
|
|
"settings": {
|
|
"hasHeaders": true,
|
|
"constrainDragToContainer": false,
|
|
"reorderEnabled": true,
|
|
"selectionEnabled": false,
|
|
"popoutWholeStack": false,
|
|
"blockedPopoutsThrowError": true,
|
|
"closePopoutsOnUnload": true,
|
|
"showPopoutIcon": false,
|
|
"showMaximiseIcon": true,
|
|
"showCloseIcon": true,
|
|
"responsiveMode": "onload",
|
|
"tabOverlapAllowance": 0,
|
|
"reorderOnTabMenuClick": true,
|
|
"tabControlOffset": 10
|
|
},
|
|
"dimensions": {
|
|
"borderWidth": 5,
|
|
"borderGrabWidth": 15,
|
|
"minItemHeight": 10,
|
|
"minItemWidth": 10,
|
|
"headerHeight": 20,
|
|
"dragProxyWidth": 300,
|
|
"dragProxyHeight": 200
|
|
},
|
|
"labels": {
|
|
"close": "close",
|
|
"maximise": "maximise",
|
|
"minimise": "minimise",
|
|
"popout": "open in new window",
|
|
"popin": "pop in",
|
|
"tabDropdown": "additional tabs"
|
|
},
|
|
"content": [
|
|
{
|
|
"type": "row",
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"content": [
|
|
{
|
|
"type": "stack",
|
|
"width": 12.500000000000004,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "codeEditor",
|
|
"componentState": {
|
|
"id": 1,
|
|
"source": "\ntemplate<typename T>\nconcept TheSameAndAddable = requires(T a, T b) {\n {a+b} -> T;\n};\n\ntemplate<TheSameAndAddable T>\nT sum(T x, T y) {\n return x + y;\n}\n\n#include <string>\n\nint main() {\n int z = 0;\n int w;\n\n return sum(z, w);\n}\n",
|
|
"lang": "c++"
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "C++ source #1"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 14.915966386554626,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "compiler",
|
|
"componentState": {
|
|
"compiler": "clang_concepts",
|
|
"source": 1,
|
|
"options": "-std=c++1z -Wuninitialized -O3",
|
|
"filters": {
|
|
"binary": false,
|
|
"execute": false,
|
|
"labels": true,
|
|
"directives": true,
|
|
"commentOnly": true,
|
|
"trim": false,
|
|
"debugCalls": false,
|
|
"intel": true,
|
|
"demangle": true
|
|
},
|
|
"wantOptInfo": true,
|
|
"libs": [],
|
|
"lang": "c++"
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "x86-64 clang (experimental concepts) (Editor #1, Compiler #1) C++"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 10.08403361344538,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "output",
|
|
"componentState": {
|
|
"compiler": 1,
|
|
"editor": 1,
|
|
"wrap": false
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "#1 with x86-64 clang (experimental concepts)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 12.500000000000004,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "ast",
|
|
"componentState": {
|
|
"id": 1,
|
|
"source": "\ntemplate<typename T>\nconcept TheSameAndAddable = requires(T a, T b) {\n {a+b} -> T;\n};\n\ntemplate<TheSameAndAddable T>\nT sum(T x, T y) {\n return x + y;\n}\n\n#include <string>\n\nint main() {\n int z = 0;\n int w;\n\n return sum(z, w);\n}\n",
|
|
"compilerName": "x86-64 clang (experimental concepts)",
|
|
"editorid": 1
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "x86-64 clang (experimental concepts) Ast Viewer (Editor #1, Compiler #1)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 5.507131537242474,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "opt",
|
|
"componentState": {
|
|
"id": 1,
|
|
"source": "\ntemplate<typename T>\nconcept TheSameAndAddable = requires(T a, T b) {\n {a+b} -> T;\n};\n\ntemplate<TheSameAndAddable T>\nT sum(T x, T y) {\n return x + y;\n}\n\n#include <string>\n\nint main() {\n int z = 0;\n int w;\n\n return sum(z, w);\n}\n",
|
|
"compilerName": "x86-64 clang (experimental concepts)",
|
|
"editorid": 1
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "x86-64 clang (experimental concepts) Opt Viewer (Editor #1, Compiler #1)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 15.27879391130244,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "cfg",
|
|
"componentState": {
|
|
"id": 1,
|
|
"editorid": 1,
|
|
"selectedFn": "main: ",
|
|
"pos": {
|
|
"x": 31.664837339408276,
|
|
"y": -134.74509810060746
|
|
},
|
|
"scale": 0.9914309396855399,
|
|
"options": {
|
|
"navigation": true,
|
|
"physics": false
|
|
}
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "x86-64 clang (experimental concepts) Graph Viewer (Editor #1, Compiler #1)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 16.71407455145509,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "compiler",
|
|
"componentState": {
|
|
"compiler": "g82",
|
|
"source": 1,
|
|
"options": "",
|
|
"filters": {
|
|
"binary": false,
|
|
"execute": false,
|
|
"labels": true,
|
|
"directives": true,
|
|
"commentOnly": true,
|
|
"trim": false,
|
|
"debugCalls": false,
|
|
"intel": true,
|
|
"demangle": true
|
|
},
|
|
"libs": [],
|
|
"lang": "c++"
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "x86-64 gcc 8.2 (Editor #1, Compiler #2) C++"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "stack",
|
|
"width": 12.5,
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"activeItemIndex": 0,
|
|
"content": [
|
|
{
|
|
"type": "component",
|
|
"componentName": "gccdump",
|
|
"componentState": {
|
|
"_compilerid": 2,
|
|
"_editorid": 1,
|
|
"selectedPass": "004t.gimple",
|
|
"treeDump": true,
|
|
"rtlDump": true
|
|
},
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "x86-64 gcc 8.2 GCC Tree/RTL Viewer (Editor #1, Compiler #2)"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isClosable": true,
|
|
"reorderEnabled": true,
|
|
"title": "",
|
|
"openPopouts": [],
|
|
"maximisedItemId": null
|
|
}
|