Ignore:
Timestamp:
Apr 19, 2017, 1:41:55 PM (2 years ago)
Author:
cameron
Message:

Speed-up file output using new temporary files; unlinking old files

File:
1 edited

Legend:

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

    r5411 r5415  
    6262    //  Create a call to:  int fclose ( FILE * stream );
    6363    llvm::Value * CreateFCloseCall(llvm::Value * stream);
     64    //  Create a call to:  int remove(const char *path);
     65    llvm::Value * CreateRemoveCall(llvm::Value * path);
     66   
     67    //  Create a call to:  int rename(const char *old, const char *new);
     68    llvm::Value * CreateRenameCall(llvm::Value * oldName, llvm::Value * newName);
    6469   
    6570    llvm::Function * GetPrintf();
     
    7580    //  Create a call to:  int close(int filedes);
    7681    llvm::Value * CreateCloseCall(llvm::Value * fildes);
     82    //  Create a call to:  int unlink(const char *path);
     83    llvm::Value * CreateUnlinkCall(llvm::Value * path);
    7784
    78 
     85    //  Create calls to stdlib.h functions.
     86    //
     87    //  Create a call to:  int mkstemp (char *template);
     88    llvm::Value * CreateMkstempCall(llvm::Value * ftemplate);
     89   
     90    //  Create a call to:  size_t strlen(const char *str);
     91    llvm::Value * CreateStrlenCall(llvm::Value * str);
     92   
     93   
     94   
    7995    llvm::Value * CreateAnonymousMMap(llvm::Value * size);
    8096
Note: See TracChangeset for help on using the changeset viewer.