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.
Example of what can be built on top of the JSON output:
For FileCheck, double-dash --check-prefix is preferred