[PATCH] D105615: [llvm-exegesis] Fix compilation with old libpfm versions.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 11 22:41:01 PDT 2021
courbet added inline comments.
================
Comment at: llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp:19-23
#ifdef HAVE_LIBPFM
#include "perfmon/perf_event.h"
#include "perfmon/pfmlib.h"
#include "perfmon/pfmlib_perf_event.h"
#endif // HAVE_LIBPFM
----------------
oontvoo wrote:
> 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)
The issue is only "perfmon/perf_event.h", which is what `LIBPFM_HAS_FIELD_CYCLES` tests: https://reviews.llvm.org/D84076
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105615/new/
https://reviews.llvm.org/D105615
More information about the llvm-commits
mailing list