Skip to content

Commit 4989e7b

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 c376e8d commit 4989e7b

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
@@ -3063,7 +3063,7 @@ Floating-point Environment Operand Bundles
30633063
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30643064

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

@@ -3095,7 +3095,7 @@ string value, which may have one of the values:
30953095
"maytrap"
30963096

30973097
It has the same meaning as the corresponding argument in
3098-
:ref:`constrained intrinsics <_constrainedfp>`.
3098+
:ref:`constrained intrinsics <constrainedfp>`.
30993099

31003100
.. _moduleasm:
31013101

llvm/include/llvm/IR/AutoUpgrade.h

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

114-
CallBase *upgradeConstrainedFunctionCall(CallBase *CB);
115-
116114
} // End llvm namespace
117115

118116
#endif

llvm/lib/IR/AutoUpgrade.cpp

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

43604360
Builder.SetInsertPoint(CB->getParent(), CB->getIterator());
4361-
MDNode *FPMath = CB->getMetadata(LLVMContext::MD_fpmath);
4362-
NewCB = Builder.CreateCall(F, Args, Bundles, CB->getName(), FPMath);
4363-
4361+
NewCB = Builder.CreateCall(F, Args, Bundles, CB->getName());
43644362
NewCB->copyMetadata(*CB);
43654363
AttributeList Attrs = CB->getAttributes();
43664364
NewCB->setAttributes(Attrs);

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ PruningFunctionCloner::cloneInstruction(BasicBlock::const_iterator II) {
497497
}
498498
Args.push_back(
499499
MetadataAsValue::get(Ctx, MDString::get(Ctx, "fpexcept.ignore")));
500-
addFPExceptionBundle(Ctx, Bundles, fp::ExceptionBehavior::ebIgnore);
500+
addFPExceptionBundle(Ctx, Bundles, fp::ExceptionBehavior::ebIgnore);
501501
auto *NewConstrainedInst =
502502
CallInst::Create(IFn, Args, Bundles, OldInst.getName() + ".strict");
503503

0 commit comments

Comments
 (0)