forked from halide/Halide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeGen_MIPS.cpp
More file actions
44 lines (35 loc) · 835 Bytes
/
CodeGen_MIPS.cpp
File metadata and controls
44 lines (35 loc) · 835 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
33
34
35
36
37
38
39
40
41
42
43
44
#include "CodeGen_MIPS.h"
#include "Util.h"
#include "LLVM_Headers.h"
namespace Halide {
namespace Internal {
using std::vector;
using std::string;
using namespace llvm;
CodeGen_MIPS::CodeGen_MIPS(Target t) : CodeGen_Posix(t) {
#if !(WITH_MIPS)
user_error << "llvm build not configured with MIPS target enabled.\n";
#endif
user_assert(llvm_Mips_enabled) << "llvm build not configured with MIPS target enabled.\n";
}
string CodeGen_MIPS::mcpu() const {
if (target.bits == 32) {
return "";
} else {
return "";
}
}
string CodeGen_MIPS::mattrs() const {
if (target.bits == 32) {
return "";
} else {
return "mips64r6";
}
}
bool CodeGen_MIPS::use_soft_float_abi() const {
return false;
}
int CodeGen_MIPS::native_vector_bits() const {
return 128;
}
}}