projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comment and clarifying assert.
[oota-llvm.git]
/
include
/
llvm
/
Constants.h
diff --git
a/include/llvm/Constants.h
b/include/llvm/Constants.h
index 20ed1344dbf1e75033ff8adbead358511f72ce00..6545a3fedb9220b8c709ac4facbac885e870bedc 100644
(file)
--- a/
include/llvm/Constants.h
+++ b/
include/llvm/Constants.h
@@
-170,7
+170,7
@@
public:
/// to true.
/// @returns true iff this constant's bits are all set to true.
/// @brief Determine if the value is all ones.
/// to true.
/// @returns true iff this constant's bits are all set to true.
/// @brief Determine if the value is all ones.
- bool is
AllOnesValu
e() const {
+ bool is
MinusOn
e() const {
return Val.isAllOnesValue();
}
return Val.isAllOnesValue();
}
@@
-203,7
+203,7
@@
public:
/// value.
/// @returns true iff this constant is greater or equal to the given number.
/// @brief Determine if the value is greater or equal to the given number.
/// value.
/// @returns true iff this constant is greater or equal to the given number.
/// @brief Determine if the value is greater or equal to the given number.
- bool uge(uint64_t Num) {
+ bool uge(uint64_t Num)
const
{
return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;
}
return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;
}
@@
-329,7
+329,7
@@
class ConstantArray : public Constant {
std::vector<Constant*> >;
ConstantArray(const ConstantArray &); // DO NOT IMPLEMENT
protected:
std::vector<Constant*> >;
ConstantArray(const ConstantArray &); // DO NOT IMPLEMENT
protected:
- ConstantArray(ArrayType *T,
const std::vector<Constant*> &
Val);
+ ConstantArray(ArrayType *T,
ArrayRef<Constant *>
Val);
public:
// ConstantArray accessors
static Constant *get(ArrayType *T, ArrayRef<Constant*> V);
public:
// ConstantArray accessors
static Constant *get(ArrayType *T, ArrayRef<Constant*> V);
@@
-390,7
+390,7
@@
struct OperandTraits<ConstantArray> :
public VariadicOperandTraits<ConstantArray> {
};
public VariadicOperandTraits<ConstantArray> {
};
-DEFINE_TRANSPARENT_
CASTED_
OPERAND_ACCESSORS(ConstantArray, Constant)
+DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantArray, Constant)
//===----------------------------------------------------------------------===//
// ConstantStruct - Constant Struct Declarations
//===----------------------------------------------------------------------===//
// ConstantStruct - Constant Struct Declarations
@@
-400,7
+400,7
@@
class ConstantStruct : public Constant {
std::vector<Constant*> >;
ConstantStruct(const ConstantStruct &); // DO NOT IMPLEMENT
protected:
std::vector<Constant*> >;
ConstantStruct(const ConstantStruct &); // DO NOT IMPLEMENT
protected:
- ConstantStruct(StructType *T,
const std::vector<Constant*> &
Val);
+ ConstantStruct(StructType *T,
ArrayRef<Constant *>
Val);
public:
// ConstantStruct accessors
static Constant *get(StructType *T, ArrayRef<Constant*> V);
public:
// ConstantStruct accessors
static Constant *get(StructType *T, ArrayRef<Constant*> V);
@@
-450,7
+450,7
@@
struct OperandTraits<ConstantStruct> :
public VariadicOperandTraits<ConstantStruct> {
};
public VariadicOperandTraits<ConstantStruct> {
};
-DEFINE_TRANSPARENT_
CASTED_
OPERAND_ACCESSORS(ConstantStruct, Constant)
+DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantStruct, Constant)
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
@@
-461,7
+461,7
@@
class ConstantVector : public Constant {
std::vector<Constant*> >;
ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT
protected:
std::vector<Constant*> >;
ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT
protected:
- ConstantVector(VectorType *T,
const std::vector<Constant*> &
Val);
+ ConstantVector(VectorType *T,
ArrayRef<Constant *>
Val);
public:
// ConstantVector accessors
static Constant *get(ArrayRef<Constant*> V);
public:
// ConstantVector accessors
static Constant *get(ArrayRef<Constant*> V);
@@
-501,7
+501,7
@@
struct OperandTraits<ConstantVector> :
public VariadicOperandTraits<ConstantVector> {
};
public VariadicOperandTraits<ConstantVector> {
};
-DEFINE_TRANSPARENT_
CASTED_
OPERAND_ACCESSORS(ConstantVector, Constant)
+DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantVector, Constant)
//===----------------------------------------------------------------------===//
/// ConstantPointerNull - a constant pointer value that points to null
//===----------------------------------------------------------------------===//
/// ConstantPointerNull - a constant pointer value that points to null
@@
-575,7
+575,7
@@
struct OperandTraits<BlockAddress> :
public FixedNumOperandTraits<BlockAddress, 2> {
};
public FixedNumOperandTraits<BlockAddress, 2> {
};
-DEFINE_TRANSPARENT_
CASTED_
OPERAND_ACCESSORS(BlockAddress, Value)
+DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BlockAddress, Value)
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
@@
-884,7
+884,7
@@
struct OperandTraits<ConstantExpr> :
public VariadicOperandTraits<ConstantExpr, 1> {
};
public VariadicOperandTraits<ConstantExpr, 1> {
};
-DEFINE_TRANSPARENT_
CASTED_
OPERAND_ACCESSORS(ConstantExpr, Constant)
+DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantExpr, Constant)
//===----------------------------------------------------------------------===//
/// UndefValue - 'undef' values are things that do not have specified contents.
//===----------------------------------------------------------------------===//
/// UndefValue - 'undef' values are things that do not have specified contents.