[PATCH] D86970: [IRSim] Adding IRSimilarityCandidate that contains a region of IRInstructionData

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 13:14:01 PDT 2020


AndrewLitteken created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
AndrewLitteken requested review of this revision.

The IRSimilarityCandidate is a container to hold a region of IRInstructions and offer interfaces for the starting instruction, ending instruction, parent function, length.  It also assigns a global value number for each unique instance of a value in the region.

It also contains an interface to compare two IRSimilarity as to whether they have the same sequence of similar instructions.

Tests for whether the instructions are similar are found in `unittests/Analysis/IRSimilarityIdentifierTest.cpp`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86970

Files:
  llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
  llvm/lib/Analysis/IRSimilarityIdentifier.cpp
  llvm/unittests/Analysis/IRSimilarityIdentifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86970.289263.patch
Type: text/x-patch
Size: 18428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200901/4818b1ac/attachment.bin>


More information about the llvm-commits mailing list