/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 64 return UndefValue::get(VTy->getElementType()); 89 return UndefValue::get(VTy->getElementType()); 115 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); 180 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); 215 if (isa<UndefValue>(V)) { 216 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); 243 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. 248 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext())); 294 if (isa<UndefValue>(V)) { 295 Mask.assign(NumElts, UndefValue [all...] |
H A D | InstCombineCalls.cpp | 341 UndefValue::get(LHS->getType()), 355 UndefValue::get(LHS->getType()), 376 if (isa<UndefValue>(II->getArgOperand(1))) 377 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType())); 383 UndefValue::get(II->getArgOperand(0)->getType()), 396 if (isa<UndefValue>(II->getArgOperand(0)) || 397 isa<UndefValue>(II->getArgOperand(1))) 398 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType())); 404 UndefValue::get(II->getArgOperand(0)->getType()), 435 UndefValue [all...] |
H A D | InstCombineLoadStoreAlloca.cpp | 213 } else if (isa<UndefValue>(AI.getArraySize())) { 390 new StoreInst(UndefValue::get(LI.getType()), 392 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); 398 if (isa<UndefValue>(Op) || 403 new StoreInst(UndefValue::get(LI.getType()), 405 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); 656 if (!isa<UndefValue>(Val)) { 657 SI.setOperand(0, UndefValue::get(Val->getType())); 665 if (isa<UndefValue>(Val))
|
H A D | InstCombineSimplifyDemanded.cpp | 132 if (isa<UndefValue>(V)) 134 return UndefValue::get(VTy); 819 if (isa<UndefValue>(V)) { 827 return UndefValue::get(V->getType()); 840 Constant *Undef = UndefValue::get(EltTy); 853 if (isa<UndefValue>(Elt)) { // Already undef. 982 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext()))); 1164 UndefValue::get(II->getType()), TmpV,
|
H A D | InstCombine.h | 50 return isa<Constant>(V) ? (isa<UndefValue>(V) ? 0 : 1) : 2; 264 V = UndefValue::get(I.getType());
|
/external/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 142 if (V == 0) V = UndefValue::get(AI->getType()); 173 RetVals.push_back(UndefValue::get(STy->getElementType(i))); 175 RetVals.push_back(UndefValue::get(F.getReturnType())); 195 if (isa<UndefValue>(V)) 200 if (isa<UndefValue>(RV)) {
|
/external/llvm/lib/VMCore/ |
H A D | ConstantFold.cpp | 507 if (isa<UndefValue>(V)) { 514 return UndefValue::get(DestTy); 716 if (isa<UndefValue>(Cond)) { 717 if (isa<UndefValue>(V1)) return V1; 720 if (isa<UndefValue>(V1)) return V2; 721 if (isa<UndefValue>(V2)) return V1; 740 if (isa<UndefValue>(Val)) // ee(undef, x) -> undef 741 return UndefValue::get(Val->getType()->getVectorElementType()); 745 if (isa<UndefValue>(Idx)) 746 return UndefValue [all...] |
H A D | Constants.cpp | 174 if (const UndefValue *UV = dyn_cast<UndefValue>(this)) 631 // UndefValue Implementation 636 UndefValue *UndefValue::getSequentialElement() const { 637 return UndefValue::get(getType()->getSequentialElementType()); 642 UndefValue *UndefValue::getStructElement(unsigned Elt) const { 643 return UndefValue::get(getType()->getStructElementType(Elt)); 648 UndefValue *UndefValu [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 230 if (!isa<UndefValue>(GV->getInitializer())) 386 if (!isa<UndefValue>(V)) 415 else if (isa<UndefValue>(Elt)) 965 markConstant(&I,ConstantExpr::getInsertElement(UndefValue::get(I.getType()), 989 V1State.getConstant() : UndefValue::get(I.getType()); 991 V2State.getConstant() : UndefValue::get(I.getType()); 993 MaskState.getConstant() : UndefValue::get(I.getOperand(2)->getType()); 1468 if (isa<UndefValue>(BI->getCondition())) { 1490 if (isa<UndefValue>(SI->getCondition())) { 1552 Inst->replaceAllUsesWith(UndefValue [all...] |
H A D | SimplifyCFGPass.cpp | 85 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType())); 148 if (isa<UndefValue>(Ptr) || 161 if (isa<ConstantPointerNull>(Callee) || isa<UndefValue>(Callee)) {
|
H A D | JumpThreading.cpp | 299 if (UndefValue *U = dyn_cast<UndefValue>(Val)) 413 isa<UndefValue>(LHSVals[i].first)) { 420 isa<UndefValue>(RHSVals[i].first)) { 565 assert(isa<UndefValue>(Cond) && "Unexpected condition value"); 694 if (isa<UndefValue>(Condition)) { 850 if (AvailableVal == LI) AvailableVal = UndefValue::get(LI->getType()); 1098 if (isa<UndefValue>(Val)) 1242 if (isa<UndefValue>(XorOpValues[i].first)) 1263 !isa<UndefValue>(XorOpValue [all...] |
H A D | LICM.cpp | 499 I.replaceAllUsesWith(UndefValue::get(I.getType())); 521 I.replaceAllUsesWith(UndefValue::get(I.getType())); 572 I.replaceAllUsesWith(UndefValue::get(I.getType()));
|
/external/llvm/include/llvm/ |
H A D | Constants.h | 1118 /// UndefValue - 'undef' values are things that do not have specified contents. 1127 class UndefValue : public Constant { class in namespace:llvm 1129 UndefValue(const UndefValue &); // DO NOT IMPLEMENT 1131 explicit UndefValue(Type *T) : Constant(T, UndefValueVal, 0, 0) {} function in class:llvm::UndefValue 1141 static UndefValue *get(Type *T); 1145 UndefValue *getSequentialElement() const; 1149 UndefValue *getStructElement(unsigned Elt) const; 1153 UndefValue *getElementValue(Constant *C) const; 1157 UndefValue *getElementValu [all...] |
/external/llvm/unittests/VMCore/ |
H A D | ConstantsTest.cpp | 24 Constant* Undef = UndefValue::get(Int1);
|
/external/llvm/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 149 if (isa<UndefValue>(C)) 150 return VM[V] = UndefValue::get(NewTy);
|
H A D | SSAUpdater.cpp | 159 return UndefValue::get(ProtoType); 297 return UndefValue::get(Updater->ProtoType); 486 if (NewVal == ALoad) NewVal = UndefValue::get(NewVal->getType());
|
H A D | PromoteMemoryToRegister.cpp | 547 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); 573 A->replaceAllUsesWith(UndefValue::get(A->getType())); 660 Value *UndefVal = UndefValue::get(SomePHI->getType()); 886 ReplVal = UndefValue::get(LI->getType()); 945 LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
|
H A D | BasicBlockUtils.cpp | 55 I.replaceAllUsesWith(UndefValue::get(I.getType())); 81 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); 481 cast<PHINode>(I)->addIncoming(UndefValue::get(I->getType()), NewBB);
|
H A D | LoopSimplify.cpp | 174 TI->replaceAllUsesWith(UndefValue::get(TI->getType())); 190 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
|
/external/llvm/lib/Analysis/ |
H A D | Lint.cpp | 381 Assert1(!isa<UndefValue>(UnderlyingObject), 441 Assert1(!isa<UndefValue>(I.getOperand(0)) || 442 !isa<UndefValue>(I.getOperand(1)), 447 Assert1(!isa<UndefValue>(I.getOperand(0)) || 448 !isa<UndefValue>(I.getOperand(1)), 475 if (isa<UndefValue>(V)) return true; 566 return UndefValue::get(V->getType());
|
H A D | MemoryBuiltins.cpp | 404 if (UndefValue *UV = dyn_cast<UndefValue>(V)) 552 SizeOffsetType ObjectSizeOffsetVisitor::visitUndefValue(UndefValue&) { 727 OffsetPHI->replaceAllUsesWith(UndefValue::get(IntTy)); 729 SizePHI->replaceAllUsesWith(UndefValue::get(IntTy));
|
H A D | InstructionSimplify.cpp | 389 if (TV && isa<UndefValue>(TV)) 391 if (FV && isa<UndefValue>(FV)) 769 return UndefValue::get(Op0->getType()); 1108 return UndefValue::get(Op0->getType()); 1215 return UndefValue::get(Op0->getType()); 1656 if (LHS == RHS || isa<UndefValue>(RHS)) 2431 if (isa<UndefValue>(RHS)) // fcmp pred X, undef -> undef 2432 return UndefValue::get(GetCompareTy(LHS)); 2520 if (isa<UndefValue>(CondVal)) { // select undef, X, Y -> X or Y 2525 if (isa<UndefValue>(TrueVa [all...] |
/external/llvm/lib/CodeGen/ |
H A D | DwarfEHPrepare.cpp | 82 if (ExcIVI && isa<UndefValue>(ExcIVI->getOperand(0)) &&
|
/external/llvm/lib/Transforms/Vectorize/ |
H A D | BBVectorize.cpp | 1529 Mask[v+MaskOffset] = UndefValue::get(Type::getInt32Ty(Context)); 1596 if (!isa<UndefValue>(LIENext->getOperand(0)) && 1606 UndefValue::get(ArgTypeL->getScalarType())); 1616 Value *LIEPrev = UndefValue::get(ArgTypeH); 1618 if (isa<UndefValue>(VectElemts[i])) continue; 1627 LOp = LIENext ? (Value*) LIENext : UndefValue::get(ArgTypeH); 1697 if (I2 == I1 || isa<UndefValue>(I2)) 1716 if (!isa<UndefValue>(I4)) { 1799 Mask[i] = UndefValue::get(Type::getInt32Ty(Context)); 1805 new ShuffleVectorInst(I1, UndefValue [all...] |
/external/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 154 return UndefValue::get(Tp); 187 return UndefValue::get(Tp); 198 return UndefValue::get(pickPointerType()); 209 return UndefValue::get(pickVectorType()); 442 CI = UndefValue::get(I32);
|