2021-12-22 02:21:41 +08:00
|
|
|
//===- bolt/Passes/StackPointerTracking.cpp -------------------------------===//
|
2017-05-02 07:51:27 +08:00
|
|
|
//
|
2021-03-16 09:04:18 +08:00
|
|
|
// 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
|
2017-05-02 07:51:27 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2021-12-22 02:21:41 +08:00
|
|
|
// This file implements the StackPointerTracking class.
|
|
|
|
//
|
2017-05-02 07:51:27 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2021-10-09 02:47:10 +08:00
|
|
|
#include "bolt/Passes/StackPointerTracking.h"
|
2017-05-02 07:51:27 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
namespace bolt {
|
|
|
|
|
2019-06-15 10:56:11 +08:00
|
|
|
StackPointerTracking::StackPointerTracking(
|
2021-10-26 15:06:34 +08:00
|
|
|
BinaryFunction &BF, MCPlusBuilder::AllocatorIdTy AllocatorId)
|
|
|
|
: StackPointerTrackingBase<StackPointerTracking>(BF, AllocatorId) {}
|
2017-05-02 07:51:27 +08:00
|
|
|
|
|
|
|
} // end namespace bolt
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
llvm::raw_ostream &llvm::operator<<(llvm::raw_ostream &OS,
|
|
|
|
const std::pair<int, int> &Val) {
|
|
|
|
OS << Val.first << ", " << Val.second;
|
|
|
|
return OS;
|
|
|
|
}
|