//===- llvm/Analysis/Trace.h - Represent one trace of LLVM code -*- 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 // //===----------------------------------------------------------------------===// // // This class represents a single trace of LLVM basic blocks. A trace is a // single entry, multiple exit, region of code that is often hot. Trace-based // optimizations treat traces almost like they are a large, strange, basic // block: because the trace path is assumed to be hot, optimizations for the // fall-through path are made at the expense of the non-fall-through paths. // //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TRACE_H #define LLVM_ANALYSIS_TRACE_H #include <cassert> #include <vector> namespace llvm { class BasicBlock; class Function; class Module; class raw_ostream; class Trace { … }; } // end namespace llvm #endif // LLVM_ANALYSIS_TRACE_H