-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are still some unresolved issues regarding node_type_func_decl_dummy.
- Loading branch information
Showing
22 changed files
with
1,018 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef _PAREAS_COMPILER_BACKEND_HPP | ||
#define _PAREAS_COMPILER_BACKEND_HPP | ||
|
||
#include "futhark_generated.h" | ||
|
||
#include "pareas/compiler/ast.hpp" | ||
#include "pareas/compiler/module.hpp" | ||
#include "pareas/profiler/profiler.hpp" | ||
|
||
namespace backend { | ||
DeviceModule compile(futhark_context* ctx, DeviceAst& ast, pareas::Profiler& p); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef _PAREAS_COMPILER_MODULE_HPP | ||
#define _PAREAS_COMPILER_MODULE_HPP | ||
|
||
#include "futhark_generated.h" | ||
|
||
#include <cstdint> | ||
|
||
struct DeviceModule { | ||
futhark_context* ctx; | ||
|
||
futhark_u32_1d* func_id; | ||
futhark_u32_1d* func_start; | ||
futhark_u32_1d* func_size; | ||
futhark_u32_1d* instructions; | ||
|
||
explicit DeviceModule(futhark_context* ctx); | ||
|
||
DeviceModule(const DeviceModule&) = delete; | ||
DeviceModule& operator=(const DeviceModule&) = delete; | ||
|
||
DeviceModule(DeviceModule&& other); | ||
DeviceModule& operator=(DeviceModule&& other); | ||
|
||
~DeviceModule(); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.