https://github.com/halide/Halide
Raw File
Tip revision: 17905a36c1d6c4a500e0c72937a27b0929a812f5 authored by Andrew Adams on 27 September 2019, 23:41:32 UTC
Fixes and enhancements to the solver
Tip revision: 17905a3
CodeGen_RISCV.h
#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
back to top