aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-11-16 18:09:44 +0000
committerSanjay Patel <spatel@rotateright.com>2016-11-16 18:09:44 +0000
commit4ce99d4d240b2d7b400e7a8bb70d6c02e52ddb42 (patch)
tree573ff73e43013054cf0404f9d8cd8d7c9e1ab1df
parentcecb0183b297e0d483ca7154fd535c030bea39a9 (diff)
downloadllvm-4ce99d4d240b2d7b400e7a8bb70d6c02e52ddb42.zip
llvm-4ce99d4d240b2d7b400e7a8bb70d6c02e52ddb42.tar.gz
llvm-4ce99d4d240b2d7b400e7a8bb70d6c02e52ddb42.tar.bz2
fix comment formatting; NFC
llvm-svn: 287127
-rw-r--r--llvm/include/llvm/IR/Operator.h6
-rw-r--r--llvm/lib/IR/Instructions.cpp12
2 files changed, 7 insertions, 11 deletions
diff --git a/llvm/include/llvm/IR/Operator.h b/llvm/include/llvm/IR/Operator.h
index 27d435d..3810116 100644
--- a/llvm/include/llvm/IR/Operator.h
+++ b/llvm/include/llvm/IR/Operator.h
@@ -299,9 +299,9 @@ public:
return FastMathFlags(SubclassOptionalData);
}
- /// \brief Get the maximum error permitted by this operation in ULPs. An
- /// accuracy of 0.0 means that the operation should be performed with the
- /// default precision.
+ /// Get the maximum error permitted by this operation in ULPs. An accuracy of
+ /// 0.0 means that the operation should be performed with the default
+ /// precision.
float getFPAccuracy() const;
static inline bool classof(const Instruction *I) {
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 693879b..b679269 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -2236,11 +2236,10 @@ const Value *BinaryOperator::getNotArgument(const Value *BinOp) {
}
-// swapOperands - Exchange the two operands to this instruction. This
-// instruction is safe to use on any binary instruction and does not
-// modify the semantics of the instruction. If the instruction is
-// order dependent (SetLT f.e.) the opcode is changed.
-//
+// Exchange the two operands to this instruction. This instruction is safe to
+// use on any binary instruction and does not modify the semantics of the
+// instruction. If the instruction is order-dependent (SetLT f.e.), the opcode
+// is changed.
bool BinaryOperator::swapOperands() {
if (!isCommutative())
return true; // Can't commute operands
@@ -2253,9 +2252,6 @@ bool BinaryOperator::swapOperands() {
// FPMathOperator Class
//===----------------------------------------------------------------------===//
-/// getFPAccuracy - Get the maximum error permitted by this operation in ULPs.
-/// An accuracy of 0.0 means that the operation should be performed with the
-/// default precision.
float FPMathOperator::getFPAccuracy() const {
const MDNode *MD =
cast<Instruction>(this)->getMetadata(LLVMContext::MD_fpmath);