Page MenuHomePhabricator

[DebugInfo] Mark OpenMP generated functions as artificial
Needs ReviewPublic

Authored by alok on Oct 10 2021, 11:03 PM.

Details

Summary

The OpenMP generates many functions which are not in user program.

Example: "captured_stmt_debug_", "captured_stmt", ".omp_outlined._debug__",
".omp_task_entry.", ".omp_outlined.", ".omp_outlined..1"

Current patch marks these all as artificial.

Diff Detail

Event Timeline

alok created this revision.Oct 10 2021, 11:03 PM
alok requested review of this revision.Oct 10 2021, 11:03 PM
Herald added a project: Restricted Project. · View Herald Transcript

This looks reasonable to me.

Might not hurt to have some negative test cases too - like something that is a VarDecl but has NoStub DynamicInitKind?