16 #ifndef LLVM_IR_GLOBALINDIRECTSYMBOL_H 17 #define LLVM_IR_GLOBALINDIRECTSYMBOL_H 39 void *
operator new(
size_t s) {
40 return User::operator
new(s, 1);
79 return V->
getValueID() == Value::GlobalAliasVal ||
93 #endif // LLVM_IR_GLOBALINDIRECTSYMBOL_H A parsed version of the target data layout string in and methods for querying it. ...
const GlobalObject * getBaseObject() const
unsigned getValueID() const
Return an ID for the concrete type of this object.
const Value * stripInBoundsOffsets() const
Strip off pointer casts and inbounds GEPs.
This class represents lattice values for constants.
GlobalObject * getBaseObject()
void setIndirectSymbol(Constant *Symbol)
These methods set and retrieve indirect symbol.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
GlobalIndirectSymbol & operator=(const GlobalIndirectSymbol &)=delete
#define DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CLASS, VALUECLASS)
Macro for generating out-of-class operand accessor definitions.
Value * getOperand(unsigned i) const
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important base class in LLVM.
static bool classof(const Value *V)
const GlobalObject * getBaseObject(const DataLayout &DL, APInt &Offset) const
Constant * getIndirectSymbol()
ValueTy
Concrete subclass of this.
void setOperand(unsigned i, Value *Val)
const Value * stripAndAccumulateInBoundsConstantOffsets(const DataLayout &DL, APInt &Offset) const
Accumulate offsets from stripInBoundsConstantOffsets().
Class for arbitrary precision integers.
LinkageTypes
An enumeration for the kinds of linkage for global values.
Compile-time customization of User operands.
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
const Constant * getIndirectSymbol() const
LLVM Value Representation.
GlobalObject * getBaseObject(const DataLayout &DL, APInt &Offset)
GlobalIndirectSymbol(Type *Ty, ValueTy VTy, unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, Constant *Symbol)
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant)
Provide fast operand accessors.
FixedNumOperandTraits - determine the allocation regime of the Use array when it is a prefix to the U...