Do not try include perfmon/perf_event.h when we are not sure that it
exists.
Fixes PR51017.
Paths
| Differential D105615
[llvm-exegesis] Fix compilation with old libpfm versions. ClosedPublic Authored by courbet on Jul 8 2021, 1:54 AM.
Details Summary Do not try include perfmon/perf_event.h when we are not sure that it Fixes PR51017.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 11 2021, 7:00 PM
Closed by commit rG04f8ffd98306: [llvm-exegesis] Fix compilation with old libpfm versions. (authored by courbet). · Explain WhyJul 11 2021, 10:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 357165 llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp
|
I'm not sure why this block isn't enough to prevent the inclusion of all libpfm stuff.
(AFAIK, LIBPFM_HAS_FIELD_CYCLES signals a subset of features whereas HAVE_LIBPFM tells you if the library exsits)