Skip to content

Commit fe67267

Browse files
authored
MSP430: Move __mspabi_mpyll calling conv config to tablegen (llvm#153988)
There are several libcall choices for MUL_I64 which depend on the subtarget, but this is the base case. The manual custom ISelLowering is still overriding the decision until we have a way to control lowering choices, but we can still get the calling convention set for now.
1 parent eb3d884 commit fe67267

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,9 @@ def MSP430SystemLibrary
20942094
__mspabi_remul,
20952095
LibcallsWithCC<(add __mspabi_remull), MSP430_BUILTIN>,
20962096

2097+
// May not be used depending on subtarget
2098+
LibcallsWithCC<(add __mspabi_mpyll), MSP430_BUILTIN>,
2099+
20972100
// Bitwise Operations - EABI Table 10
20982101
// TODO: __mspabi_[srli/srai/slli] ARE implemented in libgcc
20992102
__mspabi_srll,

llvm/lib/IR/RuntimeLibcalls.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT,
5454

5555
return;
5656
}
57-
58-
if (TT.getArch() == Triple::ArchType::msp430) {
59-
setLibcallImplCallingConv(RTLIB::__mspabi_mpyll,
60-
CallingConv::MSP430_BUILTIN);
61-
}
6257
}
6358

6459
LLVM_ATTRIBUTE_ALWAYS_INLINE

0 commit comments

Comments
 (0)