26#ifndef LLVM_SUPPORT_TRIGRAMINDEX_H
27#define LLVM_SUPPORT_TRIGRAMINDEX_H
31#include <unordered_map>
52 bool Defeated =
false;
56 std::vector<unsigned> Counts;
62 std::unordered_map<unsigned, SmallVector<size_t, 4>>
Index{256};
This file defines the SmallVector class.
StringRef - Represent a constant reference to a string, i.e.
bool isDefeated()
Returned true, iff the heuristic is defeated and not useful.
bool isDefinitelyOut(StringRef Query) const
Returns true, if special case list definitely does not have a line that matches the query.
void insert(const std::string &Regex)
Inserts a new Regex into the index.
This is an optimization pass for GlobalISel generic memory operations.