mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Fix assert comments in Instruction.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -145,31 +145,31 @@ void Instruction::setFastMathFlags(FastMathFlags FMF) {
|
|||||||
|
|
||||||
/// Determine whether the unsafe-algebra flag is set.
|
/// Determine whether the unsafe-algebra flag is set.
|
||||||
bool Instruction::hasUnsafeAlgebra() const {
|
bool Instruction::hasUnsafeAlgebra() const {
|
||||||
assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
|
assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
|
||||||
return cast<FPMathOperator>(this)->hasUnsafeAlgebra();
|
return cast<FPMathOperator>(this)->hasUnsafeAlgebra();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Determine whether the no-NaNs flag is set.
|
/// Determine whether the no-NaNs flag is set.
|
||||||
bool Instruction::hasNoNaNs() const {
|
bool Instruction::hasNoNaNs() const {
|
||||||
assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
|
assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
|
||||||
return cast<FPMathOperator>(this)->hasNoNaNs();
|
return cast<FPMathOperator>(this)->hasNoNaNs();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Determine whether the no-infs flag is set.
|
/// Determine whether the no-infs flag is set.
|
||||||
bool Instruction::hasNoInfs() const {
|
bool Instruction::hasNoInfs() const {
|
||||||
assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
|
assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
|
||||||
return cast<FPMathOperator>(this)->hasNoInfs();
|
return cast<FPMathOperator>(this)->hasNoInfs();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Determine whether the no-signed-zeros flag is set.
|
/// Determine whether the no-signed-zeros flag is set.
|
||||||
bool Instruction::hasNoSignedZeros() const {
|
bool Instruction::hasNoSignedZeros() const {
|
||||||
assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
|
assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
|
||||||
return cast<FPMathOperator>(this)->hasNoSignedZeros();
|
return cast<FPMathOperator>(this)->hasNoSignedZeros();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Determine whether the allow-reciprocal flag is set.
|
/// Determine whether the allow-reciprocal flag is set.
|
||||||
bool Instruction::hasAllowReciprocal() const {
|
bool Instruction::hasAllowReciprocal() const {
|
||||||
assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
|
assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
|
||||||
return cast<FPMathOperator>(this)->hasAllowReciprocal();
|
return cast<FPMathOperator>(this)->hasAllowReciprocal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ bool Instruction::hasAllowReciprocal() const {
|
|||||||
/// operator which supports these flags. See LangRef.html for the meaning of
|
/// operator which supports these flags. See LangRef.html for the meaning of
|
||||||
/// these flats.
|
/// these flats.
|
||||||
FastMathFlags Instruction::getFastMathFlags() const {
|
FastMathFlags Instruction::getFastMathFlags() const {
|
||||||
assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op");
|
assert(isa<FPMathOperator>(this) && "getting fast-math flag on invalid op");
|
||||||
return cast<FPMathOperator>(this)->getFastMathFlags();
|
return cast<FPMathOperator>(this)->getFastMathFlags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user