[PATCH] D44847: [profile] Fix value profile runtime merging issues

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 30 14:17:58 PDT 2018


davidxl added inline comments.


================
Comment at: lib/profile/InstrProfilingValue.c:135
 
-COMPILER_RT_VISIBILITY void
-__llvm_profile_instrument_target(uint64_t TargetValue, void *Data,
-                                 uint32_t CounterIndex) {
+static inline __attribute__((always_inline)) void
+instrumentTargetValueImpl(uint64_t TargetValue, void *Data,
----------------
need to put the __attribute__((..)) into InstrProfilingPort.h under __GNUC__ section.


https://reviews.llvm.org/D44847





More information about the llvm-commits mailing list