Halide
CodeGen_WebAssembly.h
Go to the documentation of this file.
1 #ifndef HALIDE_CODEGEN_WEBASSEMBLY_H
2 #define HALIDE_CODEGEN_WEBASSEMBLY_H
3 
4 /** \file
5  * Defines the code-generator for producing WebAssembly machine code.
6  */
7 
8 #include "CodeGen_Posix.h"
9 
10 namespace Halide {
11 namespace Internal {
12 
13 /** A code generator that emits WebAssembly code from a given Halide stmt. */
15 public:
17 
18  static void test();
19 
20 protected:
22 
23  void visit(const Cast *) override;
24 
25  std::string mcpu() const override;
26  std::string mattrs() const override;
27  bool use_soft_float_abi() const override;
28  int native_vector_bits() const override;
29  bool use_pic() const override;
30 };
31 
32 } // namespace Internal
33 } // namespace Halide
34 
35 #endif
Halide::Internal::CodeGen_Posix
A code generator that emits posix code from a given Halide stmt.
Definition: CodeGen_Posix.h:14
Halide::Internal::CodeGen_Posix::visit
void visit(const Allocate *) override
Posix implementation of Allocate.
Halide::Internal::CodeGen_WebAssembly::test
static void test()
Halide::Internal::Cast
The actual IR nodes begin here.
Definition: IR.h:29
Halide::Internal::CodeGen_WebAssembly::CodeGen_WebAssembly
CodeGen_WebAssembly(Target)
Halide::Internal::CodeGen_WebAssembly::native_vector_bits
int native_vector_bits() const override
What's the natural vector bit-width to use for loads, stores, etc.
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition: AddAtomicMutex.h:21
Halide::Internal::CodeGen_WebAssembly::mattrs
std::string mattrs() const override
Halide::Internal::CodeGen_WebAssembly::use_pic
bool use_pic() const override
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Halide::Internal::CodeGen_WebAssembly::mcpu
std::string mcpu() const override
What should be passed as -mcpu, -mattrs, and related for compilation.
Halide::Internal::CodeGen_WebAssembly
A code generator that emits WebAssembly code from a given Halide stmt.
Definition: CodeGen_WebAssembly.h:14
Halide::Internal::CodeGen_WebAssembly::use_soft_float_abi
bool use_soft_float_abi() const override
Halide::Internal::CodeGen_WebAssembly::visit
void visit(const Cast *) override
Halide::Target
A struct representing a target machine and os to generate code for.
Definition: Target.h:19
CodeGen_Posix.h