docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
code_compile_helpers.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <unordered_map>
5#include <unordered_set>
8namespace sdfg {
9namespace codegen {
10
12
14 std::filesystem::path build_path,
15 std::unordered_set<std::string> lib_files,
16 const std::unordered_map<std::string, sdfg::codegen::CodeSnippet>& snippets,
17 std::unordered_map<std::string, std::vector<std::filesystem::path>>& files_for_post_processing
18);
19
21 const std::filesystem::path& build_path,
22 const std::vector<std::string>& compile_args,
23 std::set<std::string>& link_2nd_args,
24 std::unordered_map<std::string, std::vector<std::filesystem::path>> files_for_post_processing
25);
26
28 const std::filesystem::path& source_file,
29 const std::filesystem::path& object_file,
30 const std::vector<std::string>& compile_args
31);
32
34 const structured_control_flow::ScheduleType& schedule_type, std::set<std::string>& linker_args
35);
36
38 const structured_control_flow::ScheduleType& schedule_type, std::vector<std::string>& compile_args
39);
40
41} // namespace codegen
42} // namespace sdfg
Represents a schedule type for Map nodes.
Definition structured_loop.h:31
Definition argument_registry.h:10
bool base_include_paths()
void add_schedule_type_specific_linker_args(const structured_control_flow::ScheduleType &schedule_type, std::set< std::string > &linker_args)
bool compile_to_object_file(const std::filesystem::path &source_file, const std::filesystem::path &object_file, const std::vector< std::string > &compile_args)
bool compile_additional_files(const std::filesystem::path &build_path, const std::vector< std::string > &compile_args, std::set< std::string > &link_2nd_args, std::unordered_map< std::string, std::vector< std::filesystem::path > > files_for_post_processing)
void add_schedule_type_specific_compile_args(const structured_control_flow::ScheduleType &schedule_type, std::vector< std::string > &compile_args)
bool write_library_snippets_to_files(std::filesystem::path build_path, std::unordered_set< std::string > lib_files, const std::unordered_map< std::string, sdfg::codegen::CodeSnippet > &snippets, std::unordered_map< std::string, std::vector< std::filesystem::path > > &files_for_post_processing)
Definition analysis.h:7