]> granicus.if.org Git - llvm/commitdiff
[NFC][IR] Move CreateFNegFMF(...) next to CreateFNeg(...).
authorCameron McInally <cameron.mcinally@nyu.edu>
Wed, 19 Jun 2019 16:35:15 +0000 (16:35 +0000)
committerCameron McInally <cameron.mcinally@nyu.edu>
Wed, 19 Jun 2019 16:35:15 +0000 (16:35 +0000)
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

include/llvm/IR/IRBuilder.h

index 636fa2cee2bc587f3b4029d613423e5a9f14f80f..9c2ca64c7b0b818876f8a5d82592e77df1b8b09e 100644 (file)
@@ -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) {