[llvm] r363836 - [NFC][IR] Move CreateFNegFMF(...) next to CreateFNeg(...).

Cameron McInally via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 09:35:15 PDT 2019


Author: mcinally
Date: Wed Jun 19 09:35:15 2019
New Revision: 363836

URL: http://llvm.org/viewvc/llvm-project?rev=363836&view=rev
Log:
[NFC][IR] Move CreateFNegFMF(...) next to CreateFNeg(...).

This is now in line with the other Create*FMF(...) functions.

Modified:
    llvm/trunk/include/llvm/IR/IRBuilder.h

Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=363836&r1=363835&r2=363836&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Wed Jun 19 09:35:15 2019
@@ -1366,12 +1366,6 @@ public:
                   Name);
   }
 
-  Value *CreateNot(Value *V, const Twine &Name = "") {
-    if (auto *VC = dyn_cast<Constant>(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<Constant>(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) {




More information about the llvm-commits mailing list