Type legalization
The compiler backend stage that rewrites types and operations the target lacks into ones it actually has.
The IR is generous: LLVM lets you write i64, i17 or a seven-element vector regardless of platform. A 32-bit ARM has no 64-bit registers, so every i64 has to be expanded into two 32-bit halves with a carry in between. An i8 is promoted to a full register, and odd vectors are split or widened to a length the hardware handles. In LLVM's SelectionDAG this happens in two passes — types first, then operations — before instruction selection takes over.
Operations with no hardware support at all become calls to helper routines. That is why __divdi3 from libgcc or __aeabi_ldivmod shows up in link errors on 32-bit targets: someone wrote a 64-bit division and the CPU can't do it. GlobalISel, LLVM's newer instruction selector, has a separate pass with the refreshingly literal name Legalizer.