LLVM  15.0.0git
Namespaces | Functions
edit_distance.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include <algorithm>
#include <memory>
Include dependency graph for edit_distance.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 This is an optimization pass for GlobalISel generic memory operations.


template<typename T , typename Functor >
unsigned llvm::ComputeMappedEditDistance (ArrayRef< T > FromArray, ArrayRef< T > ToArray, Functor Map, bool AllowReplacements=true, unsigned MaxEditDistance=0)
 Determine the edit distance between two sequences. More...
template<typename T >
unsigned llvm::ComputeEditDistance (ArrayRef< T > FromArray, ArrayRef< T > ToArray, bool AllowReplacements=true, unsigned MaxEditDistance=0)

Detailed Description

This file defines a Levenshtein distance function that works for any two sequences, with each element of each sequence being analogous to a character in a string.

Definition in file edit_distance.h.