ΒΆbool checkNumberingAndReplace(
DenseMap<unsigned int,
DenseSet<unsigned int>>&
CurrentSrcTgtNumberMapping,
unsigned int SourceArgVal,
unsigned int TargetArgVal)
bool checkNumberingAndReplace(
DenseMap<unsigned int,
DenseSet<unsigned int>>&
CurrentSrcTgtNumberMapping,
unsigned int SourceArgVal,
unsigned int TargetArgVal)
Description
Determine if operand number \p TargetArgVal is in the current mapping set for operand number \p SourceArgVal.
Declared at: llvm/lib/Analysis/IRSimilarityIdentifier.cpp:588
Parameters
- DenseMap<unsigned int, DenseSet<unsigned int>>& CurrentSrcTgtNumberMapping
- current mapping of global value numbers from source IRSimilarityCandidate to target IRSimilarityCandidate.
- unsigned int SourceArgVal
- The global value number for an operand in the in the original candidate.
- unsigned int TargetArgVal
- The global value number for the corresponding operand in the other candidate.
Returns
True if there exists a mapping and false if not.