74 uint64_t StatepointID;
81 "statepoint-num-patch-bytes");
82 if (AttrNumPatchBytes.isStringAttribute())
83 if (!AttrNumPatchBytes.getValueAsString().getAsInteger(10, NumPatchBytes))
This class represents lattice values for constants.
StatepointDirectives parseStatepointDirectivesFromAttrs(AttributeList AS)
Parse out statepoint directives from the function attributes present in AS.
bool isGCRelocate(ImmutableCallSite CS)
bool isStringAttribute() const
Return true if the attribute is a string (target-dependent) attribute.
InstrTy * getInstruction() const
bool hasAttribute(AttrKind Val) const
Return true if the attribute is present.
Optional< uint32_t > NumPatchBytes
bool isGCResult(ImmutableCallSite CS)
Attribute getAttribute(unsigned Index, Attribute::AttrKind Kind) const
Return the attribute object that exists at the given index.
std::enable_if< std::numeric_limits< T >::is_signed, bool >::type getAsInteger(unsigned Radix, T &Result) const
Parse the current string as an integer of the specified radix.
static const Function * getCalledFunction(ImmutableCallSite CS)
bool isStatepointDirectiveAttr(Attribute Attr)
Return true if the Attr is an attribute that is a statepoint directive.
Optional< uint64_t > StatepointID
Call sites that get wrapped by a gc.statepoint (currently only in RewriteStatepointsForGC and potenti...
StringRef getValueAsString() const
Return the attribute's value as a string.
Establish a view to a call site for examination.
bool isStatepoint(ImmutableCallSite CS)
FunTy * getCalledFunction() const
Return the function being called if this is a direct call, otherwise return null (if it's an indirect...
LLVM Value Representation.