• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/llvmCore-3425.0.34/lib/Analysis/

Lines Matching defs:?E

229   ConstantExpr *CE = dyn_cast<ConstantExpr>(C);
230 if (!CE) return false;
233 if (CE->getOpcode() == Instruction::PtrToInt ||
234 CE->getOpcode() == Instruction::BitCast)
235 return IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD);
238 if (CE->getOpcode() == Instruction::GetElementPtr) {
241 if (!cast<PointerType>(CE->getOperand(0)->getType())
246 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD))
250 gep_type_iterator GTI = gep_type_begin(CE);
251 for (User::const_op_iterator i = CE->op_begin() + 1, e = CE->op_end();
379 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
380 if (CE->getOpcode() == Instruction::IntToPtr &&
381 CE->getOperand(0)->getType() == TD.getIntPtrType(CE->getContext()))
382 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr,
465 ConstantExpr *CE = dyn_cast<ConstantExpr>(C);
466 if (!CE) return 0;
468 if (CE->getOpcode() == Instruction::GetElementPtr) {
469 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0)))
472 ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE))
479 if (TD && getConstantStringInfo(CE, Str) && !Str.empty()) {
481 Type *Ty = cast<PointerType>(CE->getType())->getElementType();
504 Constant *Res = ConstantInt::get(CE->getContext(), StrVal);
514 dyn_cast<GlobalVariable>(GetUnderlyingObject(CE, TD))) {
528 return FoldReinterpretLoadFromConstPtr(CE, *TD);
600 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
601 if (Constant *Folded = ConstantFoldConstantExpression(CE, TD, TLI))
643 ConstantExpr *CE = dyn_cast<ConstantExpr>(Ops[1]);
644 assert((CE == 0 || CE->getType() == IntPtrTy) &&
646 if (CE && CE->getOpcode() == Instruction::Sub &&
647 CE->getOperand(0)->isNullValue()) {
648 Constant *Res = ConstantExpr::getPtrToInt(Ptr, CE->getType());
649 Res = ConstantExpr::getSub(Res, CE->getOperand(1));
690 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr))
691 if (CE->getOpcode() == Instruction::IntToPtr)
692 if (ConstantInt *Base = dyn_cast<ConstantInt>(CE->getOperand(0)))
861 Constant *llvm::ConstantFoldConstantExpression(const ConstantExpr *CE,
865 for (User::const_op_iterator i = CE->op_begin(), e = CE->op_end();
874 if (CE->isCompare())
875 return ConstantFoldCompareInstOperands(CE->getPredicate(), Ops[0], Ops[1],
877 return ConstantFoldInstOperands(CE->getOpcode(), CE->getType(), Ops, TD, TLI);
915 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ops[0])) {
916 if (TD && CE->getOpcode() == Instruction::IntToPtr) {
917 Constant *Input = CE->getOperand(0);
921 ConstantInt::get(CE->getContext(), APInt::getLowBitsSet(InWidth,
934 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ops[0]))
936 TD->getPointerSizeInBits() <= CE->getType()->getScalarSizeInBits() &&
937 CE->getOpcode() == Instruction::PtrToInt)
938 return FoldBitCast(CE->getOperand(0), DestTy, *TD);
1059 ConstantExpr *CE) {
1060 if (!CE->getOperand(1)->isNullValue())
1065 for (unsigned i = 2, e = CE->getNumOperands(); i != e; ++i) {
1066 C = C->getAggregateElement(CE->getOperand(i));