Skip to content

Instantly share code, notes, and snippets.

View venkyjntu-git's full-sized avatar

venkyjntu-git

View GitHub Profile
@venkyjntu-git
venkyjntu-git / Fprofiler.cpp
Last active September 9, 2022 03:58
LLVM Pass for counting number of functions, number of call sites , number of indirect call sites
#include "llvm/Pass.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/Support/Casting.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/DebugInfoMetadata.h"