//===- LiveStacks.h - Live Stack Slot Analysis ------------------*- 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 file implements the live stack slot analysis pass. It is analogous to // live interval analysis except it's analyzing liveness of stack slots rather // than registers. // //===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVESTACKS_H #define LLVM_CODEGEN_LIVESTACKS_H #include "llvm/CodeGen/LiveInterval.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/InitializePasses.h" #include "llvm/PassRegistry.h" #include <cassert> #include <map> #include <unordered_map> namespace llvm { class AnalysisUsage; class MachineFunction; class Module; class raw_ostream; class TargetRegisterClass; class TargetRegisterInfo; class LiveStacks : public MachineFunctionPass { … }; } // end namespace llvm #endif