Skip to content
Snippets Groups Projects
Commit 4023a230 authored by Akash Kothari's avatar Akash Kothari :speech_balloon:
Browse files

Uncommenting printing of FunctionCallees -- need to be removed

parent 75b8d054
No related branches found
No related tags found
No related merge requests found
......@@ -819,15 +819,15 @@ bool GenVISC::runOnModule(Module &M) {
llvm_visc_initializeTimerSet = M.getOrInsertFunction("llvm_visc_initializeTimerSet",
runtimeModule->getFunction("llvm_visc_initializeTimerSet")->getFunctionType());
DEBUG(errs() << *llvm_visc_initializeTimerSet);
//DEBUG(errs() << *llvm_visc_initializeTimerSet);
llvm_visc_switchToTimer = M.getOrInsertFunction("llvm_visc_switchToTimer",
runtimeModule->getFunction("llvm_visc_switchToTimer")->getFunctionType());
DEBUG(errs() << *llvm_visc_switchToTimer);
// DEBUG(errs() << *llvm_visc_switchToTimer);
llvm_visc_printTimerSet = M.getOrInsertFunction("llvm_visc_printTimerSet",
runtimeModule->getFunction("llvm_visc_printTimerSet")->getFunctionType());
DEBUG(errs() << *llvm_visc_printTimerSet);
//DEBUG(errs() << *llvm_visc_printTimerSet);
// Insert init context in main
DEBUG(errs() << "Locate __visc__init()\n");
......@@ -1544,7 +1544,7 @@ void GenVISC::initializeTimerSet(Instruction* InsertBefore) {
Constant::getNullValue(Type::getInt8PtrTy(M->getContext())),
"viscTimerSet_GenVISC"));
DEBUG(errs() << "Inserting GV: " << *TimerSet->getType() << *TimerSet << "\n");
DEBUG(errs() << "Inserting call to: " << *llvm_visc_initializeTimerSet << "\n");
//DEBUG(errs() << "Inserting call to: " << *llvm_visc_initializeTimerSet << "\n");
TIMER(TimerSetAddr = CallInst::Create(llvm_visc_initializeTimerSet,
None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment