#include "llvm/Support/SuffixTree.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/SuffixTreeNode.h"
usingnamespacellvm;
static size_t numElementsInSubstring(const SuffixTreeNode *N) { … }
SuffixTree::SuffixTree(const ArrayRef<unsigned> &Str,
bool OutlinerLeafDescendants)
: … { … }
SuffixTreeNode *SuffixTree::insertLeaf(SuffixTreeInternalNode &Parent,
unsigned StartIdx, unsigned Edge) { … }
SuffixTreeInternalNode *
SuffixTree::insertInternalNode(SuffixTreeInternalNode *Parent,
unsigned StartIdx, unsigned EndIdx,
unsigned Edge) { … }
SuffixTreeInternalNode *SuffixTree::insertRoot() { … }
void SuffixTree::setSuffixIndices() { … }
void SuffixTree::setLeafNodes() { … }
unsigned SuffixTree::extend(unsigned EndIdx, unsigned SuffixesToAdd) { … }
void SuffixTree::RepeatedSubstringIterator::advance() { … }