Skip to content

Commit

Permalink
Improve fix to account for .omp_task_entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon committed Oct 23, 2023
1 parent 3cc1e90 commit 605b105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cfg/cfg-parsers/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class BaseCFGParser {
}

protected isFunctionName(line: AssemblyLine) {
return line.text.trim().indexOf('.') !== 0 || line.text.startsWith('.omp_outlined.');
return line.text.trim().indexOf('.') !== 0 || line.text.startsWith('.omp_');
}

protected getAsmDirective(txt: string) {
Expand Down Expand Up @@ -167,7 +167,7 @@ export class BaseCFGParser {
}

protected isFunctionEnd(x: string) {
return x[0] !== ' ' && (x[0] !== '.' || x.startsWith('.omp_outlined.')) && x.includes(':');
return x[0] !== ' ' && (x[0] !== '.' || x.startsWith('.omp_')) && x.includes(':');
}

protected isBasicBlockEnd(inst: string, prevInst: string) {
Expand Down

0 comments on commit 605b105

Please sign in to comment.