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

Changes towards separate compilation

Location:
icGREP/icgrep-devel/icgrep/toolchain
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/pipeline.cpp

    r5424 r5425  
    55
    66#include "pipeline.h"
    7 #include <kernels/toolchain.h>
     7#include <toolchain/toolchain.h>
    88#include <kernels/kernel.h>
    99#include <kernels/streamset.h>
     
    2222using FlatSet = boost::container::flat_set<Value>;
    2323
    24 Function * makeThreadFunction(IDISA::IDISA_Builder * const b, const std::string & name) {
     24Function * makeThreadFunction(std::unique_ptr<IDISA::IDISA_Builder> & b, const std::string & name) {
    2525    Function * const f = Function::Create(FunctionType::get(b->getVoidTy(), {b->getVoidPtrTy()}, false), Function::InternalLinkage, name, b->getModule());
    2626    f->setCallingConv(CallingConv::C);
     
    3838 * fashion such that processing of segment S_i by the full pipeline is carried out by thread i mod T.
    3939 ** ------------------------------------------------------------------------------------------------------------- */
    40 void generateSegmentParallelPipeline(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels) {
     40void generateSegmentParallelPipeline(std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, const std::vector<KernelBuilder *> & kernels) {
    4141
    4242    const unsigned n = kernels.size();
     
    243243 * @brief generateParallelPipeline
    244244 ** ------------------------------------------------------------------------------------------------------------- */
    245 void generateParallelPipeline(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> &kernels) {
     245void generateParallelPipeline(std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, const std::vector<KernelBuilder *> &kernels) {
    246246
    247247    Module * const m = iBuilder->getModule();
     
    435435 * @brief generatePipelineLoop
    436436 ** ------------------------------------------------------------------------------------------------------------- */
    437 void generatePipelineLoop(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels) {
     437void generatePipelineLoop(std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, const std::vector<KernelBuilder *> & kernels) {
    438438
    439439    BasicBlock * entryBlock = iBuilder->GetInsertBlock();
Note: See TracChangeset for help on using the changeset viewer.