#include "llvm-jitlink.h"
#include "llvm/Support/CommandLine.h"
#define DEBUG_TYPE …
usingnamespacellvm;
usingnamespacellvm::jitlink;
usingnamespacellvm::orc;
static cl::opt<bool> ShowPrePruneTotalBlockSize(
"pre-prune-total-block-size",
cl::desc("Total size of all blocks (including zero-fill) in all "
"graphs (pre-pruning)"),
cl::init(false));
static cl::opt<bool> ShowPostFixupTotalBlockSize(
"post-fixup-total-block-size",
cl::desc("Total size of all blocks (including zero-fill) in all "
"graphs (post-fixup)"),
cl::init(false));
class StatsPlugin : public ObjectLinkingLayer::Plugin { … };
void StatsPlugin::publish(raw_ostream &OS) { … }
static uint64_t computeTotalBlockSizes(LinkGraph &G) { … }
Error StatsPlugin::recordPrePruneStats(LinkGraph &G) { … }
Error StatsPlugin::recordPostFixupStats(LinkGraph &G) { … }
namespace llvm {
void enableStatistics(Session &S, bool UsingOrcRuntime) { … }
}