Lines Matching defs:Result
58 SmallVector<Constant*, 16> Result;
64 Result.push_back(C);
67 return ConstantVector::get(Result);
510 // [us]itofp(undef) = 0, because the result value is bounded.
698 // If the condition is a vector constant, fold the result elementwise.
700 SmallVector<Constant*, 16> Result;
708 Result.push_back(Res);
712 if (Result.size() == V1->getType()->getVectorNumElements())
713 return ConstantVector::get(Result);
765 SmallVector<Constant*, 16> Result;
769 Result.push_back(Elt);
775 Result.push_back(C);
778 return ConstantVector::get(Result);
797 SmallVector<Constant*, 32> Result;
801 Result.push_back(UndefValue::get(EltTy));
816 Result.push_back(InElt);
819 return ConstantVector::get(Result);
849 SmallVector<Constant*, 32> Result;
857 Result.push_back(C);
861 return ConstantStruct::get(ST, Result);
863 return ConstantArray::get(AT, Result);
864 return ConstantVector::get(Result);
1139 SmallVector<Constant*, 16> Result;
1147 Result.push_back(ConstantExpr::get(Opcode, LHS, RHS));
1150 return ConstantVector::get(Result);
1183 // We can assume that C2 == 0. If it were one the result would be
1188 // We can assume that C2 == 1. If it were zero the result would be
1193 // We can assume that C2 == 1. If it were zero the result would be
1470 // so the result is greater-than
1491 // so the result is less-than
1528 // The logic below assumes that the result of the comparison
1709 // Compare the elements, producing an i1 result or constant expr.
1723 int Result = -1; // -1 = unknown, 0 = known false, 1 = known true.
1739 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ ||
1744 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
1749 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
1756 Result = 0;
1758 Result = 1;
1763 Result = 0;
1765 Result = 1;
1770 Result = 0;
1772 Result = 1;
1776 // If we evaluated the result, return it now.
1777 if (Result != -1)
1778 return ConstantInt::get(ResultTy, Result);
1782 int Result = -1; // -1 = unknown, 0 = known false, 1 = known true.
1788 // If we know the constants are equal, we can decide the result of this
1790 Result = ICmpInst::isTrueWhenEqual((ICmpInst::Predicate)pred);
1795 Result = 1; break;
1797 Result = 0; break;
1803 Result = 1; break;
1805 Result = 0; break;
1811 Result = 1; break;
1813 Result = 0; break;
1819 Result = 1; break;
1821 Result = 0; break;
1825 if (pred == ICmpInst::ICMP_UGT) Result = 0;
1826 if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1;
1829 if (pred == ICmpInst::ICMP_SGT) Result = 0;
1830 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1;
1833 if (pred == ICmpInst::ICMP_ULT) Result = 0;
1834 if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1;
1837 if (pred == ICmpInst::ICMP_SLT) Result = 0;
1838 if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1;
1841 if (pred == ICmpInst::ICMP_EQ) Result = 0;
1842 if (pred == ICmpInst::ICMP_NE) Result = 1;
1846 // If we evaluated the result, return it now.
1847 if (Result != -1)
1848 return ConstantInt::get(ResultTy, Result);