[PATCH] D141866: [llvm][NFC] Apply performance-noexcept-move-constructor to llvm core
Aaron Gokaslan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 11:01:37 PST 2023
Skylion007 created this revision.
Herald added subscribers: kmitropoulou, jeroen.dobbelaere, ormris, okura, jdoerfert, bmahjour, kuter, hiraditya.
Herald added a project: All.
Skylion007 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Applies performance-noexcept-move-constructor to llvm core. One would think that this check does not matter since we do not allow exceptions due to the LLVM styleguide. However, STL containers (including std::variant and std::optional) do check the noexcept tag to see if it's safe to move. Therefore, we should make all these classes as safe to move so these STL containers can be as efficient as possible.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141866
Files:
llvm/lib/Analysis/AliasAnalysis.cpp
llvm/lib/Analysis/BlockFrequencyInfo.cpp
llvm/lib/Analysis/CallGraph.cpp
llvm/lib/Analysis/DDG.cpp
llvm/lib/Analysis/GlobalsModRef.cpp
llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
llvm/lib/Analysis/LazyCallGraph.cpp
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
llvm/lib/CodeGen/MachineModuleInfo.cpp
llvm/lib/DebugInfo/PDB/PDBSymbol.cpp
llvm/lib/Demangle/ItaniumDemangle.cpp
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
llvm/lib/IR/Comdat.cpp
llvm/lib/InterfaceStub/ELFObjHandler.cpp
llvm/lib/InterfaceStub/IFSStub.cpp
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/lib/Support/APFloat.cpp
llvm/lib/Support/FoldingSet.cpp
llvm/lib/Support/Path.cpp
llvm/lib/Support/Regex.cpp
llvm/lib/Support/SourceMgr.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/lib/Transforms/Scalar/MergeICmps.cpp
llvm/lib/Transforms/Scalar/NewGVN.cpp
llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
llvm/utils/TableGen/DecoderEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141866.489605.patch
Type: text/x-patch
Size: 20192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230116/c4854cac/attachment.bin>
More information about the llvm-commits
mailing list