Skip to content

Commit 171c89a

Browse files
committed
Fix formatting.
1 parent b980cd3 commit 171c89a

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

llvm/include/llvm/ProfileData/IndexedMemProfData.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ struct IndexedMemProfData {
6969

7070
// Compute a CallStackId for a given call stack.
7171
CallStackId hashCallStack(ArrayRef<FrameId> CS) const {
72-
llvm::HashBuilder<llvm::TruncatedBLAKE3<8>, llvm::endianness::little>
73-
HashBuilder;
74-
for (FrameId F : CS)
75-
HashBuilder.add(F);
76-
llvm::BLAKE3Result<8> Hash = HashBuilder.final();
77-
CallStackId CSId;
78-
std::memcpy(&CSId, Hash.data(), sizeof(Hash));
79-
return CSId;
80-
}
72+
llvm::HashBuilder<llvm::TruncatedBLAKE3<8>, llvm::endianness::little>
73+
HashBuilder;
74+
for (FrameId F : CS)
75+
HashBuilder.add(F);
76+
llvm::BLAKE3Result<8> Hash = HashBuilder.final();
77+
CallStackId CSId;
78+
std::memcpy(&CSId, Hash.data(), sizeof(Hash));
79+
return CSId;
80+
}
8181
};
8282
} // namespace memprof
8383

llvm/include/llvm/ProfileData/InstrProfWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include "llvm/ADT/StringMap.h"
2020
#include "llvm/IR/GlobalValue.h"
2121
#include "llvm/Object/BuildID.h"
22-
#include "llvm/ProfileData/InstrProf.h"
2322
#include "llvm/ProfileData/IndexedMemProfData.h"
23+
#include "llvm/ProfileData/InstrProf.h"
2424
#include "llvm/Support/Error.h"
2525
#include <cstdint>
2626
#include <memory>

llvm/include/llvm/ProfileData/MemProfRadixTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#ifndef LLVM_PROFILEDATA_MEMPROFRADIXTREE_H
1414
#define LLVM_PROFILEDATA_MEMPROFRADIXTREE_H
1515

16-
#include "llvm/ProfileData/MemProf.h"
1716
#include "llvm/ProfileData/IndexedMemProfData.h"
17+
#include "llvm/ProfileData/MemProf.h"
1818

1919
namespace llvm {
2020
namespace memprof {

llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
#include "llvm/MC/StringTableBuilder.h"
6262
#include "llvm/MC/TargetRegistry.h"
6363
#include "llvm/Object/IRSymtab.h"
64-
#include "llvm/ProfileData/MemProf.h"
6564
#include "llvm/ProfileData/IndexedMemProfData.h"
65+
#include "llvm/ProfileData/MemProf.h"
6666
#include "llvm/ProfileData/MemProfRadixTree.h"
6767
#include "llvm/Support/AtomicOrdering.h"
6868
#include "llvm/Support/Casting.h"

llvm/unittests/ProfileData/InstrProfTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
#include "llvm/IR/IRBuilder.h"
1313
#include "llvm/IR/LLVMContext.h"
1414
#include "llvm/IR/Module.h"
15+
#include "llvm/ProfileData/IndexedMemProfData.h"
1516
#include "llvm/ProfileData/InstrProfReader.h"
1617
#include "llvm/ProfileData/InstrProfWriter.h"
1718
#include "llvm/ProfileData/MemProf.h"
18-
#include "llvm/ProfileData/IndexedMemProfData.h"
1919
#include "llvm/ProfileData/MemProfData.inc"
2020
#include "llvm/ProfileData/MemProfRadixTree.h"
2121
#include "llvm/Support/Compression.h"

llvm/unittests/ProfileData/MemProfTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include "llvm/ProfileData/MemProf.h"
910
#include "llvm/ADT/DenseMap.h"
1011
#include "llvm/ADT/MapVector.h"
1112
#include "llvm/ADT/STLForwardCompat.h"
@@ -14,7 +15,6 @@
1415
#include "llvm/IR/Value.h"
1516
#include "llvm/Object/ObjectFile.h"
1617
#include "llvm/ProfileData/IndexedMemProfData.h"
17-
#include "llvm/ProfileData/MemProf.h"
1818
#include "llvm/ProfileData/MemProfData.inc"
1919
#include "llvm/ProfileData/MemProfRadixTree.h"
2020
#include "llvm/ProfileData/MemProfReader.h"

llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#include "llvm/IR/LLVMContext.h"
1212
#include "llvm/IR/Module.h"
1313
#include "llvm/Passes/PassBuilder.h"
14+
#include "llvm/ProfileData/IndexedMemProfData.h"
1415
#include "llvm/ProfileData/InstrProfReader.h"
1516
#include "llvm/ProfileData/InstrProfWriter.h"
1617
#include "llvm/ProfileData/MemProf.h"
17-
#include "llvm/ProfileData/IndexedMemProfData.h"
1818
#include "llvm/Support/SourceMgr.h"
1919
#include "llvm/Testing/Support/Error.h"
2020
#include "llvm/Transforms/Instrumentation/MemProfiler.h"

0 commit comments

Comments
 (0)