Page MenuHomePhabricator

[DWARFYAML][unittest] Refactor parseDWARFYAML().
ClosedPublic

Authored by Higuoxing on Jul 6 2020, 5:59 AM.

Details

Summary

In this change, parseDWARFYAML() is refactored to be able to parse
YAML decription into different data structures. We don't have to craft
the whole DWARF structure for a small test in the future.

Diff Detail

Unit TestsFailed

TimeTest
60 mslinux > Polly.Isl/CodeGen/MemAccess::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; opt -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/mnt/disks/ssd0/agent/llvm-project/polly/test/Isl/CodeGen/MemAccess -polly-codegen-verify -polly-codegen -polly-codegen-generate-expressions=false -S < /mnt/disks/ssd0/agent/llvm-project/polly/test/Isl/CodeGen/MemAccess/generate-all.ll | FileCheck /mnt/disks/ssd0/agent/llvm-project/polly/test/Isl/CodeGen/MemAccess/generate-all.ll -check-prefix=SCEV
70 mslinux > Polly.ScopInfo::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; opt -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/mnt/disks/ssd0/agent/llvm-project/polly/test/ScopInfo -polly-codegen-verify -analyze -polly-scops -S < /mnt/disks/ssd0/agent/llvm-project/polly/test/ScopInfo/multidim_srem.ll | FileCheck /mnt/disks/ssd0/agent/llvm-project/polly/test/ScopInfo/multidim_srem.ll
10,390 mslinux > libomp.env::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -fopenmp -pthread -fno-experimental-isel -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/env/kmp_set_dispatch_buf.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/env/Output/kmp_set_dispatch_buf.c.tmp -lm -latomic && env KMP_DISP_NUM_BUFFERS=0 /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/env/Output/kmp_set_dispatch_buf.c.tmp
1,520 mslinux > libomp.worksharing/for::Unknown Unit Message ("")
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -fopenmp -pthread -fno-experimental-isel -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test -I /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/src -L /mnt/disks/ssd0/agent/llvm-project/build/lib -I /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/ompt /mnt/disks/ssd0/agent/llvm-project/openmp/runtime/test/worksharing/for/kmp_set_dispatch_buf.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/worksharing/for/Output/kmp_set_dispatch_buf.c.tmp -lm -latomic && /mnt/disks/ssd0/agent/llvm-project/build/projects/openmp/runtime/test/worksharing/for/Output/kmp_set_dispatch_buf.c.tmp 7

Event Timeline

Higuoxing created this revision.Jul 6 2020, 5:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2020, 5:59 AM
jhenderson accepted this revision.Jul 7 2020, 2:29 AM

Makes sense. LGTM.

This revision is now accepted and ready to land.Jul 7 2020, 2:29 AM
This revision was automatically updated to reflect the committed changes.