blob: d67ae509093414bf6c38377854cede334fd6fe79 [file] [log] [blame]
Clement Courbetb4493792018-04-10 08:16:37 +00001//===-- X86PfmCounters.td - X86 Hardware Counters ----------*- tablegen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This describes the available hardware counters for various subtargets.
11//
12//===----------------------------------------------------------------------===//
13
14let SchedModel = SandyBridgeModel in {
15def SBCycleCounter : PfmCycleCounter<"unhalted_core_cycles">;
16def SBPort0Counter : PfmIssueCounter<SBPort0, ["uops_dispatched_port:port_0"]>;
17def SBPort1Counter : PfmIssueCounter<SBPort1, ["uops_dispatched_port:port_1"]>;
18def SBPort23Counter : PfmIssueCounter<SBPort23,
19 ["uops_dispatched_port:port_2",
Simon Pilgrim95f94112018-04-10 14:21:33 +000020 "uops_dispatched_port:port_3"]>;
Clement Courbetb4493792018-04-10 08:16:37 +000021def SBPort4Counter : PfmIssueCounter<SBPort4, ["uops_dispatched_port:port_4"]>;
22def SBPort5Counter : PfmIssueCounter<SBPort5, ["uops_dispatched_port:port_5"]>;
23}
24
25let SchedModel = HaswellModel in {
26def HWCycleCounter : PfmCycleCounter<"unhalted_core_cycles">;
27def HWPort0Counter : PfmIssueCounter<HWPort0, ["uops_dispatched_port:port_0"]>;
28def HWPort1Counter : PfmIssueCounter<HWPort1, ["uops_dispatched_port:port_1"]>;
29def HWPort2Counter : PfmIssueCounter<HWPort2, ["uops_dispatched_port:port_2"]>;
30def HWPort3Counter : PfmIssueCounter<HWPort3, ["uops_dispatched_port:port_3"]>;
31def HWPort4Counter : PfmIssueCounter<HWPort4, ["uops_dispatched_port:port_4"]>;
32def HWPort5Counter : PfmIssueCounter<HWPort5, ["uops_dispatched_port:port_5"]>;
33def HWPort6Counter : PfmIssueCounter<HWPort6, ["uops_dispatched_port:port_6"]>;
34def HWPort7Counter : PfmIssueCounter<HWPort7, ["uops_dispatched_port:port_7"]>;
35}
36
37let SchedModel = BroadwellModel in {
38def BWCycleCounter : PfmCycleCounter<"unhalted_core_cycles">;
Clement Courbetb18c34b2018-05-04 15:26:12 +000039def BWPort0Counter : PfmIssueCounter<BWPort0, ["uops_executed_port:port_0"]>;
40def BWPort1Counter : PfmIssueCounter<BWPort1, ["uops_executed_port:port_1"]>;
41def BWPort2Counter : PfmIssueCounter<BWPort2, ["uops_executed_port:port_2"]>;
42def BWPort3Counter : PfmIssueCounter<BWPort3, ["uops_executed_port:port_3"]>;
43def BWPort4Counter : PfmIssueCounter<BWPort4, ["uops_executed_port:port_4"]>;
44def BWPort5Counter : PfmIssueCounter<BWPort5, ["uops_executed_port:port_5"]>;
45def BWPort6Counter : PfmIssueCounter<BWPort6, ["uops_executed_port:port_6"]>;
46def BWPort7Counter : PfmIssueCounter<BWPort7, ["uops_executed_port:port_7"]>;
Clement Courbetb4493792018-04-10 08:16:37 +000047}
48
49let SchedModel = SkylakeClientModel in {
50def SKLCycleCounter : PfmCycleCounter<"unhalted_core_cycles">;
51def SKLPort0Counter : PfmIssueCounter<SKLPort0, ["uops_dispatched_port:port_0"]>;
52def SKLPort1Counter : PfmIssueCounter<SKLPort1, ["uops_dispatched_port:port_1"]>;
53def SKLPort2Counter : PfmIssueCounter<SKLPort2, ["uops_dispatched_port:port_2"]>;
54def SKLPort3Counter : PfmIssueCounter<SKLPort3, ["uops_dispatched_port:port_3"]>;
55def SKLPort4Counter : PfmIssueCounter<SKLPort4, ["uops_dispatched_port:port_4"]>;
56def SKLPort5Counter : PfmIssueCounter<SKLPort5, ["uops_dispatched_port:port_5"]>;
57def SKLPort6Counter : PfmIssueCounter<SKLPort6, ["uops_dispatched_port:port_6"]>;
58def SKLPort7Counter : PfmIssueCounter<SKLPort7, ["uops_dispatched_port:port_7"]>;
59}
60
61let SchedModel = SkylakeServerModel in {
62def SKXCycleCounter : PfmCycleCounter<"unhalted_core_cycles">;
63def SKXPort0Counter : PfmIssueCounter<SKXPort0, ["uops_dispatched_port:port_0"]>;
64def SKXPort1Counter : PfmIssueCounter<SKXPort1, ["uops_dispatched_port:port_1"]>;
65def SKXPort2Counter : PfmIssueCounter<SKXPort2, ["uops_dispatched_port:port_2"]>;
66def SKXPort3Counter : PfmIssueCounter<SKXPort3, ["uops_dispatched_port:port_3"]>;
67def SKXPort4Counter : PfmIssueCounter<SKXPort4, ["uops_dispatched_port:port_4"]>;
68def SKXPort5Counter : PfmIssueCounter<SKXPort5, ["uops_dispatched_port:port_5"]>;
69def SKXPort6Counter : PfmIssueCounter<SKXPort6, ["uops_dispatched_port:port_6"]>;
70def SKXPort7Counter : PfmIssueCounter<SKXPort7, ["uops_dispatched_port:port_7"]>;
71}