reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  216
  217
  218
  219
  220
  221
  222
  223
  224
  225
  226
  227
  228
  229
  230
  231
  232
  233
  234
  235
  236
  237
  238
  239
  240
  241
  242
  243
  244
  245
  246
  247
  248
  249
  250
  251
  252
  253
  254
  255
  256
  257
  258
  259
  260
  261
  262
  263
  264
  265
  266
  267
  268
  269
/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|*                                                                            *|
|* Exegesis Tables                                                            *|
|*                                                                            *|
|* Automatically generated file, do not edit!                                 *|
|*                                                                            *|
\*===----------------------------------------------------------------------===*/


static const char* X86PfmCounterNames[] = {
  "cpu_clk_unhalted", // 0
  "cycles_not_in_halt", // 1
  "dispatched_fpu:pipe0", // 2
  "dispatched_fpu:pipe1", // 3
  "dispatched_fpu_ops:ops_pipe0 + dispatched_fpu_ops:ops_dual_pipe0", // 4
  "dispatched_fpu_ops:ops_pipe1 + dispatched_fpu_ops:ops_dual_pipe1", // 5
  "dispatched_fpu_ops:ops_pipe2 + dispatched_fpu_ops:ops_dual_pipe2", // 6
  "dispatched_fpu_ops:ops_pipe3 + dispatched_fpu_ops:ops_dual_pipe3", // 7
  "div_op_count", // 8
  "fpu_pipe_assignment:total0", // 9
  "fpu_pipe_assignment:total1", // 10
  "fpu_pipe_assignment:total2", // 11
  "fpu_pipe_assignment:total3", // 12
  "retired_uops", // 13
  "unhalted_core_cycles", // 14
  "uops_dispatched_port:port_0", // 15
  "uops_dispatched_port:port_1", // 16
  "uops_dispatched_port:port_2", // 17
  "uops_dispatched_port:port_2 + uops_dispatched_port:port_3", // 18
  "uops_dispatched_port:port_3", // 19
  "uops_dispatched_port:port_4", // 20
  "uops_dispatched_port:port_5", // 21
  "uops_dispatched_port:port_6", // 22
  "uops_dispatched_port:port_7", // 23
  "uops_executed_port:port_0", // 24
  "uops_executed_port:port_1", // 25
  "uops_executed_port:port_2", // 26
  "uops_executed_port:port_3", // 27
  "uops_executed_port:port_4", // 28
  "uops_executed_port:port_5", // 29
  "uops_executed_port:port_6", // 30
  "uops_executed_port:port_7", // 31
  "uops_issued:any", // 32
  "uops_retired", // 33
  "uops_retired:all", // 34
  "uops_retired:any", // 35
};

