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

Lines Matching refs:CE

213   ConstantExpr *CE = dyn_cast<ConstantExpr>(C);
214 if (CE == 0) return 0;
216 switch (CE->getOpcode()) {
219 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize);
228 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize);
234 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize);
242 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize);
248 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1));
259 return Constant::getNullValue(IntegerType::get(CE->getContext(),
263 return ExtractConstantBytes(CE->getOperand(0), ByteStart+ShAmt, ByteSize);
270 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1));
281 return Constant::getNullValue(IntegerType::get(CE->getContext(),
285 return ExtractConstantBytes(CE->getOperand(0), ByteStart-ShAmt, ByteSize);
293 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth();
297 return Constant::getNullValue(IntegerType::get(CE->getContext(),
302 return CE->getOperand(0);
307 return ExtractConstantBytes(CE->getOperand(0), ByteStart, ByteSize);
313 Constant *Res = CE->getOperand(0);
526 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
527 if (CE->isCast()) {
529 if (unsigned newOpc = foldConstantCastPair(opc, CE, DestTy))
530 return ConstantExpr::getCast(newOpc, CE->getOperand(0), DestTy);
531 } else if (CE->getOpcode() == Instruction::GetElementPtr) {
535 for (unsigned i = 1, e = CE->getNumOperands(); i != e; ++i)
536 if (!CE->getOperand(i)->isNullValue()) {
542 return ConstantExpr::getPointerCast(CE->getOperand(0), DestTy);
608 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
609 if (CE->getOpcode() == Instruction::GetElementPtr &&
610 CE->getOperand(0)->isNullValue()) {
612 cast<PointerType>(CE->getOperand(0)->getType())->getElementType();
613 if (CE->getNumOperands() == 2) {
615 Constant *Idx = CE->getOperand(1);
623 } else if (CE->getNumOperands() == 3 &&
624 CE->getOperand(1)->isNullValue()) {
628 ConstantInt *CI = cast<ConstantInt>(CE->getOperand(2));
637 if (Constant *C = getFoldedOffsetOf(Ty, CE->getOperand(2),
1942 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
1947 if (CE->getOpcode() == Instruction::GetElementPtr) {
1949 for (gep_type_iterator I = gep_type_begin(CE), E = gep_type_end(CE);
1955 NewIndices.reserve(Idxs.size() + CE->getNumOperands());
1956 for (unsigned i = 1, e = CE->getNumOperands()-1; i != e; ++i)
1957 NewIndices.push_back(CE->getOperand(i));
1961 Constant *Combined = CE->getOperand(CE->getNumOperands()-1);
1979 ConstantExpr::getGetElementPtr(CE->getOperand(0), NewIndices,
1981 cast<GEPOperator>(CE)->isInBounds());
1990 if (CE->isCast() && Idxs.size() > 1 && Idx0->isNullValue()) {
1992 dyn_cast<PointerType>(CE->getOperand(0)->getType()))
1998 ConstantExpr::getGetElementPtr((Constant*)CE->getOperand(0),