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/IR_Gen/llvm2ptx.h

    r5458 r5461  
    1919using namespace llvm;
    2020
    21 static int llvm2ptx(std::string IRFilename, std::string PTXFilename) {
     21static int llvm2ptx(Module * M, std::string PTXFilename) {
    2222
    2323  LLVMContext Context;
    24 
    25   // Load the module to be compiled...
    2624  SMDiagnostic Err;
    27   std::unique_ptr<Module> M;
    2825  std::unique_ptr<MIRParser> MIR;
    2926  Triple TheTriple;
    30 
    31   M = parseIRFile(IRFilename, Err, Context);
    32   if (!M) {
    33     errs() << IRFilename << ": Cannot parse input file!\n";
    34     return 1;
    35   }
    3627
    3728#ifndef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.