29 return F->getIntrinsicID() == Intrinsic::experimental_gc_statepoint;
61 uint64_t StatepointID;
68 "statepoint-num-patch-bytes");
69 if (AttrNumPatchBytes.isStringAttribute())
70 if (!AttrNumPatchBytes.getValueAsString().getAsInteger(10, NumPatchBytes))
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.
bool hasAttribute(AttrKind Val) const
Return true if the attribute is present.
bool isGCRelocate(ImmutableCallSite CS)
Optional< uint32_t > NumPatchBytes
bool isGCResult(ImmutableCallSite CS)
StatepointDirectives parseStatepointDirectivesFromAttrs(AttributeSet AS)
Parse out statepoint directives from the function attributes present in AS.
InstrTy * getInstruction() const
static const Function * getCalledFunction(ImmutableCallSite CS)
bool isStatepointDirectiveAttr(Attribute Attr)
Return true if the 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...
ImmutableCallSite - establish a view to a call site for examination.
bool isStringAttribute() const
Return true if the attribute is a string (target-dependent) attribute.
Attribute getAttribute(unsigned Index, Attribute::AttrKind Kind) const
Return the attribute object that exists at the given index.
bool isStatepoint(ImmutableCallSite CS)
StringRef getValueAsString() const
Return the attribute's value as a string.
FunTy * getCalledFunction() const
getCalledFunction - Return the function being called if this is a direct call, otherwise return null ...
LLVM Value Representation.