//===- llvm/CodeGen/DbgEntityHistoryCalculator.h ----------------*- 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 // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_DBGENTITYHISTORYCALCULATOR_H #define LLVM_CODEGEN_DBGENTITYHISTORYCALCULATOR_H #include "llvm/ADT/MapVector.h" #include "llvm/ADT/PointerIntPair.h" #include "llvm/ADT/SmallVector.h" #include "llvm/CodeGen/MachineInstr.h" #include <utility> namespace llvm { class DILocation; class LexicalScopes; class DINode; class MachineFunction; class TargetRegisterInfo; /// Record instruction ordering so we can query their relative positions within /// a function. Meta instructions are given the same ordinal as the preceding /// non-meta instruction. Class state is invalid if MF is modified after /// calling initialize. class InstructionOrdering { … }; /// For each user variable, keep a list of instruction ranges where this /// variable is accessible. The variables are listed in order of appearance. class DbgValueHistoryMap { … }; /// For each inlined instance of a source-level label, keep the corresponding /// DBG_LABEL instruction. The DBG_LABEL instruction could be used to generate /// a temporary (assembler) label before it. class DbgLabelInstrMap { … }; void calculateDbgEntityHistory(const MachineFunction *MF, const TargetRegisterInfo *TRI, DbgValueHistoryMap &DbgValues, DbgLabelInstrMap &DbgLabels); } // end namespace llvm #endif // LLVM_CODEGEN_DBGENTITYHISTORYCALCULATOR_H