From: Cameron McInally Date: Wed, 19 Jun 2019 16:35:15 +0000 (+0000) Subject: [NFC][IR] Move CreateFNegFMF(...) next to CreateFNeg(...). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2216a266efb78e0cc12066b5305dc837a51658e;p=llvm [NFC][IR] Move CreateFNegFMF(...) next to CreateFNeg(...). This is now in line with the other Create*FMF(...) functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363836 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 636fa2cee2b..9c2ca64c7b0 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -1366,12 +1366,6 @@ public: Name); } - Value *CreateNot(Value *V, const Twine &Name = "") { - if (auto *VC = dyn_cast(V)) - return Insert(Folder.CreateNot(VC), Name); - return Insert(BinaryOperator::CreateNot(V), Name); - } - /// Copy fast-math-flags from an instruction rather than using the builder's /// default FMF. Value *CreateFNegFMF(Value *V, Instruction *FMFSource, @@ -1385,6 +1379,12 @@ public: Name); } + Value *CreateNot(Value *V, const Twine &Name = "") { + if (auto *VC = dyn_cast(V)) + return Insert(Folder.CreateNot(VC), Name); + return Insert(BinaryOperator::CreateNot(V), Name); + } + Value *CreateUnOp(Instruction::UnaryOps Opc, Value *V, const Twine &Name = "", MDNode *FPMathTag = nullptr) {