Skip to content

Commit a288d8d

Browse files
authored
[NVPTX] Enable i128 support in the NVPTX backend (#98658)
Summary: The target information needs to configure that the platform has a maximum integer size of 64 in order for it to enable i128 support. The motivation behind this patch is that the i128 libcalls seem to be the only ones used by the NVPTX backend and it would be ideal to disable those completely. That would allow LTO to optimize libcalls properly after #98512.
1 parent 280eadd commit a288d8d

File tree

5 files changed

+644
-65
lines changed

5 files changed

+644
-65
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,7 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
872872

873873
setMinCmpXchgSizeInBits(32);
874874
setMaxAtomicSizeInBitsSupported(64);
875+
setMaxDivRemBitWidthSupported(64);
875876
}
876877

877878
const char *NVPTXTargetLowering::getTargetNodeName(unsigned Opcode) const {

0 commit comments

Comments
 (0)