llvm.org GIT mirror llvm / a2216a2
[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 Cameron McInally a month ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
13651365 Name);
13661366 }
13671367
1368 Value *CreateNot(Value *V, const Twine &Name = "") {
1369 if (auto *VC = dyn_cast(V))
1370 return Insert(Folder.CreateNot(VC), Name);
1371 return Insert(BinaryOperator::CreateNot(V), Name);
1372 }
1373
13741368 /// Copy fast-math-flags from an instruction rather than using the builder's
13751369 /// default FMF.
13761370 Value *CreateFNegFMF(Value *V, Instruction *FMFSource,
13821376 return Insert(setFPAttrs(BinaryOperator::CreateFNeg(V), nullptr,
13831377 FMFSource->getFastMathFlags()),
13841378 Name);
1379 }
1380
1381 Value *CreateNot(Value *V, const Twine &Name = "") {
1382 if (auto *VC = dyn_cast(V))
1383 return Insert(Folder.CreateNot(VC), Name);
1384 return Insert(BinaryOperator::CreateNot(V), Name);
13851385 }
13861386
13871387 Value *CreateUnOp(Instruction::UnaryOps Opc,