Go to the documentation of this file.
14 Expected<NameOrPattern>
22 bool IsPositiveMatch =
true;
24 IsPositiveMatch =
false;
37 return NameOrPattern(std::make_shared<GlobPattern>(*GlobOrErr),
43 (
"^" +
Pattern.ltrim(
'^').rtrim(
'$') +
"$").toStringRef(
Data)));
This is an optimization pass for GlobalISel generic memory operations.
Tagged union holding either a T or a Error.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
An efficient, type-erasing, non-owning reference to a callable.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
static Expected< GlobPattern > create(StringRef Pat)
StringRef - Represent a constant reference to a string, i.e.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Lightweight error class with error context and mandatory checking.
static Expected< NameOrPattern > create(StringRef Pattern, MatchStyle MS, llvm::function_ref< Error(Error)> ErrorCallback)
Error takeError()
Take ownership of the stored error.