Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Operands

258   // Otherwise, add any offset that our operands provide.
891 /// Note that this fails if not all of the operands are constant. Otherwise,
906 // all operands are constants.
913 // Fold the PHI's operands.
934 return nullptr; // All operands not constant!
936 // Fold the Instruction's operands.
974 // Recursively fold the ConstantExpr's operands. If we have already folded
1000 /// specified opcode and operands. If successful, the constant result is
1006 /// information, due to only being passed an opcode and operands. Constant
1105 /// instruction (icmp/fcmp) with the specified operands. If it fails, it
1106 /// returns a constant expression of the specified operands.
1202 // Loop over all of the operands, tracking down which value we are
1218 // Loop over all of the operands, tracking down which value we are
1411 Type *Ty, ArrayRef<Constant *> Operands,
1413 if (Operands.size() == 1) {
1414 if (ConstantFP *Op = dyn_cast<ConstantFP>(Operands[0])) {
1550 if (ConstantInt *Op = dyn_cast<ConstantInt>(Operands[0])) {
1576 if (isa<ConstantVector>(Operands[0]) ||
1577 isa<ConstantDataVector>(Operands[0])) {
1578 Constant *Op = cast<Constant>(Operands[0]);
1600 if (isa<UndefValue>(Operands[0])) {
1602 return Operands[0];
1609 if (Operands.size() == 2) {
1610 if (ConstantFP *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
1615 if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
1637 } else if (ConstantInt *Op2C = dyn_cast<ConstantInt>(Operands[1])) {
1654 if (ConstantInt *Op1 = dyn_cast<ConstantInt>(Operands[0])) {
1655 if (ConstantInt *Op2 = dyn_cast<ConstantInt>(Operands[1])) {
1709 if (Operands.size() != 3)
1712 if (const ConstantFP *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
1713 if (const ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
1714 if (const ConstantFP *Op3 = dyn_cast<ConstantFP>(Operands[2])) {
1738 ArrayRef<Constant *> Operands,
1741 SmallVector<Constant *, 4> Lane(Operands.size());
1746 for (unsigned J = 0, JE = Operands.size(); J != JE; ++J) {
1747 Constant *Agg = Operands[J]->getAggregateElement(I);
1767 llvm::ConstantFoldCall(Function *F, ArrayRef<Constant *> Operands,
1776 return ConstantFoldVectorCall(Name, F->getIntrinsicID(), VTy, Operands, TLI);
1778 return ConstantFoldScalarCall(Name, F->getIntrinsicID(), Ty, Operands, TLI);