Ignore:
Timestamp:
Apr 25, 2017, 12:27:24 PM (2 years ago)
Author:
cameron
Message:

ShowKernelCycles? option

Location:
icGREP/icgrep-devel/icgrep/IR_Gen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r5422 r5424  
    727727}
    728728
     729Value * CBuilder::CreateReadCycleCounter() {
     730    Value * cycleCountFunc = Intrinsic::getDeclaration(mMod, Intrinsic::readcyclecounter);
     731    return CreateCall(cycleCountFunc, std::vector<Value *>({}));
     732}
     733
     734
    729735CBuilder::CBuilder(Module * const m, const unsigned GeneralRegisterWidthInBits, const bool SupportsIndirectBr, const unsigned CacheLineAlignmentInBytes)
    730736: IRBuilder<>(m->getContext())
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.h

    r5422 r5424  
    177177
    178178    llvm::Value * CreateCeilLog2(llvm::Value * value);
     179   
     180    llvm::Value * CreateReadCycleCounter();
    179181
    180182protected:
Note: See TracChangeset for help on using the changeset viewer.