13#ifndef LLVM_SUPPORT_GLOBPATTERN_H
14#define LLVM_SUPPORT_GLOBPATTERN_H
70 if (SubGlobs.size() != 1)
72 return SubGlobs[0].getPat() ==
"*";
88 size_t PrefixSize = 0;
89 size_t SuffixSize = 0;
91 struct SubGlobPattern {
This file implements the BitVector class.
This file defines the SmallVector class.
Tagged union holding either a T or a Error.
This class implements a glob pattern matcher similar to the one found in bash, but with some key diff...
StringRef longest_substr() const
LLVM_ABI bool match(StringRef S) const
bool isTrivialMatchAll() const
static LLVM_ABI Expected< GlobPattern > create(StringRef Pat, std::optional< size_t > MaxSubPatterns={})
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
constexpr size_t size() const
size - Get the string size.
constexpr const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
StringRef take_back(size_t N=1) const
Return a StringRef equal to 'this' but with only the last N elements remaining.
StringRef take_front(size_t N=1) const
Return a StringRef equal to 'this' but with only the first N elements remaining.
bool match(Val *V, const Pattern &P)
This is an optimization pass for GlobalISel generic memory operations.