Ignore:
Timestamp:
May 19, 2017, 3:50:39 PM (2 years ago)
Author:
lindanl
Message:

Optimize compilation for NVPTX driver.

File:
1 edited

Legend:

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

    r5458 r5461  
    111111}
    112112
    113 void NVPTXDriver::finalizeAndCompile(Function * mainFunc, std::string IRFilename, std::string PTXFilename) {
     113void NVPTXDriver::finalizeAndCompile(Function * mainFunc, std::string PTXFilename) {
    114114
    115115    legacy::PassManager PM;
     
    134134    PM.run(*mMainModule); 
    135135
    136     std::error_code error;
    137     raw_fd_ostream out(IRFilename, error, sys::fs::OpenFlags::F_None);
    138     mMainModule->print(out, nullptr);
    139 
    140136    if (LLVM_UNLIKELY(codegen::DebugOptionIsSet(codegen::ShowIR)))
    141137            mMainModule->dump();
    142138
    143     llvm2ptx(IRFilename, PTXFilename);
     139    llvm2ptx(mMainModule, PTXFilename);
    144140}
    145141
Note: See TracChangeset for help on using the changeset viewer.