reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1346 B.setInstr(MI); 1358 auto Trunc = B.buildInstr(TargetOpcode::G_INTRINSIC_TRUNC, {S64}, {Src}); 1360 const auto Zero = B.buildFConstant(S64, 0.0); 1361 const auto One = B.buildFConstant(S64, 1.0); 1362 auto Lt0 = B.buildFCmp(CmpInst::FCMP_OGT, S1, Src, Zero); 1363 auto NeTrunc = B.buildFCmp(CmpInst::FCMP_ONE, S1, Src, Trunc); 1364 auto And = B.buildAnd(S1, Lt0, NeTrunc); 1365 auto Add = B.buildSelect(S64, And, One, Zero); 1368 B.buildFAdd(MI.getOperand(0).getReg(), Trunc, Add);