source: icGREP/icgrep-devel/icgrep/toolchain/driver.cpp @ 5998

Last change on this file since 5998 was 5998, checked in by nmedfort, 12 months ago

Added temporary buffer functionality to the pipeline for single stream source buffers. Fixed memory leak from UCD::UnicodeBreakRE()

File size: 566 bytes
Line 
1#include "driver.h"
2#include <kernels/kernel_builder.h>
3#include <kernels/streamset.h>
4#include <kernels/kernel.h>
5#include <llvm/IR/Module.h>
6
7using namespace llvm;
8using namespace parabix;
9
10using Kernel = kernel::Kernel;
11using KernelBuilder = kernel::KernelBuilder;
12
13Driver::Driver(std::string && moduleName)
14: mContext(new llvm::LLVMContext())
15, mMainModule(new Module(moduleName, *mContext))
16, iBuilder(nullptr) {
17
18}
19
20void Driver::deallocateBuffers() {
21    for (const auto & b : mOwnedBuffers) {
22        b->releaseBuffer(iBuilder);
23    }
24}
25
26Driver::~Driver() {}
Note: See TracBrowser for help on using the repository browser.