/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 62 if (isa<UndefValue>(SVI->getOperand(2))) in getShuffleMask() 68 if (isa<UndefValue>(*i)) in getShuffleMask() 83 return UndefValue::get(PTy->getElementType()); in FindScalarElement() 85 if (isa<UndefValue>(V)) in FindScalarElement() 86 return UndefValue::get(PTy->getElementType()); in FindScalarElement() 113 return UndefValue::get(PTy->getElementType()); in FindScalarElement() 125 if (isa<UndefValue>(EI.getOperand(0))) in visitExtractElementInst() 126 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 155 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 221 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 67 } else if (isa<UndefValue>(AI.getArraySize())) { in visitAllocaInst() 186 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 188 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() 194 if (isa<UndefValue>(Op) || in visitLoadInst() 199 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 201 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() 452 if (!isa<UndefValue>(Val)) { in visitStoreInst() 453 SI.setOperand(0, UndefValue::get(Val->getType())); in visitStoreInst() 461 if (isa<UndefValue>(Val)) in visitStoreInst()
|
D | InstCombineCalls.cpp | 414 UndefValue::get(LHS->getType()), in visitCallInst() 428 UndefValue::get(LHS->getType()), in visitCallInst() 449 if (isa<UndefValue>(II->getArgOperand(1))) in visitCallInst() 450 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType())); in visitCallInst() 456 UndefValue::get(II->getArgOperand(0)->getType()), in visitCallInst() 469 if (isa<UndefValue>(II->getArgOperand(0)) || in visitCallInst() 470 isa<UndefValue>(II->getArgOperand(1))) in visitCallInst() 471 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType())); in visitCallInst() 477 UndefValue::get(II->getArgOperand(0)->getType()), in visitCallInst() 509 UndefValue::get(LHS->getType()), in visitCallInst() [all …]
|
D | InstCombineSimplifyDemanded.cpp | 132 if (isa<UndefValue>(V)) in SimplifyDemandedUseBits() 134 return UndefValue::get(VTy); in SimplifyDemandedUseBits() 813 if (isa<UndefValue>(V)) { in SimplifyDemandedVectorElts() 821 return UndefValue::get(V->getType()); in SimplifyDemandedVectorElts() 827 Constant *Undef = UndefValue::get(EltTy); in SimplifyDemandedVectorElts() 834 } else if (isa<UndefValue>(CV->getOperand(i))) { // Already undef. in SimplifyDemandedVectorElts() 857 Constant *Undef = UndefValue::get(EltTy); in SimplifyDemandedVectorElts() 983 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext()))); in SimplifyDemandedVectorElts() 1136 UndefValue::get(II->getType()), TmpV, in SimplifyDemandedVectorElts()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 235 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 303 if (isa<UndefValue>(V)) { in collectSingleShuffleElements() 304 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements() 331 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements() 336 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext())); in collectSingleShuffleElements() 396 ExtendMask.push_back(UndefValue::get(IntType)); in replaceExtractElements() 416 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), in replaceExtractElements() 457 if (isa<UndefValue>(V)) { in collectShuffleElements() 458 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements() 460 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements() [all …]
|
D | InstCombineCalls.cpp | 378 if (CElt && isa<UndefValue>(CElt)) { in simplifyX86varShift() 407 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 424 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 446 if (isa<UndefValue>(Arg)) in simplifyX86movmsk() 463 if (isa<UndefValue>(COp)) in simplifyX86movmsk() 543 UndefValue::get(IntTy64)}; in simplifyX86extrq() 575 return UndefValue::get(II.getType()); in simplifyX86extrq() 596 ShuffleMask.push_back(UndefValue::get(IntTy32)); in simplifyX86extrq() 655 return UndefValue::get(II.getType()); in simplifyX86insertq() 677 ShuffleMask.push_back(UndefValue::get(IntTy32)); in simplifyX86insertq() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 211 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize() 538 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 556 Value *V = UndefValue::get(T); in unpackLoadToAggregate() 579 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 592 Value *V = UndefValue::get(T); in unpackLoadToAggregate() 856 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 858 return replaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() 864 if (isa<UndefValue>(Op) || in visitLoadInst() 869 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 871 return replaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 509 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 516 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 732 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 733 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction() 736 if (isa<UndefValue>(V1)) return V2; in ConstantFoldSelectInstruction() 737 if (isa<UndefValue>(V2)) return V1; in ConstantFoldSelectInstruction() 756 if (isa<UndefValue>(Val)) // ee(undef, x) -> undef in ConstantFoldExtractElementInstruction() 757 return UndefValue::get(cast<VectorType>(Val->getType())->getElementType()); in ConstantFoldExtractElementInstruction() 767 return UndefValue::get(cast<VectorType>(Val->getType())->getElementType()); in ConstantFoldExtractElementInstruction() 769 } else if (isa<UndefValue>(Idx)) { in ConstantFoldExtractElementInstruction() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 524 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 531 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 614 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 679 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 744 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 745 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction() 758 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 759 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction() 762 if (isa<UndefValue>(V1)) return V2; in ConstantFoldSelectInstruction() 763 if (isa<UndefValue>(V2)) return V1; in ConstantFoldSelectInstruction() [all …]
|
D | Constants.cpp | 272 if (const UndefValue *UV = dyn_cast<UndefValue>(this)) in getAggregateElement() 777 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement() 778 return UndefValue::get(getType()->getSequentialElementType()); in getSequentialElement() 781 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement() 782 return UndefValue::get(getType()->getStructElementType(Elt)); in getStructElement() 785 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue() 791 UndefValue *UndefValue::getElementValue(unsigned Idx) const { in getElementValue() 797 unsigned UndefValue::getNumElements() const { in getNumElements() 912 if (isa<UndefValue>(C) && rangeOnlyContains(V.begin(), V.end(), C)) in getImpl() 913 return UndefValue::get(Ty); in getImpl() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 66 } else if (isa<UndefValue>(COp)) { in DecodePSHUFBMask() 143 } else if (isa<UndefValue>(COp)) { in DecodeVPERMILPMask() 195 } else if (isa<UndefValue>(COp)) { in DecodeVPERMIL2PMask() 261 } else if (isa<UndefValue>(COp)) { in DecodeVPPERMMask() 309 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) { in DecodeVPERMVMask() 313 if (isa<UndefValue>(COp)) in DecodeVPERMVMask() 346 if (isa<UndefValue>(COp)) in DecodeVPERMV3Mask()
|
/external/llvm/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 113 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments() 145 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn() 147 RetVals.push_back(UndefValue::get(F.getReturnType())); in PropagateConstantReturn() 167 if (isa<UndefValue>(V)) in PropagateConstantReturn() 172 if (isa<UndefValue>(RV)) { in PropagateConstantReturn()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 142 if (V == 0) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments() 173 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn() 175 RetVals.push_back(UndefValue::get(F.getReturnType())); in PropagateConstantReturn() 195 if (isa<UndefValue>(V)) in PropagateConstantReturn() 200 if (isa<UndefValue>(RV)) { in PropagateConstantReturn()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SCCP.cpp | 235 if (!isa<UndefValue>(GV->getInitializer())) in TrackValueOfGlobalVariable() 397 if (!isa<UndefValue>(V)) in getValueState() 426 else if (isa<UndefValue>(Elt)) in getStructValueState() 779 if (isa<UndefValue>(C)) in visitCastInst() 887 if (isa<UndefValue>(C)) in visitBinaryOperator() 948 if (isa<UndefValue>(C)) in visitCmpInst() 1000 if (isa<UndefValue>(C)) in visitGetElementPtrInst() 1061 if (isa<UndefValue>(C)) in visitLoadInst() 1108 if (isa<UndefValue>(C)) in visitCallSite() 1477 if (isa<UndefValue>(BI->getCondition())) { in ResolvedUndefsIn() [all …]
|
/external/swiftshader/third_party/LLVM/ |
D | OnlyX86.patch | 136 - !isa<UndefValue>(Mask->getOperand(i))) { 148 - Value *Result = UndefValue::get(Op0->getType()); 155 - if (isa<UndefValue>(Mask->getOperand(i))) 183 + // !isa<UndefValue>(Mask->getOperand(i))) { 195 + // Value *Result = UndefValue::get(Op0->getType()); 202 + // if (isa<UndefValue>(Mask->getOperand(i)))
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | SCCP.cpp | 234 if (!isa<UndefValue>(GV->getInitializer())) in TrackValueOfGlobalVariable() 390 if (!isa<UndefValue>(V)) in getValueState() 415 if (isa<UndefValue>(C)) in getStructValueState() 1139 markConstant(&I,ConstantExpr::getInsertElement(UndefValue::get(I.getType()), in visitInsertElementInst() 1163 V1State.getConstant() : UndefValue::get(I.getType()); in visitShuffleVectorInst() 1165 V2State.getConstant() : UndefValue::get(I.getType()); in visitShuffleVectorInst() 1167 MaskState.getConstant() : UndefValue::get(I.getOperand(2)->getType()); in visitShuffleVectorInst() 1642 if (isa<UndefValue>(BI->getCondition())) { in ResolvedUndefsIn() 1664 if (isa<UndefValue>(SI->getCondition())) { in ResolvedUndefsIn() 1723 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType())); in DeleteInstructionInBlock() [all …]
|
D | JumpThreading.cpp | 294 if (UndefValue *U = dyn_cast<UndefValue>(Val)) in getKnownConstant() 408 isa<UndefValue>(LHSVals[i].first)) { in ComputeValueKnownInPredecessors() 415 isa<UndefValue>(RHSVals[i].first)) { in ComputeValueKnownInPredecessors() 560 assert(isa<UndefValue>(Cond) && "Unexpected condition value"); in ComputeValueKnownInPredecessors() 687 if (isa<UndefValue>(Condition)) { in ProcessBlock() 843 if (AvailableVal == LI) AvailableVal = UndefValue::get(LI->getType()); in SimplifyPartiallyRedundantLoad() 1081 if (isa<UndefValue>(Val)) in ProcessThreadableEdges() 1225 if (isa<UndefValue>(XorOpValues[i].first)) in ProcessBranchOnXOR() 1246 !isa<UndefValue>(XorOpValues[i].first)) in ProcessBranchOnXOR() 1258 BO->replaceAllUsesWith(UndefValue::get(BO->getType())); in ProcessBranchOnXOR()
|
/external/llvm/lib/Analysis/ |
D | Lint.cpp | 383 Assert(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference() 477 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor() 482 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub() 510 if (isa<UndefValue>(V)) in isZero() 535 if (isa<UndefValue>(Elem)) in isZero() 629 return UndefValue::get(V->getType()); in findValueImpl()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ConstantFolding.cpp | 246 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) in ReadDataFromGlobal() 408 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr() 489 if (isa<UndefValue>(GV->getInitializer())) in ConstantFoldLoadFromConstPtr() 490 return UndefValue::get(ResTy); in ConstantFoldLoadFromConstPtr() 743 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction() 754 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction() 1000 } else if (isa<UndefValue>(C)) { in ConstantFoldLoadThroughGEPConstantExpr() 1001 C = UndefValue::get(STy->getElementType(El)); in ConstantFoldLoadThroughGEPConstantExpr() 1013 else if (isa<UndefValue>(C)) in ConstantFoldLoadThroughGEPConstantExpr() 1014 C = UndefValue::get(ATy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr() [all …]
|
D | Lint.cpp | 376 Assert1(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference() 437 Assert1(!isa<UndefValue>(I.getOperand(0)) || in visitXor() 438 !isa<UndefValue>(I.getOperand(1)), in visitXor() 443 Assert1(!isa<UndefValue>(I.getOperand(0)) || in visitSub() 444 !isa<UndefValue>(I.getOperand(1)), in visitSub() 471 if (isa<UndefValue>(V)) return true; in isZero() 563 return UndefValue::get(V->getType()); in findValueImpl()
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Constants.h | 899 class UndefValue : public Constant { 900 friend struct ConstantCreator<UndefValue, Type, char>; 902 UndefValue(const UndefValue &); // DO NOT IMPLEMENT 904 explicit UndefValue(Type *T) : Constant(T, UndefValueVal, 0, 0) {} 914 static UndefValue *get(Type *T); 919 static inline bool classof(const UndefValue *) { return true; }
|
/external/llvm/include/llvm/IR/ |
D | Constants.h | 1203 class UndefValue final : public ConstantData { 1204 UndefValue(const UndefValue &) = delete; 1209 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {} 1213 static UndefValue *get(Type *T); 1217 UndefValue *getSequentialElement() const; 1221 UndefValue *getStructElement(unsigned Elt) const; 1225 UndefValue *getElementValue(Constant *C) const; 1228 UndefValue *getElementValue(unsigned Idx) const;
|
D | Value.def | 74 HANDLE_CONSTANT(UndefValue) 92 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Value.def | 74 HANDLE_CONSTANT(UndefValue) 92 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 322 return isa<UndefValue>(II->getArgOperand(1)); in isInstructionTriviallyDead() 341 return C->isNullValue() || isa<UndefValue>(C); in isInstructionTriviallyDead() 420 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RecursivelyDeleteDeadPHINode() 573 if (NewVal == PN) NewVal = UndefValue::get(PN->getType()); in MergeBasicBlockIntoOnlyPred() 617 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second); in CanMergeValues() 697 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock() 726 if (!isa<UndefValue>(V)) in gatherIncomingValuesToPhi() 741 if (!isa<UndefValue>(V)) continue; in replaceUndefValuesInPhi() 1301 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType())); in removeAllNonTerminatorAndEHPadInstructions() 1335 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType())); in changeToUnreachable() [all …]
|