[PATCH] D48879: [XRay][test-suite] Benchmarks for profiling mode implementation

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 16 01:55:20 PDT 2018


dberris added a comment.

In https://reviews.llvm.org/D48879#1202052, @hans wrote:

> In https://reviews.llvm.org/D48879#1199290, @dberris wrote:
>
> > Either that or the version that's in 7.0 doesn't have some recent changes to profiling mode. I have been testing with the latest from trunk.
>
>
> I tried using trunk, but got compile errors:
>
>   /work/test-suite/MicroBenchmarks/XRay/ProfilingMode/profiling-bench.cc:33:7: error: use of undeclared identifier '__xray_log_init_mode'; did you mean '__xray_log_register_mode'?
>     if (__xray_log_init_mode("xray-profiling", "no_flush=true") !=
>         ^~~~~~~~~~~~~~~~~~~~
>         __xray_log_register_mode
>   /work/llvm/build.release/lib/clang/8.0.0/include/xray/xray_log_interface.h:226:23: note: '__xray_log_register_mode' declared here
>   XRayLogRegisterStatus __xray_log_register_mode(const char *Mode,
>                         ^
>   /work/test-suite/MicroBenchmarks/XRay/ProfilingMode/profiling-bench.cc:33:46: error: no viable conversion from 'const char [14]' to 'XRayLogImpl'
>     if (__xray_log_init_mode("xray-profiling", "no_flush=true") !=
>                                                ^~~~~~~~~~~~~~~
>   /work/llvm/build.release/lib/clang/8.0.0/include/xray/xray_log_interface.h:155:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const XRayLogImpl &' for 1st argument
>   struct XRayLogImpl {
>          ^
>   /work/llvm/build.release/lib/clang/8.0.0/include/xray/xray_log_interface.h:155:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const char [14]' to 'XRayLogImpl &&' for 1st argument
>   /work/llvm/build.release/lib/clang/8.0.0/include/xray/xray_log_interface.h:227:60: note: passing argument to parameter 'Impl' here
>                                                  XRayLogImpl Impl);
>                                                              ^
>   2 errors generated.
>


That's... not right -- did you also update the compiler-rt subproject?


Repository:
  rT test-suite

https://reviews.llvm.org/D48879





More information about the llvm-commits mailing list