llvm/bolt/include/bolt/Passes/StackAllocationAnalysis.h

//===- bolt/Passes/StackAllocationAnalysis.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 BOLT_PASSES_STACKALLOCATIONANALYSIS_H
#define BOLT_PASSES_STACKALLOCATIONANALYSIS_H

#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

namespace opts {
extern llvm::cl::opt<bool> TimeOpts;
}

namespace llvm {
namespace bolt {
class StackPointerTracking;

/// Perform a dataflow analysis to track the value of SP as an offset relative
/// to the CFA.
class StackAllocationAnalysis
    : public InstrsDataflowAnalysis<StackAllocationAnalysis,
                                    /*Backward=*/false> {};

} // end namespace bolt
} // end namespace llvm

#endif