[llvm] [GlobalISel][LLT] Introduce FPInfo for LLT (Enable bfloat, ppc128float and others in GlobalISel) (PR #155107)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 06:14:05 PST 2026


================
@@ -1182,7 +1182,7 @@ LegalizerHelper::createFCMPLibcall(MachineInstr &MI,
                                 const CmpInst::Predicate ICmpPred,
                                 const DstOp &Res) -> Register {
     // FCMP libcall always returns an i32, and needs an ICMP with #0.
-    constexpr LLT TempLLT = LLT::scalar(32);
+    LLT TempLLT = LLT::buildInteger(32);
----------------
DenisGZM wrote:

`buildInteger` was introduced for compability and intended to be used in shared places like match table or LegalizerHelper, to generate either integer or scalar if ExtendedLLT is disabled.

But right now, I think this handling could be done in basic builders. 


https://github.com/llvm/llvm-project/pull/155107


More information about the llvm-commits mailing list