@@ -32,9 +32,6 @@ static void setAArch64LibcallNames(RuntimeLibcallsInfo &Info,
32
32
}
33
33
34
34
void RuntimeLibcallsInfo::initSoftFloatCmpLibcallPredicates () {
35
- std::fill (SoftFloatCompareLibcallPredicates,
36
- SoftFloatCompareLibcallPredicates + RTLIB::UNKNOWN_LIBCALL,
37
- CmpInst::BAD_ICMP_PREDICATE);
38
35
SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F32] = CmpInst::ICMP_EQ;
39
36
SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F64] = CmpInst::ICMP_EQ;
40
37
SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F128] = CmpInst::ICMP_EQ;
@@ -68,19 +65,12 @@ void RuntimeLibcallsInfo::initSoftFloatCmpLibcallPredicates() {
68
65
// / Set default libcall names. If a target wants to opt-out of a libcall it
69
66
// / should be placed here.
70
67
void RuntimeLibcallsInfo::initLibcalls (const Triple &TT) {
71
- std::fill (std::begin (LibcallRoutineNames), std::end (LibcallRoutineNames),
72
- nullptr );
73
-
74
68
initSoftFloatCmpLibcallPredicates ();
75
69
76
70
#define HANDLE_LIBCALL (code, name ) setLibcallName(RTLIB::code, name);
77
71
#include " llvm/IR/RuntimeLibcalls.def"
78
72
#undef HANDLE_LIBCALL
79
73
80
- // Initialize calling conventions to their default.
81
- for (int LC = 0 ; LC < RTLIB::UNKNOWN_LIBCALL; ++LC)
82
- setLibcallCallingConv ((RTLIB::Libcall)LC, CallingConv::C);
83
-
84
74
// Use the f128 variants of math functions on x86
85
75
if (TT.isX86 () && TT.isGNUEnvironment ()) {
86
76
setLibcallName (RTLIB::REM_F128, " fmodf128" );
0 commit comments