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

Last change on this file since 5769 was 5755, checked in by nmedfort, 23 months ago

Bug fixes and simplified MultiBlockKernel? logic

File size: 544 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}
Note: See TracBrowser for help on using the repository browser.