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

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

Restructuring work for the Driver classes. Start of work to eliminate the memory leaks with the ExecutionEngine?. Replaced custom AlignedMalloc? with backend call to std::aligned_malloc. Salvaged some work on DistributionPass? for reevaluation.

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 finalizeAndCompile(llvm::Function * mainFunc, std::string PTXFilename);
24
25    void * getPointerToMain();
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.