/dports/devel/hyperscan/hyperscan-5.4.0/src/nfa/ |
H A D | limex_dump.cpp | 169 if (!limex->accelCount) { in dumpAccel() 227 const u8 *squashMask = (const u8 *)limex + limex->squashOffset; in dumpSquash() 241 ((const char *)limex + limex->exceptionOffset); in getExceptionTable() 294 limex->shiftCount, limex->exceptionCount); in dumpLimexText() 320 const u8 *topMask = (const u8 *)limex + limex->topOffset; in dumpLimexText() 331 dumpSquash(limex, f); in dumpLimexText() 334 dumpLimexReachMasks(size, (const u8 *)limex + sizeof(*limex) /* reach*/, in dumpLimexText() 337 dumpAccepts(limex, f); in dumpLimexText() 407 const u8 *reach = (const u8 *)limex + sizeof(*limex); in dumpVertexDotInfo() 411 const u8 *topMask = (const u8 *)limex + limex->topOffset; in dumpVertexDotInfo() [all …]
|
H A D | limex_state_impl.h | 58 = (const ENG_STATE_T *)((const char *)limex + sizeof(*limex)); in get_reach_table() 65 const ENG_STATE_T *reach = get_reach_table(limex); in REACHMASK_FN() 66 return LOAD_FROM_ENG(&reach[limex->reachMap[key]]); in REACHMASK_FN() 77 if (!(limex->flags & LIMEX_FLAG_COMPRESS_STATE)) { in COMPRESS_FN() 80 PARTIAL_STORE_FN(dest, a_src, limex->stateSize); in COMPRESS_FN() 84 STATE_T reachmask = REACHMASK_FN(limex, key); in COMPRESS_FN() 89 if (limex->flags & LIMEX_FLAG_COMPRESS_MASKED) { in COMPRESS_FN() 93 memset(dest, 0, limex->stateSize); in COMPRESS_FN() 111 if (!(limex->flags & LIMEX_FLAG_COMPRESS_STATE)) { in EXPAND_FN() 114 *dest = PARTIAL_LOAD_FN(src, limex->stateSize); in EXPAND_FN() [all …]
|
H A D | limex_runtime_impl.h | 258 (const u8 *)((const char *)limex + limex->accelTableOffset); in STREAM_FN() 260 (const union AccelAux *)((const char *)limex + limex->accelAuxOffset); in STREAM_FN() 426 if (!limex->repeatCount) { in COMPRESS_REPEATS_FN() 471 COMPRESS_FN(limex, dest, src, key); in JOIN() 478 if (!limex->repeatCount) { in EXPAND_REPEATS_FN() 518 EXPAND_FN(limex, dest, src, key); in JOIN() 699 EXPIRE_ESTATE_FN(limex, &ctx, sp); in JOIN() 820 EXPIRE_ESTATE_FN(limex, &ctx, sp); in JOIN() 901 EXPIRE_ESTATE_FN(limex, &ctx, sp); in JOIN() 932 REPORTCURRENT_FN(limex, q); in JOIN() [all …]
|
H A D | limex_common_impl.h | 88 if (!limex->repeatCount) { in SQUASH_UNTUG_BR_FN() 122 assert(limex); in PROCESS_ACCEPTS_IMPL_FN() 196 assert(limex && s); in TESTEOD_FN() 199 if (!limex->acceptEodCount) { in TESTEOD_FN() 224 assert(limex && q); in REPORTCURRENT_FN() 260 assert(n < limex->topCount); in TOPN_FN() 262 (const ENG_STATE_T *)((const char *)limex + limex->topOffset); in TOPN_FN() 270 assert(limex); in EXPIRE_ESTATE_FN() 273 if (!limex->repeatCount) { in EXPIRE_ESTATE_FN() 337 assert(limex); in LIMEX_INACCEPT_FN() [all …]
|
H A D | limex_compile.cpp | 1275 limex->flags |= flag; in setLimexFlag() 1292 maskFill(limex->compressMask, 0xff); in findStateSize() 1710 u32 stateSize = limex->stateSize; in allocState() 1977 limex->exceptionCount = ecount; in writeExceptions() 2056 limex->topOffset = topsOffset; in writeTopMasks() 2119 maskClear(limex->accelCompare); in writeAccel() 2325 assert(ISALIGNED(limex)); in generateNfa() 2338 limex->shiftCount = shiftCount; in generateNfa() 2339 writeShiftMasks(args, limex); in generateNfa() 2347 findStateSize(args, limex); in generateNfa() [all …]
|
H A D | limex_accel.c | 99 size_t doAccel128(const m128 *state, const struct LimExNFA128 *limex, in doAccel128() argument 105 m128 accelPerm = limex->accelPermute; in doAccel128() 106 m128 accelComp = limex->accelCompare; in doAccel128() 111 size_t doAccel256(const m256 *state, const struct LimExNFA256 *limex, in doAccel256() argument 117 m256 accelPerm = limex->accelPermute; in doAccel256() 118 m256 accelComp = limex->accelCompare; in doAccel256() 130 size_t doAccel384(const m384 *state, const struct LimExNFA384 *limex, in doAccel384() argument 136 m384 accelPerm = limex->accelPermute; in doAccel384() 137 m384 accelComp = limex->accelCompare; in doAccel384() 152 m512 accelPerm = limex->accelPermute; in doAccel512() [all …]
|
H A D | limex_exceptional.h | 99 const struct IMPL_NFA_T *limex, in RUN_EXCEPTION_FN() argument 127 (const struct NFARepeatInfo *)((const char *)limex + in RUN_EXCEPTION_FN() 166 (const ReportID *)((const char *)limex + e->reports); in RUN_EXCEPTION_FN() 214 const struct IMPL_NFA_T *limex, const EXCEPTION_T *exceptions, in PE_FN() argument 242 if (likely(limex->flags & LIMEX_FLAG_EXTRACT_EXP)) { in PE_FN() 245 emask = and512(emask, load_m512(&limex->exceptionAndMask)); in PE_FN() 246 u64a word = eq512mask(emask, load_m512(&limex->exceptionBitMask)); in PE_FN() 256 limex, offset, ctx, &new_cache, &cacheable, in PE_FN() 270 memcpy(emask_chunks, &limex->exceptionMask, sizeof(STATE_T)); in PE_FN() 312 memcpy(emask_chunks, &limex->exceptionMask, sizeof(STATE_T)); in PE_FN() [all …]
|
H A D | limex_accel.h | 63 size_t doAccel128(const m128 *s, const struct LimExNFA128 *limex, 67 size_t doAccel256(const m256 *s, const struct LimExNFA256 *limex, 71 size_t doAccel384(const m384 *s, const struct LimExNFA384 *limex, 75 size_t doAccel512(const m512 *s, const struct LimExNFA512 *limex,
|
H A D | nfa_build_util.cpp | 88 const T *limex = (const T *)getImplNfa(nfa); in has_accel_limex() local 89 return limex->accelCount; in has_accel_limex() 95 const T *limex = (const T *)getImplNfa(nfa); in has_repeats_limex() local 96 return limex->repeatCount; in has_repeats_limex() 103 const T *limex = (const T *)getImplNfa(nfa); in has_repeats_other_than_firsts_limex() local 104 const char *ptr = (const char *)limex; in has_repeats_other_than_firsts_limex() 108 for (u32 i = 0; i < limex->repeatCount; i++) { in has_repeats_other_than_firsts_limex() 139 const typename NFATraits<t>::implNFA_t *limex = in getDescriptionLimEx() local 142 oss << NFATraits<t>::name << "/" << limex->exceptionCount; in getDescriptionLimEx() 143 if (limex->repeatCount) { in getDescriptionLimEx() [all …]
|
H A D | limex_runtime.h | 152 const struct LimExNFA##size *limex, unsigned num) { \ 153 assert(num < limex->repeatCount); \ 155 const char *base = (const char *)limex; \ 156 const u32 *repeatOffset = (const u32 *)(base + limex->repeatOffset); \
|
H A D | limex_native.c | 75 const struct LimExNFA32 *limex, in processExceptional32() argument 104 u32 idx = rank_in_mask32(limex->exceptionMask, bit); in processExceptional32() 106 if (!runException32(e, s, succ, &local_succ, limex, offset, ctx, in processExceptional32()
|