//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_CONSTPOOLVALS_H
-#define LLVM_CONSTPOOLVALS_H
+#ifndef LLVM_CONSTANT_VALS_H
+#define LLVM_CONSTANT_VALS_H
#include "llvm/User.h"
#include "Support/DataTypes.h"
virtual void setName(const std::string &name, SymbolTable *ST = 0);
// Static constructor to get a '0' constant of arbitrary type...
- static Constant *getNullConstant(const Type *Ty);
+ static Constant *getNullValue(const Type *Ty);
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const = 0;
virtual void print(std::ostream &O) const;
inline bool getValue() const { return Val; }
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return this == False; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static ConstantInt *get(const Type *Ty, unsigned char V);
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return Val.Unsigned == 0; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
inline double getValue() const { return Val; }
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return Val == 0; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
inline const std::vector<Use> &getValues() const { return Operands; }
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return false; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
inline const std::vector<Use> &getValues() const { return Operands; }
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return false; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
}
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return false; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static ConstantPointerNull *get(const PointerType *T);
// isNullValue - Return true if this is the value that would be returned by
- // getNullConstant.
+ // getNullValue.
virtual bool isNullValue() const { return true; }
// Methods for support type inquiry through isa, cast, and dyn_cast: