Ignore:
Timestamp:
Apr 18, 2017, 12:51:26 PM (2 years ago)
Author:
nmedfort
Message:

Potential bug fix for 32-bit. Modified MRemap to check for Linux OS support. Added MMapAdvise to CBuilder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/kernel.h

    r5408 r5411  
    8080    void initializeInstance() final;
    8181
     82    void terminateInstance() final;
     83
    8284    llvm::Value * getProducedItemCount(const std::string & name, llvm::Value * doFinal = nullptr) const final;
    8385
     
    121123        iBuilder->CreateStore(value, getScalarFieldPtr(index));
    122124    }
    123 
    124125
    125126    // Synchronization actions for executing a kernel for a particular logical segment.
     
    163164    llvm::CallInst * createDoSegmentCall(const std::vector<llvm::Value *> & args) const;
    164165
    165     llvm::CallInst * createGetAccumulatorCall(llvm::Value * self, const std::string & accumName) const;
     166    llvm::CallInst * createGetAccumulatorCall(const std::string & accumName) const;
    166167
    167168    virtual ~KernelBuilder() = 0;
     
    201202    virtual void generateDoSegmentMethod(llvm::Value * doFinal, const std::vector<llvm::Value *> & producerPos) = 0;
    202203
     204    virtual void generateTerminateMethod() { }
     205
    203206    // Add an additional scalar field to the KernelState struct.
    204207    // Must occur before any call to addKernelDeclarations or createKernelModule.
     
    284287    void callGenerateDoSegmentMethod();
    285288
     289    void callGenerateTerminateMethod();
    286290
    287291private:
Note: See TracChangeset for help on using the changeset viewer.