summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/llvm-xray/xray-sleds.h
blob: 99279579ed471f2274924b9f3f42803670486f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//===- xray-sleds.h - XRay Sleds Data Structure ---------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Defines the structure used to represent XRay instrumentation map entries.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TOOLS_LLVM_XRAY_XRAY_SLEDS_H
#define LLVM_TOOLS_LLVM_XRAY_XRAY_SLEDS_H

namespace llvm {
namespace xray {

struct SledEntry {
  enum class FunctionKinds { ENTRY, EXIT, TAIL };

  uint64_t Address;
  uint64_t Function;
  FunctionKinds Kind;
  bool AlwaysInstrument;
};

} // namespace xray
} // namespace llvm

#endif // LLVM_TOOLS_LLVM_XRAY_XRAY_SLEDS_H
OpenPOWER on IntegriCloud