Use llvm::sort instead of std::sort where possible
commitaba43035bdf89c08409f0efccaf5408165abed9e
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 23 Jul 2022 13:14:14 +0000 (23 15:14 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 23 Jul 2022 13:19:05 +0000 (23 15:19 +0200)
treeae91c3b453964fe779d5dc8562b90507f59abe86
parente82880e6b8cd2f01ee18e99c4c7b6ec71b764e13
Use llvm::sort instead of std::sort where possible

llvm::sort is beneficial even when we use the iterator-based overload,
since it can optionally shuffle the elements (to detect
non-determinism). However llvm::sort is not usable everywhere, for
example, in compiler-rt.

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D130406
31 files changed:
clang-tools-extra/clang-include-fixer/IncludeFixerContext.cpp
clang-tools-extra/clang-reorder-fields/ReorderFieldsAction.cpp
clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
clang-tools-extra/clang-tidy/misc/ConfusableTable/BuildConfusableTable.cpp
clang-tools-extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp
clang-tools-extra/clangd/IncludeFixer.cpp
clang-tools-extra/pseudo/lib/grammar/LRTableBuild.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/unittests/Tooling/TransformerTest.cpp
lld/COFF/Chunks.cpp
lld/COFF/DLL.cpp
lld/COFF/DriverUtils.cpp
lld/ELF/SyntheticSections.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
llvm/lib/MC/MCPseudoProbe.cpp
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.cpp
llvm/lib/Target/XCore/XCoreFrameLowering.cpp
llvm/unittests/ADT/SmallSetTest.cpp
llvm/unittests/MIR/MachineMetadata.cpp
llvm/unittests/Support/AlignmentTest.cpp
llvm/utils/TableGen/DXILEmitter.cpp
llvm/utils/TableGen/DirectiveEmitter.cpp
llvm/utils/TableGen/SearchableTableEmitter.cpp
llvm/utils/UnicodeData/UnicodeNameMappingGenerator.cpp
mlir/lib/Analysis/Liveness.cpp
mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
mlir/lib/Dialect/SCF/Utils/Utils.cpp
mlir/lib/IR/AffineExpr.cpp