#include "llvm/Assembly/Writer.h"
#include "llvm/Target/TargetData.h"
#include "Support/CommandLine.h"
+#include "Support/Statistic.h"
#include <math.h> // For fmod
#include <signal.h>
#include <setjmp.h>
using std::cout;
using std::cerr;
+namespace {
+ Statistic<> NumDynamicInsts("lli", "Number of dynamic instructions executed");
+}
+
static cl::opt<bool>
QuietMode("quiet", cl::desc("Do not emit any non-program output"));
if (Trace)
CW << "Run:" << I;
+ // Track the number of dynamic instructions executed.
+ ++NumDynamicInsts;
+
// Set a sigsetjmp buffer so that we can recover if an error happens during
// instruction execution...
//
cl::value_desc("function name"));
static cl::opt<bool>
-DebugMode("debug", cl::desc("Start program in debugger"));
-
-static cl::alias
-DebugModeA("d", cl::desc("Alias for -debug"), cl::aliasopt(DebugMode));
+DebugMode("d", cl::desc("Start program in debugger"));
static cl::opt<bool>
TraceMode("trace", cl::desc("Enable Tracing"));