Ignore:
Timestamp:
Sep 21, 2018, 12:02:43 PM (11 months ago)
Author:
xwa163
Message:
  1. Small optimization for U8NonFinal Stream in UTF-8 LZ4 Grep
  2. Print total CPU cycles in CPU Counter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/pipeline.cpp

    r6047 r6165  
    320320            b->CreateCall(b->GetDprintf(), {b->getInt32(2), stringPtr, fItems, fCycles, b->CreateFDiv(fCycles, fItems), percentage});
    321321        }
     322        const auto formatString = "Total CPU Cycles: %7.2e\n ";
     323        Value * stringPtr = b->CreatePointerCast(b->GetString(formatString), b->getInt8PtrTy());
     324        b->CreateCall(b->GetDprintf(), {b->getInt32(2), stringPtr, fTotalCycle});
    322325    }
    323326   
     
    401404            b->CreateCall(b->GetDprintf(), {b->getInt32(2), stringPtr, fItems, fCycles, b->CreateFDiv(fCycles, fItems), percentage});
    402405        }
     406
     407        const auto formatString = "Total CPU Cycles: %7.2e\n ";
     408        Value * stringPtr = b->CreatePointerCast(b->GetString(formatString), b->getInt8PtrTy());
     409        b->CreateCall(b->GetDprintf(), {b->getInt32(2), stringPtr, fTotalCycle});
    403410    }
    404411
Note: See TracChangeset for help on using the changeset viewer.