#include “Prereqs.h”
using namespace llvm;
Copyright By PowCoder代写 加微信 powcoder
namespace prereqs {
Prereqs::Prereqs() : ModulePass(ID) {}
void Prereqs::print(Module &M) {
outs() << "Analytics of Module " << M.getName() << "\n";
outs() << " # Functions : " << NumOfFunctions << "\n";
outs() << " # Instructions : " << NumOfInstructions << "\n";
bool Prereqs::runOnModule(Module &M) {
/* Add your code here */
for (auto &function : M.getFunctionList()) {
NumOfFunctions++;
NumOfInstructions += function.getInstructionCount();
/* DO NOT EDIT BELOW THIS LINE */
return false;
char Prereqs::ID = 1;
static RegisterPass
} // namespace prereqs
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com