search for: cachecounter

Displaying 4 results from an estimated 4 matches for "cachecounter".

2013 Jan 16
2
[LLVMdev] Dynamic Profiling - Instrumentation basic query
...rofiling.cpp but couldn't figure out the problem. Could you please see where I am going wrong here - virtual bool runOnModule(Module &M) { Constant *hookFunc; LLVMContext& context = M.getContext(); hookFunc = M.getOrInsertFunction("cacheCounter",Type::getVoidTy(M.getContext()), llvm::Type::getInt32Ty(M.getContext()), (Type*)0); cacheCounter= cast<Function>(hookFunc); for(Module::i...
2013 Jan 20
0
[LLVMdev] Dynamic Profiling - Instrumentation basic query
...t the problem. Could you please see where I am going > wrong here - > > virtual bool runOnModule(Module &M) > { > Constant *hookFunc; > LLVMContext& context = M.getContext(); > hookFunc = > M.getOrInsertFunction("cacheCounter",Type::getVoidTy(M.getContext()), > > llvm::Type::getInt32Ty(M.getContext()), > (Type*)0); > cacheCounter= cast<Function>(hookFunc); > > for(Module::iterator F = M.begin(), E = M.end(...
2013 Jan 15
0
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi Silky, On 14/01/13 01:47, Silky Arora wrote: > I need to profile the code for branches (branch mis predicts > simulation), load/store instructions (for cache hits/miss rate), and a > couple of other things and therefore, would need to instrument the code. > However, I would like to know if writing the output to a file would > increase the execution time, or is it the profiling
2013 Jan 14
2
[LLVMdev] Dynamic Profiling - Instrumentation basic query
Hi, @Alastair: Thanks a bunch for explaining this so well. I was able to write a simple profiler, and run it. I need to profile the code for branches (branch mis predicts simulation), load/store instructions (for cache hits/miss rate), and a couple of other things and therefore, would need to instrument the code. However, I would like to know if writing the output to a file would increase the