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

Last change on this file since 5781 was 5493, checked in by cameron, 2 years ago

Restore check-ins from the last several days

File size: 999 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    bool hasExternalFunction(const llvm::StringRef /* functionName */) const override { return false; }
26
27    void * getMain() override; // "main" exists until the driver is deleted
28
29private:
30
31    llvm::Function * addLinkFunction(llvm::Module * mod, llvm::StringRef name, llvm::FunctionType * type, void * functionPtr) const override;
32
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.