static const PfmCountersInfo::IssueCounter X86PfmIssueCounters[] = {
  { X86PfmCounterNames[4], "PdFPU0"},
  { X86PfmCounterNames[5], "PdFPU1"},
  { X86PfmCounterNames[6], "PdFPU2"},
  { X86PfmCounterNames[7], "PdFPU3"},
  { X86PfmCounterNames[4], "SrFPU0"},
  { X86PfmCounterNames[5], "SrFPU1"},
  { X86PfmCounterNames[6], "SrFPU2"},
  { X86PfmCounterNames[24], "BWPort0"},
  { X86PfmCounterNames[25], "BWPort1"},
  { X86PfmCounterNames[26], "BWPort2"},
  { X86PfmCounterNames[27], "BWPort3"},
  { X86PfmCounterNames[28], "BWPort4"},
  { X86PfmCounterNames[29], "BWPort5"},
  { X86PfmCounterNames[30], "BWPort6"},
  { X86PfmCounterNames[31], "BWPort7"},
  { X86PfmCounterNames[2], "BtFPU0"},
  { X86PfmCounterNames[3], "BtFPU1"},
  { X86PfmCounterNames[2], "JFPU0"},
  { X86PfmCounterNames[3], "JFPU1"},
  { X86PfmCounterNames[15], "HWPort0"},
  { X86PfmCounterNames[16], "HWPort1"},
  { X86PfmCounterNames[17], "HWPort2"},
  { X86PfmCounterNames[19], "HWPort3"},
  { X86PfmCounterNames[20], "HWPort4"},
  { X86PfmCounterNames[21], "HWPort5"},
  { X86PfmCounterNames[22], "HWPort6"},
  { X86PfmCounterNames[23], "HWPort7"},
  { X86PfmCounterNames[15], "SBPort0"},
  { X86PfmCounterNames[16], "SBPort1"},
  { X86PfmCounterNames[18], "SBPort23"},
  { X86PfmCounterNames[20], "SBPort4"},
  { X86PfmCounterNames[21], "SBPort5"},
  { X86PfmCounterNames[15], "SKLPort0"},
  { X86PfmCounterNames[16], "SKLPort1"},
  { X86PfmCounterNames[17], "SKLPort2"},
  { X86PfmCounterNames[19], "SKLPort3"},
  { X86PfmCounterNames[20], "SKLPort4"},
  { X86PfmCounterNames[21], "SKLPort5"},
  { X86PfmCounterNames[22], "SKLPort6"},
  { X86PfmCounterNames[23], "SKLPort7"},
  { X86PfmCounterNames[15], "SKXPort0"},
  { X86PfmCounterNames[16], "SKXPort1"},
  { X86PfmCounterNames[17], "SKXPort2"},
  { X86PfmCounterNames[19], "SKXPort3"},
  { X86PfmCounterNames[20], "SKXPort4"},
  { X86PfmCounterNames[21], "SKXPort5"},
  { X86PfmCounterNames[22], "SKXPort6"},
  { X86PfmCounterNames[23], "SKXPort7"},
  { X86PfmCounterNames[9], "ZnFPU0"},
  { X86PfmCounterNames[10], "ZnFPU1"},
  { X86PfmCounterNames[11], "ZnFPU2"},
  { X86PfmCounterNames[12], "ZnFPU3"},
  { X86PfmCounterNames[8], "ZnDivider"},
};

static const PfmCountersInfo X86AtomPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[35],  // Uops counter
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86BdVer2PfmCounters = {
  X86PfmCounterNames[0],  // Cycle counter
  X86PfmCounterNames[13],  // Uops counter
  X86PfmIssueCounters + 0, 4 // Issue counters.
};

static const PfmCountersInfo X86BdVer3PfmCounters = {
  X86PfmCounterNames[0],  // Cycle counter
  X86PfmCounterNames[13],  // Uops counter
  X86PfmIssueCounters + 4, 3 // Issue counters.
};

static const PfmCountersInfo X86BroadwellPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[32],  // Uops counter
  X86PfmIssueCounters + 7, 8 // Issue counters.
};

static const PfmCountersInfo X86BtVer1PfmCounters = {
  X86PfmCounterNames[0],  // Cycle counter
  X86PfmCounterNames[13],  // Uops counter
  X86PfmIssueCounters + 15, 2 // Issue counters.
};

static const PfmCountersInfo X86BtVer2PfmCounters = {
  X86PfmCounterNames[0],  // Cycle counter
  X86PfmCounterNames[13],  // Uops counter
  X86PfmIssueCounters + 17, 2 // Issue counters.
};

static const PfmCountersInfo X86CorePfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[35],  // Uops counter
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86DefaultAMDPfmCounters = {
  X86PfmCounterNames[0],  // Cycle counter
  X86PfmCounterNames[13],  // Uops counter
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86DefaultPfmCounters = {
  nullptr,  // No cycle counter.
  nullptr,  // No uops counter.
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86HaswellPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[32],  // Uops counter
  X86PfmIssueCounters + 19, 8 // Issue counters.
};

static const PfmCountersInfo X86KnightPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[34],  // Uops counter
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86PentiumPfmCounters = {
  X86PfmCounterNames[0],  // Cycle counter
  X86PfmCounterNames[33],  // Uops counter
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86SLMPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[35],  // Uops counter
  nullptr,  // No issue counters.
  0
};

static const PfmCountersInfo X86SandyBridgePfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[32],  // Uops counter
  X86PfmIssueCounters + 27, 5 // Issue counters.
};

