Skip to content

Commit 868660b

Browse files
committed
Small changes: docs, clang-format, revievers' notes
- Fix Doxygen error, - Fix clang-format error, - remove unused function declaration, - remove setting MD_fpmath, it is made by copyMetadata.
1 parent da73ead commit 868660b

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

llvm/docs/LangRef.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,7 +3011,7 @@ Floating-point Environment Operand Bundles
30113011
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30123012

30133013
These operand bundles provide details on how the operation interacts with the
3014-
:ref:`floating-point environment <_floatenv>`. There are two kinds of such
3014+
:ref:`floating-point environment <floatenv>`. There are two kinds of such
30153015
operand bundles, which characterize interaction with floating-point control
30163016
modes and status bits respectively.
30173017

@@ -3043,7 +3043,7 @@ string value, which may have one of the values:
30433043
"maytrap"
30443044

30453045
It has the same meaning as the corresponding argument in
3046-
:ref:`constrained intrinsics <_constrainedfp>`.
3046+
:ref:`constrained intrinsics <constrainedfp>`.
30473047

30483048
.. _moduleasm:
30493049

llvm/include/llvm/IR/AutoUpgrade.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ namespace llvm {
107107
/// Upgrade operand bundles (without knowing about their user instruction).
108108
void UpgradeOperandBundles(std::vector<OperandBundleDef> &OperandBundles);
109109

110-
CallBase *upgradeConstrainedFunctionCall(CallBase *CB);
111-
112110
} // End llvm namespace
113111

114112
#endif

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4356,9 +4356,7 @@ static CallBase *upgradeConstrainedIntrinsicCall(CallBase *CB, Function *F,
43564356
Bundles.append(NewBundles);
43574357

43584358
Builder.SetInsertPoint(CB->getParent(), CB->getIterator());
4359-
MDNode *FPMath = CB->getMetadata(LLVMContext::MD_fpmath);
4360-
NewCB = Builder.CreateCall(F, Args, Bundles, CB->getName(), FPMath);
4361-
4359+
NewCB = Builder.CreateCall(F, Args, Bundles, CB->getName());
43624360
NewCB->copyMetadata(*CB);
43634361
AttributeList Attrs = CB->getAttributes();
43644362
NewCB->setAttributes(Attrs);

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ PruningFunctionCloner::cloneInstruction(BasicBlock::const_iterator II) {
479479
}
480480
Args.push_back(
481481
MetadataAsValue::get(Ctx, MDString::get(Ctx, "fpexcept.ignore")));
482-
addFPExceptionBundle(Ctx, Bundles, fp::ExceptionBehavior::ebIgnore);
482+
addFPExceptionBundle(Ctx, Bundles, fp::ExceptionBehavior::ebIgnore);
483483
auto *NewConstrainedInst =
484484
CallInst::Create(IFn, Args, Bundles, OldInst.getName() + ".strict");
485485

0 commit comments

Comments
 (0)