Lines Matching refs:Ops

140     Constant *Ops = C; // don't take the address of C!  in FoldBitCast()  local
141 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
746 Constant *CastGEPIndices(Type *SrcElemTy, ArrayRef<Constant *> Ops, in CastGEPIndices() argument
754 for (unsigned i = 1, e = Ops.size(); i != e; ++i) { in CastGEPIndices()
757 SrcElemTy, Ops.slice(1, i - 1)))) && in CastGEPIndices()
758 Ops[i]->getType()->getScalarType() != IntPtrScalarTy) { in CastGEPIndices()
760 Type *NewType = Ops[i]->getType()->isVectorTy() in CastGEPIndices()
763 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices()
767 Ops[i], NewType)); in CastGEPIndices()
769 NewIdxs.push_back(Ops[i]); in CastGEPIndices()
776 SrcElemTy, Ops[0], NewIdxs, /*InBounds=*/false, InRangeIndex); in CastGEPIndices()
802 ArrayRef<Constant *> Ops, in SymbolicallyEvaluateGEP() argument
814 if (Constant *C = CastGEPIndices(SrcElemTy, Ops, ResTy, in SymbolicallyEvaluateGEP()
818 Constant *Ptr = Ops[0]; in SymbolicallyEvaluateGEP()
826 for (unsigned i = 1, e = Ops.size(); i != e; ++i) in SymbolicallyEvaluateGEP()
827 if (!isa<ConstantInt>(Ops[i])) { in SymbolicallyEvaluateGEP()
831 if (Ops.size() == 2 && ResElemTy->isIntegerTy(8)) { in SymbolicallyEvaluateGEP()
832 auto *CE = dyn_cast<ConstantExpr>(Ops[1]); in SymbolicallyEvaluateGEP()
853 makeArrayRef((Value * const *)Ops.data() + 1, Ops.size() - 1))); in SymbolicallyEvaluateGEP()
998 ArrayRef<Constant *> Ops, in ConstantFoldInstOperandsImpl() argument
1005 return ConstantFoldBinaryOpOperands(Opcode, Ops[0], Ops[1], DL); in ConstantFoldInstOperandsImpl()
1008 return ConstantFoldCastOperand(Opcode, Ops[0], DestTy, DL); in ConstantFoldInstOperandsImpl()
1011 if (Constant *C = SymbolicallyEvaluateGEP(GEP, Ops, DL, TLI)) in ConstantFoldInstOperandsImpl()
1014 return ConstantExpr::getGetElementPtr(GEP->getSourceElementType(), Ops[0], in ConstantFoldInstOperandsImpl()
1015 Ops.slice(1), GEP->isInBounds(), in ConstantFoldInstOperandsImpl()
1020 return CE->getWithOperands(Ops); in ConstantFoldInstOperandsImpl()
1027 if (auto *F = dyn_cast<Function>(Ops.back())) { in ConstantFoldInstOperandsImpl()
1030 return ConstantFoldCall(CS, F, Ops.slice(0, Ops.size() - 1), TLI); in ConstantFoldInstOperandsImpl()
1034 return ConstantExpr::getSelect(Ops[0], Ops[1], Ops[2]); in ConstantFoldInstOperandsImpl()
1036 return ConstantExpr::getExtractElement(Ops[0], Ops[1]); in ConstantFoldInstOperandsImpl()
1038 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2]); in ConstantFoldInstOperandsImpl()
1040 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], Ops[2]); in ConstantFoldInstOperandsImpl()
1059 SmallVector<Constant *, 8> Ops; in ConstantFoldConstantImpl() local
1078 Ops.push_back(NewC); in ConstantFoldConstantImpl()
1083 return ConstantFoldCompareInstOperands(CE->getPredicate(), Ops[0], Ops[1], in ConstantFoldConstantImpl()
1086 return ConstantFoldInstOperandsImpl(CE, CE->getOpcode(), Ops, DL, TLI); in ConstantFoldConstantImpl()
1090 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
1133 SmallVector<Constant *, 8> Ops; in ConstantFoldInstruction() local
1140 Ops.push_back(Op); in ConstantFoldInstruction()
1144 return ConstantFoldCompareInstOperands(CI->getPredicate(), Ops[0], Ops[1], in ConstantFoldInstruction()
1163 return ConstantFoldInstOperands(I, Ops, DL, TLI); in ConstantFoldInstruction()
1173 ArrayRef<Constant *> Ops, in ConstantFoldInstOperands() argument
1176 return ConstantFoldInstOperandsImpl(I, I->getOpcode(), Ops, DL, TLI); in ConstantFoldInstOperands()
2059 Constant *Ops[] = { in ConstantFoldScalarCall() local
2063 return ConstantStruct::get(cast<StructType>(Ty), Ops); in ConstantFoldScalarCall()