Ignore:
Timestamp:
Aug 21, 2017, 11:57:06 AM (2 years ago)
Author:
nmedfort
Message:

Bug fixes for IR/ASM writing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/cpudriver.h

    r5493 r5616  
    55namespace llvm { class ExecutionEngine; }
    66namespace llvm { class TargetMachine; }
     7namespace llvm { class raw_fd_ostream; }
    78
    89class ParabixObjectCache;
     
    3334    llvm::ExecutionEngine *                                 mEngine;
    3435    ParabixObjectCache *                                    mCache;
     36    // NOTE: when printing the IR/ASM, we cannot assume they're completely finished after finalizeObject is executed. Instead we store a
     37    // pointer and delete them once the driver (and any processing) is complete. This prevents us from reclaiming the memory early but
     38    // also avoids a potential segmentation fault when writing large files.
     39    llvm::raw_fd_ostream *                                  mIROutputStream;
     40    llvm::raw_fd_ostream *                                  mASMOutputStream;
    3541};
    3642
Note: See TracChangeset for help on using the changeset viewer.