1 #include "CodeGen_RISCV.h" 2 #include "LLVM_Headers.h" 3 #include "Util.h" 4 5 namespace Halide { 6 namespace Internal { 7 8 using std::string; 9 10 using namespace llvm; 11 CodeGen_RISCV(Target t)12CodeGen_RISCV::CodeGen_RISCV(Target t) 13 : CodeGen_Posix(t) { 14 #if !defined(WITH_RISCV) 15 user_error << "llvm build not configured with RISCV target enabled.\n"; 16 #endif 17 } 18 mcpu() const19string CodeGen_RISCV::mcpu() const { 20 return ""; 21 } 22 mattrs() const23string CodeGen_RISCV::mattrs() const { 24 return ""; 25 } 26 use_soft_float_abi() const27bool CodeGen_RISCV::use_soft_float_abi() const { 28 return false; 29 } 30 native_vector_bits() const31int CodeGen_RISCV::native_vector_bits() const { 32 return 128; 33 } 34 35 } // namespace Internal 36 } // namespace Halide 37