Skip to content

Commit 316b9ef

Browse files
authored
Merge pull request #157 from sx-aurora-dev/feature/merge-upstream-20220209
Feature/merge upstream 20220209
2 parents 9e297f3 + 96beb33 commit 316b9ef

File tree

1,033 files changed

+38012
-20079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,033 files changed

+38012
-20079
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,10 @@ Consult the
104104
page for detailed information on configuring and compiling LLVM. You can visit
105105
[Directory Layout](https://llvm.org/docs/GettingStarted.html#directory-layout)
106106
to learn about the layout of the source code tree.
107+
108+
## Getting in touch
109+
110+
Join [LLVM Discourse forums](https://discourse.llvm.org/), [discord chat](https://discord.gg/xS7Z362) or #llvm IRC channel on [OFTC](https://oftc.net/).
111+
112+
The LLVM project has adopted a [code of conduct](https://llvm.org/docs/CodeOfConduct.html) for
113+
participants to all modes of communication within the project.

bolt/include/bolt/Passes/LivenessAnalysis.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "bolt/Passes/DataflowAnalysis.h"
1313
#include "bolt/Passes/RegAnalysis.h"
14+
#include "llvm/MC/MCRegisterInfo.h"
1415
#include "llvm/Support/CommandLine.h"
1516

1617
namespace opts {

bolt/include/bolt/Passes/ReachingDefOrUse.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "bolt/Passes/DataflowAnalysis.h"
1313
#include "bolt/Passes/RegAnalysis.h"
1414
#include "llvm/ADT/Optional.h"
15+
#include "llvm/MC/MCRegisterInfo.h"
1516
#include "llvm/Support/CommandLine.h"
1617
#include "llvm/Support/Timer.h"
1718

bolt/include/bolt/Passes/ShrinkWrapping.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define BOLT_PASSES_SHRINKWRAPPING_H
1111

1212
#include "bolt/Passes/FrameAnalysis.h"
13+
#include "llvm/MC/MCRegisterInfo.h"
1314

1415
namespace llvm {
1516
namespace bolt {

bolt/include/bolt/Rewrite/DWARFRewriter.h

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ class DWARFRewriter {
108108
/// Output .dwp files.
109109
void writeDWP(std::unordered_map<uint64_t, std::string> &DWOIdToName);
110110

111-
/// Abbreviations that were converted to use DW_AT_ranges.
112-
std::set<const DWARFAbbreviationDeclaration *> ConvertedRangesAbbrevs;
113-
114111
/// DWARFDie contains a pointer to a DIE and hence gets invalidated once the
115112
/// embedded DIE is destroyed. This wrapper class stores a DIE internally and
116113
/// could be cast to a DWARFDie that is valid even after the initial DIE is
@@ -135,8 +132,6 @@ class DWARFRewriter {
135132
const DWARFAbbreviationDeclaration *,
136133
std::vector<std::pair<DWARFDieWrapper, DebugAddressRange>>>;
137134

138-
PendingRangesType PendingRanges;
139-
140135
/// Convert \p Abbrev from using a simple DW_AT_(low|high)_pc range to
141136
/// DW_AT_ranges with optional \p RangesBase.
142137
void convertToRangesPatchAbbrev(const DWARFUnit &Unit,
@@ -151,30 +146,10 @@ class DWARFRewriter {
151146
SimpleBinaryPatcher &DebugInfoPatcher,
152147
Optional<uint64_t> RangesBase = None);
153148

154-
/// Same as above, but takes a vector of \p Ranges as a parameter.
155-
void convertToRanges(DWARFDie DIE, const DebugAddressRangesVector &Ranges,
156-
SimpleBinaryPatcher &DebugInfoPatcher);
157-
158149
/// Patch DW_AT_(low|high)_pc values for the \p DIE based on \p Range.
159150
void patchLowHigh(DWARFDie DIE, DebugAddressRange Range,
160-
SimpleBinaryPatcher &DebugInfoPatcher);
161-
162-
/// Convert pending ranges associated with the given \p Abbrev.
163-
void convertPending(const DWARFUnit &Unit,
164-
const DWARFAbbreviationDeclaration *Abbrev,
165-
SimpleBinaryPatcher &DebugInfoPatcher,
166-
DebugAbbrevWriter &AbbrevWriter);
167-
168-
/// Adds to Pending Ranges.
169-
/// For Debug Fission also adding to .debug_addr to take care of a case where
170-
/// some entries are not converted to ranges and left as
171-
/// DW_AT_low_pc/DW_AT_high_pc.
172-
void addToPendingRanges(const DWARFAbbreviationDeclaration *Abbrev,
173-
DWARFDie DIE, DebugAddressRangesVector &Ranges,
174-
Optional<uint64_t> DWOId);
175-
176-
/// Once all DIEs were seen, update DW_AT_(low|high)_pc values.
177-
void flushPendingRanges(SimpleBinaryPatcher &DebugInfoPatcher);
151+
SimpleBinaryPatcher &DebugInfoPatcher,
152+
Optional<uint64_t> DWOId);
178153

179154
/// Helper function for creating and returning per-DWO patchers/writers.
180155
template <class T, class Patcher>

bolt/lib/Core/BinaryContext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
#include "llvm/MC/MCInstPrinter.h"
2727
#include "llvm/MC/MCObjectStreamer.h"
2828
#include "llvm/MC/MCObjectWriter.h"
29+
#include "llvm/MC/MCRegisterInfo.h"
2930
#include "llvm/MC/MCSectionELF.h"
3031
#include "llvm/MC/MCStreamer.h"
32+
#include "llvm/MC/MCSubtargetInfo.h"
3133
#include "llvm/MC/MCSymbol.h"
3234
#include "llvm/Support/CommandLine.h"
3335
#include "llvm/Support/Regex.h"

bolt/lib/Core/BinaryFunction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "llvm/MC/MCExpr.h"
2929
#include "llvm/MC/MCInst.h"
3030
#include "llvm/MC/MCInstPrinter.h"
31+
#include "llvm/MC/MCRegisterInfo.h"
3132
#include "llvm/Object/ObjectFile.h"
3233
#include "llvm/Support/CommandLine.h"
3334
#include "llvm/Support/Debug.h"

bolt/lib/Core/DebugData.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "bolt/Core/DebugData.h"
1414
#include "bolt/Core/BinaryContext.h"
1515
#include "bolt/Utils/Utils.h"
16+
#include "llvm/MC/MCAssembler.h"
1617
#include "llvm/MC/MCContext.h"
1718
#include "llvm/MC/MCObjectStreamer.h"
1819
#include "llvm/Support/CommandLine.h"

bolt/lib/Core/MCPlusBuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "llvm/MC/MCInstrAnalysis.h"
1717
#include "llvm/MC/MCInstrDesc.h"
1818
#include "llvm/MC/MCInstrInfo.h"
19+
#include "llvm/MC/MCRegisterInfo.h"
1920
#include "llvm/Support/Debug.h"
2021
#include <cstdint>
2122
#include <queue>

bolt/lib/Core/Relocation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
#include "bolt/Core/Relocation.h"
1414
#include "llvm/MC/MCContext.h"
15+
#include "llvm/MC/MCExpr.h"
1516
#include "llvm/MC/MCStreamer.h"
17+
#include "llvm/MC/MCSymbol.h"
1618
#include "llvm/Object/ELF.h"
1719

1820
using namespace llvm;

0 commit comments

Comments
 (0)