Searched refs:UndefValue (Results 1 - 25 of 91) sorted by relevance

1234

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp64 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 DInstCombineCalls.cpp341 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 DInstCombineLoadStoreAlloca.cpp213 } 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 DInstCombineSimplifyDemanded.cpp132 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 DInstCombine.h50 return isa<Constant>(V) ? (isa<UndefValue>(V) ? 0 : 1) : 2;
264 V = UndefValue::get(I.getType());
/external/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp142 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 DConstantFold.cpp507 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 DConstants.cpp174 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 DSCCP.cpp230 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 DSimplifyCFGPass.cpp85 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
148 if (isa<UndefValue>(Ptr) ||
161 if (isa<ConstantPointerNull>(Callee) || isa<UndefValue>(Callee)) {
H A DJumpThreading.cpp299 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 DLICM.cpp499 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 DConstants.h1118 /// 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 DConstantsTest.cpp24 Constant* Undef = UndefValue::get(Int1);
/external/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp149 if (isa<UndefValue>(C))
150 return VM[V] = UndefValue::get(NewTy);
H A DSSAUpdater.cpp159 return UndefValue::get(ProtoType);
297 return UndefValue::get(Updater->ProtoType);
486 if (NewVal == ALoad) NewVal = UndefValue::get(NewVal->getType());
H A DPromoteMemoryToRegister.cpp547 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 DBasicBlockUtils.cpp55 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 DLoopSimplify.cpp174 TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
190 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
/external/llvm/lib/Analysis/
H A DLint.cpp381 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 DMemoryBuiltins.cpp404 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 DInstructionSimplify.cpp389 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 DDwarfEHPrepare.cpp82 if (ExcIVI && isa<UndefValue>(ExcIVI->getOperand(0)) &&
/external/llvm/lib/Transforms/Vectorize/
H A DBBVectorize.cpp1529 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 Dllvm-stress.cpp154 return UndefValue::get(Tp);
187 return UndefValue::get(Tp);
198 return UndefValue::get(pickPointerType());
209 return UndefValue::get(pickVectorType());
442 CI = UndefValue::get(I32);

Completed in 288 milliseconds

1234