aboutsummaryrefslogtreecommitdiff
path: root/lib/parsers/llvm-pass-dump-parser.ts
diff options
context:
space:
mode:
authorPatrick Quist <partouf@gmail.com>2023-10-15 18:44:27 +0200
committerGitHub <noreply@github.com>2023-10-15 18:44:27 +0200
commit31af117d68d8f1b4640235b4974aa406df7e6d54 (patch)
tree377eb9d85c1231563544295afb1bac7e1fd2028b /lib/parsers/llvm-pass-dump-parser.ts
parent4481bd0f3a3aee987462e592d83fbc1b02f2c7f7 (diff)
downloadcompiler-explorer-31af117d68d8f1b4640235b4974aa406df7e6d54.tar.gz
compiler-explorer-31af117d68d8f1b4640235b4974aa406df7e6d54.zip
support new IR Dump header (#5603)gh-9085
Diffstat (limited to 'lib/parsers/llvm-pass-dump-parser.ts')
-rw-r--r--lib/parsers/llvm-pass-dump-parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parsers/llvm-pass-dump-parser.ts b/lib/parsers/llvm-pass-dump-parser.ts
index b18d3d85b..0729bcc82 100644
--- a/lib/parsers/llvm-pass-dump-parser.ts
+++ b/lib/parsers/llvm-pass-dump-parser.ts
@@ -117,7 +117,7 @@ export class LlvmPassDumpParser {
// Ir dump headers look like "*** IR Dump After XYZ ***"
// Machine dump headers look like "# *** IR Dump After XYZ ***:", possibly with a comment or "(function: xyz)"
// or "(loop: %x)" at the end
- this.irDumpHeader = /^\*{3} (.+) \*{3}(?:\s+\((?:function: |loop: )(%?[\w$.]+)\))?(?:;.+)?$/;
+ this.irDumpHeader = /^;?\s?\*{3} (.+) \*{3}(?:\s+\((?:function: |loop: )(%?[\w$.]+)\))?(?:;.+)?$/;
this.machineCodeDumpHeader = /^# \*{3} (.+) \*{3}:$/;
// Ir dumps are "define T @_Z3fooi(...) . .. {" or "# Machine code for function _Z3fooi: <attributes>"
// Some interesting edge cases found when testing: