37 return CE->getOperand(0);
45 if (GV->hasInitializer())
53 auto *MD = cast<MetadataAsValue>(Op)->getMetadata();
54 if (
auto *V = dyn_cast<ValueAsMetadata>(MD))
58 assert(!cast<MDNode>(MD)->getNumOperands() &&
"Expected an empty MDNode");
static Value * getValueImpl(Value *Op)
static Value * StripCast(Value *C)
ConstantExpr - a constant value that is initialized with an expression using other constant values...
static Value * CastOperand(Value *C)
DbgInfoIntrinsic - This is the common base class for debug info intrinsics.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
Value * getArgOperand(unsigned i) const
getArgOperand/setArgOperand - Return/set the i-th call argument.
LLVM_ATTRIBUTE_UNUSED_RESULT std::enable_if< !is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
DbgValueInst - This represents the llvm.dbg.value instruction.
LLVM Value Representation.
Value * getAddress() const
DbgDeclareInst - This represents the llvm.dbg.declare instruction.
const Value * getValue() const
DbgValueInst - This represents the llvm.dbg.value instruction.