#include "llvm/IR/AbstractCallSite.h"
#include "llvm/ADT/Statistic.h"
usingnamespacellvm;
#define DEBUG_TYPE …
STATISTIC(NumCallbackCallSites, "Number of callback call sites created");
STATISTIC(NumDirectAbstractCallSites,
"Number of direct abstract call sites created");
STATISTIC(NumInvalidAbstractCallSitesUnknownUse,
"Number of invalid abstract call sites created (unknown use)");
STATISTIC(NumInvalidAbstractCallSitesUnknownCallee,
"Number of invalid abstract call sites created (unknown callee)");
STATISTIC(NumInvalidAbstractCallSitesNoCallback,
"Number of invalid abstract call sites created (no callback)");
void AbstractCallSite::getCallbackUses(
const CallBase &CB, SmallVectorImpl<const Use *> &CallbackUses) { … }
AbstractCallSite::AbstractCallSite(const Use *U)
: … { … }