1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/tools/llvm-xray/X86
Dean Michael Berris 85c0bb36c3 [XRay] Define the library for XRay trace logs
Summary:
In this change we move the definition of the log reading routines from
the tools directory in LLVM to {include/llvm,lib}/XRay. We improve the
documentation a little bit for the publicly accessible headers, and
adjust the top-matter. This also leads to some refactoring and cleanup
in the tooling code.

In particular, we do the following:

  - Rename the class from LogReader to Trace, as it better represents
    the logical set of records as opposed to a log.
  - Use file type detection instead of asking the user to say what
    format the input file is. This allows us to keep the interface
    simple and encapsulate the logic of loading the data appropriately.

In future changes we increase the API surface and write dedicated unit
tests for the XRay library.

Depends on D24376.

Reviewers: dblaikie, echristo

Subscribers: mehdi_amini, mgorny, llvm-commits, varno

Differential Revision: https://reviews.llvm.org/D28345

llvm-svn: 291652
2017-01-11 06:39:09 +00:00
..
Inputs [XRay] Implement llvm-xray convert -- trace file conversion 2017-01-10 02:38:11 +00:00
bad-instrmap-sizes.txt [XRay] Implement llvm-xray convert -- trace file conversion 2017-01-10 02:38:11 +00:00
convert-roundtrip.yaml [XRay] Define the library for XRay trace logs 2017-01-11 06:39:09 +00:00
convert-to-yaml.txt [XRay] Implement llvm-xray convert -- trace file conversion 2017-01-10 02:38:11 +00:00
convert-with-debug-syms.txt [XRay] Use regular expression for finding symbols 2017-01-10 04:32:34 +00:00
convert-with-standalone-instrmap.txt [XRay] Implement llvm-xray convert -- trace file conversion 2017-01-10 02:38:11 +00:00
convert-with-yaml-instrmap.txt [XRay] Implement llvm-xray convert -- trace file conversion 2017-01-10 02:38:11 +00:00
empty.txt [XRay] Implement llvm-xray extract, start of the llvm-xray tool 2016-10-26 04:14:34 +00:00
extract-instrmap.ll [XRay] Implement llvm-xray extract, start of the llvm-xray tool 2016-10-26 04:14:34 +00:00
lit.local.cfg [XRay] Implement llvm-xray extract, start of the llvm-xray tool 2016-10-26 04:14:34 +00:00
no-instr-map.txt [XRay] Implement llvm-xray extract, start of the llvm-xray tool 2016-10-26 04:14:34 +00:00
no-such-file.txt [XRay] Be case-insensitive for error strings 2016-10-26 05:10:39 +00:00
unsupported-elf32.txt [XRay] Implement llvm-xray extract, start of the llvm-xray tool 2016-10-26 04:14:34 +00:00