Halide
Module.h File Reference
#include <functional>
#include <map>
#include <memory>
#include <string>
#include "Argument.h"
#include "Expr.h"
#include "Function.h"
#include "ModulusRemainder.h"

Go to the source code of this file.

Classes

class  Halide::Buffer< T, Dims >
 A Halide::Buffer is a named shared reference to a Halide::Runtime::Buffer. More...
 
struct  Halide::Internal::OutputInfo
 
struct  Halide::Internal::LoweredArgument
 Definition of an argument to a LoweredFunc. More...
 
struct  Halide::Internal::LoweredFunc
 Definition of a lowered function. More...
 
class  Halide::Module
 A halide module. More...
 

Namespaces

 Halide
 This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
 
 Halide::Internal
 

Typedefs

using Halide::MetadataNameMap = std::map< std::string, std::string >
 
using Halide::ModuleFactory = std::function< Module(const std::string &fn_name, const Target &target)>
 
using Halide::CompilerLoggerFactory = std::function< std::unique_ptr< Internal::CompilerLogger >(const std::string &fn_name, const Target &target)>
 

Enumerations

enum  Halide::OutputFileType {
  Halide::OutputFileType::assembly, Halide::OutputFileType::bitcode, Halide::OutputFileType::c_header, Halide::OutputFileType::c_source,
  Halide::OutputFileType::compiler_log, Halide::OutputFileType::cpp_stub, Halide::OutputFileType::featurization, Halide::OutputFileType::function_info_header,
  Halide::OutputFileType::llvm_assembly, Halide::OutputFileType::object, Halide::OutputFileType::python_extension, Halide::OutputFileType::pytorch_wrapper,
  Halide::OutputFileType::registration, Halide::OutputFileType::schedule, Halide::OutputFileType::static_library, Halide::OutputFileType::stmt,
  Halide::OutputFileType::stmt_html
}
 Enums specifying various kinds of outputs that can be produced from a Halide Pipeline. More...
 
enum  Halide::LinkageType { Halide::LinkageType::External, Halide::LinkageType::ExternalPlusMetadata, Halide::LinkageType::ExternalPlusArgv, Halide::LinkageType::Internal }
 Type of linkage a function in a lowered Halide module can have. More...
 

Functions

std::map< OutputFileType, const OutputInfo > Halide::Internal::get_output_info (const Target &target)
 
Module Halide::link_modules (const std::string &name, const std::vector< Module > &modules)
 Link a set of modules together into one module. More...
 
void Halide::compile_standalone_runtime (const std::string &object_filename, const Target &t)
 Create an object file containing the Halide runtime for a given target. More...
 
std::map< OutputFileType, std::string > Halide::compile_standalone_runtime (const std::map< OutputFileType, std::string > &output_files, const Target &t)
 Create an object and/or static library file containing the Halide runtime for a given target. More...
 
void Halide::compile_multitarget (const std::string &fn_name, const std::map< OutputFileType, std::string > &output_files, const std::vector< Target > &targets, const std::vector< std::string > &suffixes, const ModuleFactory &module_factory, const CompilerLoggerFactory &compiler_logger_factory=nullptr)
 

Detailed Description

Defines Module, an IR container that fully describes a Halide program.

Definition in file Module.h.