@@ -12,9 +12,6 @@ using namespace llvm;
12
12
using namespace RTLIB ;
13
13
14
14
void RuntimeLibcallsInfo::initSoftFloatCmpLibcallPredicates () {
15
- std::fill (SoftFloatCompareLibcallPredicates,
16
- SoftFloatCompareLibcallPredicates + RTLIB::UNKNOWN_LIBCALL,
17
- CmpInst::BAD_ICMP_PREDICATE);
18
15
SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F32] = CmpInst::ICMP_EQ;
19
16
SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F64] = CmpInst::ICMP_EQ;
20
17
SoftFloatCompareLibcallPredicates[RTLIB::OEQ_F128] = CmpInst::ICMP_EQ;
@@ -48,19 +45,12 @@ void RuntimeLibcallsInfo::initSoftFloatCmpLibcallPredicates() {
48
45
// / Set default libcall names. If a target wants to opt-out of a libcall it
49
46
// / should be placed here.
50
47
void RuntimeLibcallsInfo::initLibcalls (const Triple &TT) {
51
- std::fill (std::begin (LibcallRoutineNames), std::end (LibcallRoutineNames),
52
- nullptr );
53
-
54
48
initSoftFloatCmpLibcallPredicates ();
55
49
56
50
#define HANDLE_LIBCALL (code, name ) setLibcallName(RTLIB::code, name);
57
51
#include " llvm/IR/RuntimeLibcalls.def"
58
52
#undef HANDLE_LIBCALL
59
53
60
- // Initialize calling conventions to their default.
61
- for (int LC = 0 ; LC < RTLIB::UNKNOWN_LIBCALL; ++LC)
62
- setLibcallCallingConv ((RTLIB::Libcall)LC, CallingConv::C);
63
-
64
54
// Use the f128 variants of math functions on x86
65
55
if (TT.isX86 () && TT.isGNUEnvironment ()) {
66
56
setLibcallName (RTLIB::REM_F128, " fmodf128" );
0 commit comments