Fix sheng64 compile issue in clang and in DEBUG_OUTPUT mode on SKX.

This commit is contained in:
Chang, Harry 2020-08-31 13:27:22 +00:00 committed by Hong, Yang A
parent 27ab2e086d
commit d8dc1ad685

View File

@ -302,6 +302,7 @@ void dumpShuffleMask(const u8 chr, const u8 *buf, unsigned sz) {
DEBUG_PRINTF("chr %3u: %s\n", chr, o.str().c_str()); DEBUG_PRINTF("chr %3u: %s\n", chr, o.str().c_str());
} }
#if defined (HAVE_AVX512VBMI)
static really_inline static really_inline
void dumpShuffleMask32(const u8 chr, const u8 *buf, unsigned sz) { void dumpShuffleMask32(const u8 chr, const u8 *buf, unsigned sz) {
stringstream o; stringstream o;
@ -324,6 +325,7 @@ void dumpShuffleMask64(const u8 chr, const u8 *buf, unsigned sz) {
DEBUG_PRINTF("chr %3u: %s\n", chr, o.str().c_str()); DEBUG_PRINTF("chr %3u: %s\n", chr, o.str().c_str());
} }
#endif #endif
#endif
static static
void fillAccelOut(const map<dstate_id_t, AccelScheme> &accel_escape_info, void fillAccelOut(const map<dstate_id_t, AccelScheme> &accel_escape_info,
@ -335,8 +337,8 @@ void fillAccelOut(const map<dstate_id_t, AccelScheme> &accel_escape_info,
template <typename T> template <typename T>
static static
u8 getShengState(dstate &state, dfa_info &info, u8 getShengState(UNUSED dstate &state, UNUSED dfa_info &info,
map<dstate_id_t, AccelScheme> &accelInfo) { UNUSED map<dstate_id_t, AccelScheme> &accelInfo) {
return 0; return 0;
} }
@ -412,10 +414,11 @@ void fillAccelAux(struct NFA *n, dfa_info &info,
template <typename T> template <typename T>
static static
void populateBasicInfo(struct NFA *n, dfa_info &info, void populateBasicInfo(UNUSED struct NFA *n, UNUSED dfa_info &info,
map<dstate_id_t, AccelScheme> &accelInfo, u32 aux_offset, UNUSED map<dstate_id_t, AccelScheme> &accelInfo,
u32 report_offset, u32 accel_offset, u32 total_size, UNUSED u32 aux_offset, UNUSED u32 report_offset,
u32 dfa_size) { UNUSED u32 accel_offset, UNUSED u32 total_size,
UNUSED u32 dfa_size) {
} }
template <> template <>
@ -555,8 +558,8 @@ void fillSingleReport(NFA *n, ReportID r_id) {
template <typename T> template <typename T>
static static
bool createShuffleMasks(T *s, dfa_info &info, bool createShuffleMasks(UNUSED T *s, UNUSED dfa_info &info,
map<dstate_id_t, AccelScheme> &accelInfo) { UNUSED map<dstate_id_t, AccelScheme> &accelInfo) {
return true; return true;
} }