13#ifndef LLVM_SUPPORT_GLOBPATTERN_H
14#define LLVM_SUPPORT_GLOBPATTERN_H
66 if (SubGlobs.
size() != 1)
68 return SubGlobs[0].getPat() ==
"*";
74 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...
bool match(StringRef S) const
bool isTrivialMatchAll() const
static 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 bool empty() const
empty - Check if the string is empty.
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).
This is an optimization pass for GlobalISel generic memory operations.