source: icGREP/icgrep-devel/icgrep/toolchain/NVPTXDriver.h @ 5486

Last change on this file since 5486 was 5474, checked in by nmedfort, 2 years ago

Eliminated ExecutionEngine? memory leak. Intentionally broke compatibility with prior versions to ensure unchecked in projects are restructured.

File size: 894 bytes
Line 
1/*
2 *  Copyright (c) 2017 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef NVPTXDRIVER_H
8#define NVPTXDRIVER_H
9
10#include "driver.h"
11
12class NVPTXDriver final : public Driver {
13    friend class CBuilder;
14public:
15    NVPTXDriver(std::string && moduleName);
16
17    ~NVPTXDriver();
18
19    void generatePipelineIR() override;
20   
21    void makeKernelCall(kernel::Kernel * kb, const std::vector<parabix::StreamSetBuffer *> & inputs, const std::vector<parabix::StreamSetBuffer *> & outputs) override;
22
23    void finalizeObject() override;
24
25    void * getMain() override; // "main" exists until the driver is deleted
26
27private:
28
29    llvm::Function * addLinkFunction(llvm::Module * mod, llvm::StringRef name, llvm::FunctionType * type, void * functionPtr) const override;
30
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.