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

Fixing minor errors in DFG2LLVM.h

parent 70325055
No related branches found
No related tags found
No related merge requests found
......@@ -379,9 +379,8 @@ Function *CodeGenTraversal::addIdxDimArgs(Function* F) {
Function *newF;
for (int i = 0; i < 6; ++i) {
newF = addArgument(F, Type::getInt64Ty(F->getContext()), names[i]);
ArgTypes.push_back(new_arg->getType());
F->replaceAllUsesWith(UndefValue::get(F->getType()));
// F->eraseFromParent();
F->eraseFromParent();
F = newF;
}
errs() << "Function Type after adding args: " << *newF->getFunctionType() << "\n";
......@@ -453,7 +452,7 @@ void CodeGenTraversal::initTimerAPI() {
// Timer Routines
// Initialize the timer set
void CodeGenTraversal::initializeTimerSet(Instruction* InsertBefore) {
DEBUG(errs() << "Inserting call to: " << *llvm_visc_initializeTimerSet << "\n");
//DEBUG(errs() << "Inserting call to: " << *llvm_visc_initializeTimerSet << "\n");
TIMER(TimerSet = new GlobalVariable(M,
Type::getInt8PtrTy(M.getContext()),
false,
......
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