Ignore:
Timestamp:
Apr 25, 2017, 2:33:31 PM (2 years ago)
Author:
nmedfort
Message:

Changes towards separate compilation

File:
1 edited

Legend:

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

    r5422 r5425  
    77#define KERNEL_BUILDER_H
    88
    9 #include "interface.h"      // for KernelInterface
     9#include "interface.h"
    1010#include <boost/container/flat_map.hpp>
    1111#include <IR_Gen/idisa_builder.h>
    12 #include <kernels/pipeline.h>
     12#include <toolchain/pipeline.h>
    1313#include <llvm/IR/Constants.h>
    14 
    15 //#include <string>           // for string
    16 //#include <memory>           // for unique_ptr
    1714
    1815namespace llvm { class Function; }
     
    3431    using Kernels = std::vector<KernelBuilder *>;
    3532
    36     friend void ::generateSegmentParallelPipeline(IDISA::IDISA_Builder *, const Kernels &);
    37     friend void ::generatePipelineLoop(IDISA::IDISA_Builder *, const Kernels &);
    38     friend void ::generateParallelPipeline(IDISA::IDISA_Builder *, const Kernels &);
     33    friend void ::generateSegmentParallelPipeline(std::unique_ptr<IDISA::IDISA_Builder> &, const Kernels &);
     34    friend void ::generatePipelineLoop(std::unique_ptr<IDISA::IDISA_Builder> &, const Kernels &);
     35    friend void ::generateParallelPipeline(std::unique_ptr<IDISA::IDISA_Builder> &, const Kernels &);
    3936public:
    4037   
     
    120117    }
    121118
    122 //    llvm::Value * getScalarField(llvm::Value * index) const {
    123 //        return iBuilder->CreateLoad(getScalarFieldPtr(index));
    124 //    }
    125 
    126119    // Set the value of a scalar field for the current instance.
    127120    void setScalarField(const std::string & fieldName, llvm::Value * value) const {
    128121        iBuilder->CreateStore(value, getScalarFieldPtr(fieldName));
    129122    }
    130 
    131 //    void setScalarField(llvm::Value * index, llvm::Value * value) const {
    132 //        iBuilder->CreateStore(value, getScalarFieldPtr(index));
    133 //    }
    134123
    135124    // Synchronization actions for executing a kernel for a particular logical segment.
     
    204193
    205194    void prepareStreamSetNameMap();
     195
     196    void linkExternalMethods() override { }
    206197
    207198    virtual void prepareKernel();
Note: See TracChangeset for help on using the changeset viewer.