mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
6cfd76633f
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 and GN build system. Differential Revision: https://reviews.llvm.org/D86974
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
# RUN: llvm-sim -o - %S/Inputs/sim1.ll | FileCheck %s
|
|
|
|
# Checking the output of a single module test.
|
|
|
|
# CHECK: {
|
|
# CHECK-NEXT: "1": [
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 8,
|
|
# CHECK-NEXT: "end": 9
|
|
# CHECK-NEXT: },
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 18,
|
|
# CHECK-NEXT: "end": 19
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ],
|
|
# CHECK-NEXT: "2": [
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 7,
|
|
# CHECK-NEXT: "end": 9
|
|
# CHECK-NEXT: },
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 17,
|
|
# CHECK-NEXT: "end": 19
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ],
|
|
# CHECK-NEXT: "3": [
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 6,
|
|
# CHECK-NEXT: "end": 9
|
|
# CHECK-NEXT: },
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 16,
|
|
# CHECK-NEXT: "end": 19
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ],
|
|
# CHECK-NEXT: "4": [
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 5,
|
|
# CHECK-NEXT: "end": 9
|
|
# CHECK-NEXT: },
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 15,
|
|
# CHECK-NEXT: "end": 19
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ],
|
|
# CHECK-NEXT: "5": [
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 4,
|
|
# CHECK-NEXT: "end": 9
|
|
# CHECK-NEXT: },
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "start": 14,
|
|
# CHECK-NEXT: "end": 19
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: }
|