https://github.com/halide/Halide
Raw File
Tip revision: c48a8206c7f5cc51347a35b211e7ff90f24867f1 authored by Volodymyr Kysenko on 14 December 2022, 00:29:39 UTC
Address review comments
Tip revision: c48a820
XtensaOptimize.h
#ifndef HALIDE_XTENSA_OPTIMIZE_H
#define HALIDE_XTENSA_OPTIMIZE_H

#include "Expr.h"

namespace Halide {

struct Target;

namespace Internal {

template<typename T>
bool is_native_xtensa_vector(const Type &t, const Target &target) {
    return false;
}

template<>
bool is_native_xtensa_vector<int8_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<uint8_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<int16_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<uint16_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<int32_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<int64_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<uint32_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<float16_t>(const Type &t, const Target &target);

template<>
bool is_native_xtensa_vector<float>(const Type &t, const Target &target);

bool is_native_vector_type(const Type &t, const Target &target);
bool is_double_native_vector_type(const Type &t, const Target &target);

Type get_native_xtensa_vector(const Type &t, const Target &target);

std::string suffix_for_type(Type t);

Stmt match_xtensa_patterns(const Stmt &s, const Target &target);

}  // namespace Internal
}  // namespace Halide

#endif
back to top