[llvm] [RemoveDIs] Add iterator-taking constructors and Create methods (PR #82778)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 04:30:32 PST 2024
================
@@ -1730,6 +1896,16 @@ class SelectInst : public Instruction {
SelectInst *cloneImpl() const;
public:
+ static SelectInst *Create(Value *C, Value *S1, Value *S2,
+ const Twine &NameStr,
+ BasicBlock::iterator InsertBefore,
+ Instruction *MDFrom = nullptr) {
+ SelectInst *Sel = new (3) SelectInst(C, S1, S2, NameStr, InsertBefore);
----------------
jmorse wrote:
clang-format wanted the space, it also wanted me to fix the existing code but I felt that'd make it harder to review
https://github.com/llvm/llvm-project/pull/82778
More information about the llvm-commits
mailing list