[all-commits] [llvm/llvm-project] 98ed61: [IRBuilder] Avoid passing IRBuilder by value; NFC
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Feb 17 09:14:58 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 98ed613cccd329d3892216b15d6e335f7c42a35b
https://github.com/llvm/llvm-project/commit/98ed613cccd329d3892216b15d6e335f7c42a35b
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2020-02-17 (Mon, 17 Feb 2020)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
M llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
Log Message:
-----------
[IRBuilder] Avoid passing IRBuilder by value; NFC
I've fixed most of these before, but missed some occurrences
in targets I don't usually build.
Commit: 80397d2d12b042586cb3bafdeb12ef8d982b8875
https://github.com/llvm/llvm-project/commit/80397d2d12b042586cb3bafdeb12ef8d982b8875
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2020-02-17 (Mon, 17 Feb 2020)
Changed paths:
M llvm/include/llvm/IR/IRBuilder.h
M llvm/lib/IR/DIBuilder.cpp
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Log Message:
-----------
[IRBuilder] Delete copy constructor
D73835 will make IRBuilder no longer trivially copyable. This patch
deletes the copy constructor in advance, to separate out the breakage.
Currently, the IRBuilder copy constructor is usually used by accident,
not by intention. In rG7c362b25d7a9 I've fixed a number of cases where
functions accepted IRBuilder rather than IRBuilder &, thus performing
an unnecessary copy. In rG5f7b92b1b4d6 I've fixed cases where an
IRBuilder was copied, while an InsertPointGuard should have been used
instead.
The only non-trivial use of the copy constructor is the
getIRBForDbgInsertion() helper, for which I separated construction and
setting of the insertion point in this patch.
Differential Revision: https://reviews.llvm.org/D74693
Compare: https://github.com/llvm/llvm-project/compare/85508595350e...80397d2d12b0
More information about the All-commits
mailing list