Halide
MatlabWrapper.h
Go to the documentation of this file.
1 #ifndef HALIDE_MATLAB_OUTPUT_H
2 #define HALIDE_MATLAB_OUTPUT_H
3 
4 /** \file
5  *
6  * Provides an output function to generate a Matlab mex API compatible object file.
7  */
8 
9 #include "Module.h"
10 
11 namespace llvm {
12 class Module;
13 class Function;
14 class Value;
15 } // namespace llvm
16 
17 namespace Halide {
18 namespace Internal {
19 
20 /** Add a mexFunction wrapper definition to the module, calling the
21  * function with the name pipeline_name. Returns the mexFunction
22  * definition. */
23 llvm::Function *define_matlab_wrapper(llvm::Module *module,
24  llvm::Function *pipeline_argv_wrapper,
25  llvm::Function *metadata_getter);
26 
27 } // namespace Internal
28 } // namespace Halide
29 
30 #endif
llvm
Definition: CodeGen_Internal.h:19
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition: AddAtomicMutex.h:21
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Halide::Internal::IOKind::Function
@ Function
Halide::Internal::define_matlab_wrapper
llvm::Function * define_matlab_wrapper(llvm::Module *module, llvm::Function *pipeline_argv_wrapper, llvm::Function *metadata_getter)
Add a mexFunction wrapper definition to the module, calling the function with the name pipeline_name.
Module.h