Home
last modified time | relevance | path

Searched refs:MatchState (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DSampleProfileMatcher.h39 enum class MatchState { enum
59 StringMap<std::unordered_map<LineLocation, MatchState, LineLocationHash>>
171 bool isMismatchState(const enum MatchState &State) { in isMismatchState()
172 return State == MatchState::InitialMismatch || in isMismatchState()
173 State == MatchState::UnchangedMismatch || in isMismatchState()
174 State == MatchState::RemovedMatch; in isMismatchState()
177 bool isInitialState(const enum MatchState &State) { in isInitialState()
178 return State == MatchState::InitialMatch || in isInitialState()
179 State == MatchState::InitialMismatch; in isInitialState()
182 bool isFinalState(const enum MatchState &State) { in isFinalState()
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlstrlib.c209 typedef struct MatchState { struct
220 } MatchState; argument
224 static const char *match (MatchState *ms, const char *s, const char *p);
237 static int check_capture (MatchState *ms, int l) { in check_capture()
245 static int capture_to_close (MatchState *ms) { in capture_to_close()
253 static const char *classend (MatchState *ms, const char *p) { in classend()
320 static int singlematch (MatchState *ms, const char *s, const char *p, in singlematch()
336 static const char *matchbalance (MatchState *ms, const char *s, in matchbalance()
357 static const char *max_expand (MatchState *ms, const char *s, in max_expand()
372 static const char *min_expand (MatchState *ms, const char *s, in min_expand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfileMatcher.cpp499 CallsiteMatchStates.emplace(ProfileLoc, MatchState::InitialMatch); in recordCallsiteMatchStates()
501 if (It->second == MatchState::InitialMatch) in recordCallsiteMatchStates()
502 It->second = MatchState::UnchangedMatch; in recordCallsiteMatchStates()
503 else if (It->second == MatchState::InitialMismatch) in recordCallsiteMatchStates()
504 It->second = MatchState::RecoveredMismatch; in recordCallsiteMatchStates()
516 CallsiteMatchStates.emplace(Loc, MatchState::InitialMismatch); in recordCallsiteMatchStates()
520 if (It->second == MatchState::InitialMismatch) in recordCallsiteMatchStates()
521 It->second = MatchState::UnchangedMismatch; in recordCallsiteMatchStates()
522 else if (It->second == MatchState::InitialMatch) in recordCallsiteMatchStates()
523 It->second = MatchState::RemovedMatch; in recordCallsiteMatchStates()
[all …]
/freebsd/contrib/lua/src/
H A Dlstrlib.c358 typedef struct MatchState { struct
369 } MatchState; argument
373 static const char *match (MatchState *ms, const char *s, const char *p);
386 static int check_capture (MatchState *ms, int l) { in check_capture()
395 static int capture_to_close (MatchState *ms) { in capture_to_close()
403 static const char *classend (MatchState *ms, const char *p) { in classend()
470 static int singlematch (MatchState *ms, const char *s, const char *p, in singlematch()
486 static const char *matchbalance (MatchState *ms, const char *s, in matchbalance()
506 static const char *max_expand (MatchState *ms, const char *s, in max_expand()
521 static const char *min_expand (MatchState *ms, const char *s, in min_expand()
[all …]