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

12345

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp70 return UndefValue::get(VTy->getElementType());
95 return UndefValue::get(VTy->getElementType());
195 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType()));
268 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType()));
335 if (isa<UndefValue>(V)) {
336 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
363 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector.
368 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext()));
420 if (isa<UndefValue>(V)) {
421 Mask.assign(NumElts, UndefValue
[all...]
H A DInstCombineCalls.cpp374 UndefValue::get(LHS->getType()),
388 UndefValue::get(LHS->getType()),
409 if (isa<UndefValue>(II->getArgOperand(1)))
410 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType()));
416 UndefValue::get(II->getArgOperand(0)->getType()),
432 Constant *V[] = {UndefValue::get(Add->getType()), Builder->getFalse()};
444 if (isa<UndefValue>(II->getArgOperand(0)) ||
445 isa<UndefValue>(II->getArgOperand(1)))
446 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType()));
452 UndefValue
[all...]
H A DInstCombineLoadStoreAlloca.cpp207 } else if (isa<UndefValue>(AI.getArraySize())) {
402 new StoreInst(UndefValue::get(LI.getType()),
404 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType()));
410 if (isa<UndefValue>(Op) ||
415 new StoreInst(UndefValue::get(LI.getType()),
417 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType()));
680 if (!isa<UndefValue>(Val)) {
681 SI.setOperand(0, UndefValue::get(Val->getType()));
689 if (isa<UndefValue>(Val))
H A DInstCombineSimplifyDemanded.cpp134 if (isa<UndefValue>(V))
136 return UndefValue::get(VTy);
924 if (isa<UndefValue>(V)) {
932 return UndefValue::get(V->getType());
945 Constant *Undef = UndefValue::get(EltTy);
958 if (isa<UndefValue>(Elt)) { // Already undef.
1087 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext())));
1269 UndefValue::get(II->getType()), TmpV,
H A DInstructionCombining.cpp1222 if (isa<UndefValue>(LShuf->getOperand(1)) &&
1223 isa<UndefValue>(RShuf->getOperand(1)) &&
1229 UndefValue::get(NewBO->getType()), LShuf->getMask());
1244 isa<UndefValue>(Shuffle->getOperand(1)) &&
1252 UndefValue::get(C1->getType()->getScalarType()));
1257 if (!isa<UndefValue>(C2M[ShMask[I]])) {
1276 UndefValue::get(Inst.getType()), Shuffle->getMask());
1818 ReplaceInstUsesWith(*I, UndefValue::get(I->getType()));
1903 if (isa<UndefValue>(Op)) {
1906 UndefValue
[all...]
/external/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp143 if (!V) V = UndefValue::get(AI->getType());
174 RetVals.push_back(UndefValue::get(STy->getElementType(i)));
176 RetVals.push_back(UndefValue::get(F.getReturnType()));
196 if (isa<UndefValue>(V))
201 if (isa<UndefValue>(RV)) {
/external/llvm/lib/IR/
H A DConstantFold.cpp512 if (isa<UndefValue>(V)) {
519 return UndefValue::get(DestTy);
719 } else if (isa<UndefValue>(Cond)) {
720 V = isa<UndefValue>(V1Element) ? V1Element : V2Element;
733 if (isa<UndefValue>(Cond)) {
734 if (isa<UndefValue>(V1)) return V1;
737 if (isa<UndefValue>(V1)) return V2;
738 if (isa<UndefValue>(V2)) return V1;
757 if (isa<UndefValue>(Val)) // ee(undef, x) -> undef
758 return UndefValue
[all...]
H A DConstants.cpp218 if (const UndefValue *UV = dyn_cast<UndefValue>(this))
726 // UndefValue Implementation
731 UndefValue *UndefValue::getSequentialElement() const {
732 return UndefValue::get(getType()->getSequentialElementType());
737 UndefValue *UndefValue::getStructElement(unsigned Elt) const {
738 return UndefValue::get(getType()->getStructElementType(Elt));
743 UndefValue *UndefValu
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp231 if (!isa<UndefValue>(GV->getInitializer()))
380 if (!isa<UndefValue>(V))
409 else if (isa<UndefValue>(Elt))
957 markConstant(&I,ConstantExpr::getInsertElement(UndefValue::get(I.getType()),
981 V1State.getConstant() : UndefValue::get(I.getType());
983 V2State.getConstant() : UndefValue::get(I.getType());
985 MaskState.getConstant() : UndefValue::get(I.getOperand(2)->getType());
1458 if (isa<UndefValue>(BI->getCondition())) {
1480 if (isa<UndefValue>(SI->getCondition())) {
1542 Inst->replaceAllUsesWith(UndefValue
[all...]
H A DLowerAtomic.cpp35 Res = Builder.CreateInsertValue(UndefValue::get(CXI->getType()), Orig, 0);
H A DJumpThreading.cpp324 if (UndefValue *U = dyn_cast<UndefValue>(Val))
438 isa<UndefValue>(LHSVals[i].first)) {
445 isa<UndefValue>(RHSVals[i].first)) {
590 assert(isa<UndefValue>(Cond) && "Unexpected condition value");
719 if (isa<UndefValue>(Condition)) {
884 if (AvailableVal == LI) AvailableVal = UndefValue::get(LI->getType());
1132 if (isa<UndefValue>(Val))
1276 if (isa<UndefValue>(XorOpValues[i].first))
1297 !isa<UndefValue>(XorOpValue
[all...]
H A DStructurizeCFG.cpp163 UndefValue *BoolUndef;
274 BoolUndef = UndefValue::get(Boolean);
517 Value *Undef = UndefValue::get(Phi.getType());
540 Value *Undef = UndefValue::get(Phi->getType());
845 Value *Undef = UndefValue::get(II->getType());
/external/llvm/lib/Transforms/Utils/
H A DLocal.cpp303 return isa<UndefValue>(II->getArgOperand(1));
310 return C->isNullValue() || isa<UndefValue>(C);
389 I->replaceAllUsesWith(UndefValue::get(I->getType()));
486 if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
529 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second);
609 if (!isa<UndefValue>(OldVal)) {
638 if (!isa<UndefValue>(V))
653 if (!isa<UndefValue>(V)) continue;
1144 BBI->replaceAllUsesWith(UndefValue
[all...]
H A DValueMapper.cpp172 if (isa<UndefValue>(C))
173 return VM[V] = UndefValue::get(NewTy);
H A DSSAUpdater.cpp129 return UndefValue::get(ProtoType);
259 return UndefValue::get(Updater->ProtoType);
447 if (NewVal == ALoad) NewVal = UndefValue::get(NewVal->getType());
H A DPromoteMemoryToRegister.cpp400 ReplVal = UndefValue::get(LI->getType());
482 LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
632 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
658 A->replaceAllUsesWith(UndefValue::get(A->getType()));
753 Value *UndefVal = UndefValue::get(SomePHI->getType());
/external/llvm/include/llvm/IR/
H A DConstants.h1126 /// UndefValue - 'undef' values are things that do not have specified contents.
1135 class UndefValue : public Constant { class in namespace:llvm
1137 UndefValue(const UndefValue &) LLVM_DELETED_FUNCTION;
1139 explicit UndefValue(Type *T) : Constant(T, UndefValueVal, nullptr, 0) {} function in class:llvm::UndefValue
1149 static UndefValue *get(Type *T);
1153 UndefValue *getSequentialElement() const;
1157 UndefValue *getStructElement(unsigned Elt) const;
1161 UndefValue *getElementValue(Constant *C) const;
1165 UndefValue *getElementValu
[all...]
/external/llvm/lib/Analysis/
H A DLint.cpp381 Assert1(!isa<UndefValue>(UnderlyingObject),
475 Assert1(!isa<UndefValue>(I.getOperand(0)) ||
476 !isa<UndefValue>(I.getOperand(1)),
481 Assert1(!isa<UndefValue>(I.getOperand(0)) ||
482 !isa<UndefValue>(I.getOperand(1)),
509 if (isa<UndefValue>(V))
533 if (isa<UndefValue>(Elem))
628 return UndefValue::get(V->getType());
H A DConstantFolding.cpp278 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C))
449 return UndefValue::get(IntType);
592 if (isa<UndefValue>(GV->getInitializer()))
593 return UndefValue::get(ResTy);
907 if (isa<UndefValue>(Incoming))
925 return CommonValue ? CommonValue : UndefValue::get(PN->getType());
1600 if (isa<UndefValue>(Operands[0])) {
1695 return UndefValue::get(Ty);
1699 return UndefValue::get(Ty);
H A DMemoryBuiltins.cpp430 if (UndefValue *UV = dyn_cast<UndefValue>(V))
583 SizeOffsetType ObjectSizeOffsetVisitor::visitUndefValue(UndefValue&) {
766 OffsetPHI->replaceAllUsesWith(UndefValue::get(IntTy));
768 SizePHI->replaceAllUsesWith(UndefValue::get(IntTy));
/external/llvm/lib/Transforms/Vectorize/
H A DBBVectorize.cpp705 if (!isa<UndefValue>(IENext->getOperand(0)) &&
1982 if (isa<UndefValue>(SI->getOperand(1)))
2013 if (isa<UndefValue>(SI->getOperand(1)))
2325 Mask[v+MaskOffset] = UndefValue::get(Type::getInt32Ty(Context));
2391 UndefValue::get(ArgTypeL->getScalarType()));
2401 Value *LIEPrev = UndefValue::get(ArgTypeH);
2403 if (isa<UndefValue>(VectElemts[i])) continue;
2413 LOp = LIENext ? (Value*) LIENext : UndefValue::get(ArgTypeH);
2474 if (I2 == I1 || isa<UndefValue>(I2))
2493 if (!isa<UndefValue>(I
[all...]
/external/llvm/lib/CodeGen/
H A DDwarfEHPrepare.cpp81 if (ExcIVI && isa<UndefValue>(ExcIVI->getOperand(0)) &&
/external/llvm/lib/Target/AArch64/
H A DAArch64AddressTypePromotion.cpp327 // UndefValue are typed, so we have to statically sign extend them.
328 if (isa<UndefValue>(Opnd)) {
330 Inst->setOperand(OpIdx, UndefValue::get(SExt->getType()));
/external/llvm/lib/Target/R600/
H A DSIAnnotateControlFlow.cpp55 UndefValue *BoolUndef;
124 BoolUndef = UndefValue::get(Boolean);
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp160 return UndefValue::get(Tp);
193 return UndefValue::get(Tp);
204 return UndefValue::get(pickPointerType());
215 return UndefValue::get(pickVectorType());
446 CI = UndefValue::get(I32);

Completed in 339 milliseconds

12345