//===- TGTimer.cpp - TableGen Timer implementation --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Implement the tablegen timer class. // //===----------------------------------------------------------------------===// #include "llvm/TableGen/TGTimer.h" usingnamespacellvm; // These functions implement the phase timing facility. Starting a timer // when one is already running stops the running one. void TGTimer::startTimer(StringRef Name) { … } void TGTimer::stopTimer() { … } void TGTimer::startBackendTimer(StringRef Name) { … } void TGTimer::stopBackendTimer() { … }