Lines Matching refs:SrcTy
494 Type *SrcTy = C->getType(); in ConstantFoldLoadThroughBitcast() local
498 if (DL.getTypeSizeInBits(DestTy) == DL.getTypeSizeInBits(SrcTy)) { in ConstantFoldLoadThroughBitcast()
502 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in ConstantFoldLoadThroughBitcast()
504 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in ConstantFoldLoadThroughBitcast()
513 if (!SrcTy->isAggregateType()) in ConstantFoldLoadThroughBitcast()
674 static Constant *CastGEPIndices(Type *SrcTy, ArrayRef<Constant *> Ops, in CastGEPIndices() argument
701 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ops[0], NewIdxs); in CastGEPIndices()
727 static Constant *SymbolicallyEvaluateGEP(Type *SrcTy, ArrayRef<Constant *> Ops, in SymbolicallyEvaluateGEP() argument
869 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ptr, NewIdxs); in SymbolicallyEvaluateGEP()
1090 Type *SrcTy = nullptr; in ConstantFoldInstOperands() local
1091 if (Constant *C = CastGEPIndices(SrcTy, Ops, DestTy, DL, TLI)) in ConstantFoldInstOperands()
1093 if (Constant *C = SymbolicallyEvaluateGEP(SrcTy, Ops, DestTy, DL, TLI)) in ConstantFoldInstOperands()
1096 return ConstantExpr::getGetElementPtr(SrcTy, Ops[0], Ops.slice(1)); in ConstantFoldInstOperands()