[IRSim] Adding basic implementation of llvm-sim.
authorAndrew Litteken <andrew.litteken@gmail.com>
Thu, 17 Sep 2020 20:43:40 +0000 (15:43 -0500)
committerAndrew Litteken <andrew.litteken@gmail.com>
Sat, 20 Mar 2021 21:47:50 +0000 (16:47 -0500)
commit5155dff2784a47583d432d796b7cf47a0bed9f20
treed99e6c88a2bb2b1360dbb54485c056f3b22ab7a7
parent14696baaf4c43fe53f738bc292bbe169eed93d5d
[IRSim] Adding basic implementation of llvm-sim.

This is a similarity visualization tool that accepts a Module and
passes it to the IRSimilarityIdentifier.  The resulting SimilarityGroups
are output in a JSON file.

Tests are found in test/tools/llvm-sim and check for the file not found,
a bad module, and that the JSON is created correctly.

Reviewers: paquette, jroelofs, MaskRay

Recommit of: 15645d044bcfe2a0f63156048b302f997a717688 to fix linking
errors.

Differential Revision: https://reviews.llvm.org/D86974
llvm/test/CMakeLists.txt
llvm/test/lit.cfg.py
llvm/test/tools/llvm-sim/Inputs/sim1.ll [new file with mode: 0644]
llvm/test/tools/llvm-sim/fail-cases.test [new file with mode: 0644]
llvm/test/tools/llvm-sim/single-sim-file.test [new file with mode: 0644]
llvm/test/tools/llvm-sim/single-sim.test [new file with mode: 0644]
llvm/tools/llvm-sim/CMakeLists.txt [new file with mode: 0644]
llvm/tools/llvm-sim/llvm-sim.cpp [new file with mode: 0644]