static const PfmCountersInfo X86SkylakeClientPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[32],  // Uops counter
  X86PfmIssueCounters + 32, 8 // Issue counters.
};

static const PfmCountersInfo X86SkylakeServerPfmCounters = {
  X86PfmCounterNames[14],  // Cycle counter
  X86PfmCounterNames[32],  // Uops counter
  X86PfmIssueCounters + 40, 8 // Issue counters.
};

static const PfmCountersInfo X86ZnVer1PfmCounters = {
  X86PfmCounterNames[1],  // Cycle counter
  X86PfmCounterNames[13],  // Uops counter
  X86PfmIssueCounters + 48, 5 // Issue counters.
};

// Sorted (by CpuName) array of pfm counters.
static const CpuAndPfmCounters X86CpuPfmCounters[] = {
  { "", &X86DefaultPfmCounters },
  { "amdfam10", &X86DefaultAMDPfmCounters },
  { "athlon", &X86DefaultAMDPfmCounters },
  { "athlon-4", &X86DefaultAMDPfmCounters },
  { "athlon-fx", &X86DefaultAMDPfmCounters },
  { "athlon-mp", &X86DefaultAMDPfmCounters },
  { "athlon-tbird", &X86DefaultAMDPfmCounters },
  { "athlon-xp", &X86DefaultAMDPfmCounters },
  { "athlon64", &X86DefaultAMDPfmCounters },
  { "athlon64-sse3", &X86DefaultAMDPfmCounters },
  { "atom", &X86AtomPfmCounters },
  { "barcelona", &X86DefaultAMDPfmCounters },
  { "bdver1", &X86BdVer2PfmCounters },
  { "bdver2", &X86BdVer2PfmCounters },
  { "bdver3", &X86BdVer3PfmCounters },
  { "bdver4", &X86BdVer3PfmCounters },
  { "bonnell", &X86AtomPfmCounters },
  { "broadwell", &X86BroadwellPfmCounters },
  { "btver1", &X86BtVer1PfmCounters },
  { "btver2", &X86BtVer2PfmCounters },
  { "cannonlake", &X86SkylakeServerPfmCounters },
  { "cascadelake", &X86SkylakeServerPfmCounters },
  { "core2", &X86CorePfmCounters },
  { "corei7", &X86CorePfmCounters },
  { "goldmont", &X86SLMPfmCounters },
  { "goldmont-plus", &X86SLMPfmCounters },
  { "haswell", &X86HaswellPfmCounters },
  { "icelake-client", &X86SkylakeServerPfmCounters },
  { "icelake-server", &X86SkylakeServerPfmCounters },
  { "ivybridge", &X86SandyBridgePfmCounters },
  { "k8", &X86DefaultAMDPfmCounters },
  { "k8-sse3", &X86DefaultAMDPfmCounters },
  { "knl", &X86KnightPfmCounters },
  { "knm", &X86KnightPfmCounters },
  { "nehalem", &X86CorePfmCounters },
  { "opteron", &X86DefaultAMDPfmCounters },
  { "opteron-sse3", &X86DefaultAMDPfmCounters },
  { "penryn", &X86CorePfmCounters },
  { "pentium-m", &X86PentiumPfmCounters },
  { "pentium2", &X86PentiumPfmCounters },
  { "pentium3", &X86PentiumPfmCounters },
  { "pentium3m", &X86PentiumPfmCounters },
  { "pentiumpro", &X86PentiumPfmCounters },
  { "prescott", &X86CorePfmCounters },
  { "sandybridge", &X86SandyBridgePfmCounters },
  { "silvermont", &X86SLMPfmCounters },
  { "skylake", &X86SkylakeClientPfmCounters },
  { "skylake-avx512", &X86SkylakeServerPfmCounters },
  { "tremont", &X86SLMPfmCounters },
  { "westmere", &X86CorePfmCounters },
  { "yonah", &X86CorePfmCounters },
  { "znver1", &X86ZnVer1PfmCounters },
};