diff options
author | Patrick Quist <partouf@gmail.com> | 2023-10-15 18:44:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 18:44:27 +0200 |
commit | 31af117d68d8f1b4640235b4974aa406df7e6d54 (patch) | |
tree | 377eb9d85c1231563544295afb1bac7e1fd2028b /lib/parsers/llvm-pass-dump-parser.ts | |
parent | 4481bd0f3a3aee987462e592d83fbc1b02f2c7f7 (diff) | |
download | compiler-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.ts | 2 |
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: |