22 return F->getIntrinsicID() == Intrinsic::experimental_gc_statepoint;
27 if (
auto *Call = dyn_cast<CallBase>(V))
37 return isa<GCRelocateInst>(Call);
41 if (
auto *Call = dyn_cast<CallBase>(V))
49 if (
auto *Call = dyn_cast<CallBase>(V))
65 uint64_t StatepointID;
72 "statepoint-num-patch-bytes");
73 if (AttrNumPatchBytes.isStringAttribute())
74 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.
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
bool isStringAttribute() const
Return true if the attribute is a string (target-dependent) attribute.
bool isStatepoint(const CallBase *Call)
bool hasAttribute(AttrKind Val) const
Return true if the attribute is present.
Optional< uint32_t > NumPatchBytes
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.
bool isGCRelocate(const CallBase *Call)
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.
Function * getCalledFunction() const
Returns the function called, or null if this is an indirect function invocation.
LLVM Value Representation.
bool isGCResult(const CallBase *Call)