This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Test JITLink debug support plugin for ELF x86-64 with lli
AbandonedPublic

Authored by sgraenitz on Feb 23 2021, 2:34 PM.

Details

Reviewers
lhames
dblaikie
Summary

This patch adds a test for the core debug support functionality in D97335. It runs a program in lli that reads
its own __jit_debug_descriptor and dumps information about it. The test then checks that the output matches the expected
descriptor info.

For now it only tests Orc with JITLink in-process, but once debug support in lli got out of the teething phase this should be applicable for JITLink out-of-process and RuntimeDyld (and even MCJIT). I also expect the approach to be well suited for covering more complex scenarios (multiple translation units, lazy JITing, etc.) in the future.

Diff Detail

Event Timeline

sgraenitz requested review of this revision.Feb 23 2021, 2:34 PM
sgraenitz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2021, 2:34 PM
sgraenitz added a comment.EditedFeb 23 2021, 2:35 PM

Tested on Debian

sgraenitz abandoned this revision.Feb 26 2021, 10:31 AM

I guess, I won't get it to work from IR cross platform and platform-specific versions appear a lot less attractive. Will have to re-think the test strategy.