Halide
CodeGen_MIPS.h
Go to the documentation of this file.
1 #ifndef HALIDE_CODEGEN_MIPS_H
2 #define HALIDE_CODEGEN_MIPS_H
3 
4 /** \file
5  * Defines the code-generator for producing MIPS machine code.
6  */
7 
8 #include "CodeGen_Posix.h"
9 
10 namespace Halide {
11 namespace Internal {
12 
13 /** A code generator that emits mips code from a given Halide stmt. */
14 class CodeGen_MIPS : public CodeGen_Posix {
15 public:
16  /** Create a mips code generator. Processor features can be
17  * enabled using the appropriate flags in the target struct. */
19 
20  static void test();
21 
22 protected:
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 };
30 
31 } // namespace Internal
32 } // namespace Halide
33 
34 #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_MIPS
A code generator that emits mips code from a given Halide stmt.
Definition: CodeGen_MIPS.h:14
Halide::Internal::CodeGen_MIPS::use_soft_float_abi
bool use_soft_float_abi() const override
Halide::Internal::CodeGen_MIPS::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::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Halide::Internal::CodeGen_MIPS::CodeGen_MIPS
CodeGen_MIPS(Target)
Create a mips code generator.
Halide::Internal::CodeGen_MIPS::mcpu
std::string mcpu() const override
What should be passed as -mcpu, -mattrs, and related for compilation.
Halide::Internal::CodeGen_MIPS::test
static void test()
Halide::Internal::CodeGen_MIPS::mattrs
std::string mattrs() const override
Halide::Target
A struct representing a target machine and os to generate code for.
Definition: Target.h:19
CodeGen_Posix.h