forked from halide/Halide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeGen_RISCV.h
More file actions
32 lines (23 loc) · 726 Bytes
/
CodeGen_RISCV.h
File metadata and controls
32 lines (23 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef HALIDE_CODEGEN_RISCV_H
#define HALIDE_CODEGEN_RISCV_H
/** \file
* Defines the code-generator for producing RISCV machine code.
*/
#include "CodeGen_Posix.h"
namespace Halide {
namespace Internal {
/** A code generator that emits mips code from a given Halide stmt. */
class CodeGen_RISCV : public CodeGen_Posix {
public:
/** Create a mips code generator. Processor features can be
* enabled using the appropriate flags in the target struct. */
CodeGen_RISCV(Target);
protected:
using CodeGen_Posix::visit;
std::string mcpu() const override;
std::string mattrs() const override;
bool use_soft_float_abi() const override;
int native_vector_bits() const override;
};
}}
#endif