aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm12/include/llvm/IR/ConstantRange.h
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:39 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:39 +0300
commite9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch)
tree64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/IR/ConstantRange.h
parent2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff)
downloadydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/IR/ConstantRange.h')
-rw-r--r--contrib/libs/llvm12/include/llvm/IR/ConstantRange.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/contrib/libs/llvm12/include/llvm/IR/ConstantRange.h b/contrib/libs/llvm12/include/llvm/IR/ConstantRange.h
index 5393a3f92c..b1669359db 100644
--- a/contrib/libs/llvm12/include/llvm/IR/ConstantRange.h
+++ b/contrib/libs/llvm12/include/llvm/IR/ConstantRange.h
@@ -157,14 +157,14 @@ public:
const APInt &Other,
unsigned NoWrapKind);
- /// Returns true if ConstantRange calculations are supported for intrinsic
- /// with \p IntrinsicID.
- static bool isIntrinsicSupported(Intrinsic::ID IntrinsicID);
-
- /// Compute range of intrinsic result for the given operand ranges.
- static ConstantRange intrinsic(Intrinsic::ID IntrinsicID,
- ArrayRef<ConstantRange> Ops);
-
+ /// Returns true if ConstantRange calculations are supported for intrinsic
+ /// with \p IntrinsicID.
+ static bool isIntrinsicSupported(Intrinsic::ID IntrinsicID);
+
+ /// Compute range of intrinsic result for the given operand ranges.
+ static ConstantRange intrinsic(Intrinsic::ID IntrinsicID,
+ ArrayRef<ConstantRange> Ops);
+
/// Set up \p Pred and \p RHS such that
/// ConstantRange::makeExactICmpRegion(Pred, RHS) == *this. Return true if
/// successful.
@@ -268,14 +268,14 @@ public:
return !operator==(CR);
}
- /// Compute the maximal number of active bits needed to represent every value
- /// in this range.
- unsigned getActiveBits() const;
-
- /// Compute the maximal number of bits needed to represent every value
- /// in this signed range.
- unsigned getMinSignedBits() const;
-
+ /// Compute the maximal number of active bits needed to represent every value
+ /// in this range.
+ unsigned getActiveBits() const;
+
+ /// Compute the maximal number of bits needed to represent every value
+ /// in this signed range.
+ unsigned getMinSignedBits() const;
+
/// Subtract the specified constant from the endpoints of this constant range.
ConstantRange subtract(const APInt &CI) const;
@@ -424,11 +424,11 @@ public:
/// value in \p Other.
ConstantRange srem(const ConstantRange &Other) const;
- /// Return a new range representing the possible values resulting from
- /// a binary-xor of a value in this range by an all-one value,
- /// aka bitwise complement operation.
- ConstantRange binaryNot() const;
-
+ /// Return a new range representing the possible values resulting from
+ /// a binary-xor of a value in this range by an all-one value,
+ /// aka bitwise complement operation.
+ ConstantRange binaryNot() const;
+
/// Return a new range representing the possible values resulting
/// from a binary-and of a value in this range by a value in \p Other.
ConstantRange binaryAnd(const ConstantRange &Other) const;
@@ -484,9 +484,9 @@ public:
ConstantRange inverse() const;
/// Calculate absolute value range. If the original range contains signed
- /// min, then the resulting range will contain signed min if and only if
- /// \p IntMinIsPoison is false.
- ConstantRange abs(bool IntMinIsPoison = false) const;
+ /// min, then the resulting range will contain signed min if and only if
+ /// \p IntMinIsPoison is false.
+ ConstantRange abs(bool IntMinIsPoison = false) const;
/// Represents whether an operation on the given constant range is known to
/// always or never overflow.