/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 417 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 451 if (isa<UndefValue>(V)) { in collectSingleShuffleElements() 452 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements() 479 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements() 484 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext())); in collectSingleShuffleElements() 544 ExtendMask.push_back(UndefValue::get(IntType)); in replaceExtractElements() 572 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), in replaceExtractElements() 613 if (isa<UndefValue>(V)) { in collectShuffleElements() 614 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements() 616 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements() [all …]
|
D | InstCombineCalls.cpp | 489 if (CElt && isa<UndefValue>(CElt)) { in simplifyX86varShift() 518 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 535 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 557 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack() 558 return UndefValue::get(ResTy); in simplifyX86pack() 623 if (isa<UndefValue>(Arg)) in simplifyX86movmsk() 665 Value *Res = UndefValue::get(RetTy); in simplifyX86addcarry() 738 UndefValue::get(IntTy64)}; in simplifyX86extrq() 770 return UndefValue::get(II.getType()); in simplifyX86extrq() 791 ShuffleMask.push_back(UndefValue::get(IntTy32)); in simplifyX86extrq() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 225 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize() 667 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 685 Value *V = UndefValue::get(T); in unpackLoadToAggregate() 716 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 736 Value *V = UndefValue::get(T); in unpackLoadToAggregate() 952 if (isa<UndefValue>(Op) || in canSimplifyNullLoadOrGEP() 1014 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 1017 return replaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() 1102 if (!isa<UndefValue>(V) ||!U) in likeBitCastFromVector() 1366 IC.replaceInstUsesWith(*LI, UndefValue::get(LI->getType())); in removeBitcastsFromLoadStoreOnMinMax() [all …]
|
D | InstCombineSimplifyDemanded.cpp | 137 return UndefValue::get(VTy); in SimplifyDemandedUseBits() 1045 return UndefValue::get(II->getType()); in simplifyAMDGCNMemoryIntrinsicDemanded() 1087 return Builder.CreateInsertElement(UndefValue::get(II->getType()), NewCall, in simplifyAMDGCNMemoryIntrinsicDemanded() 1101 Builder.CreateShuffleVector(NewCall, UndefValue::get(NewTy), EltMask); in simplifyAMDGCNMemoryIntrinsicDemanded() 1127 if (isa<UndefValue>(V)) { in SimplifyDemandedVectorElts() 1135 return UndefValue::get(V->getType()); in SimplifyDemandedVectorElts() 1147 Constant *Undef = UndefValue::get(EltTy); in SimplifyDemandedVectorElts() 1159 if (isa<UndefValue>(Elt)) { // Already undef. in SimplifyDemandedVectorElts() 1234 if (isa<UndefValue>(I->getOperand(i))) { in SimplifyDemandedVectorElts() 1402 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext()))); in SimplifyDemandedVectorElts() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 523 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 530 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 619 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 752 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 753 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction() 766 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 767 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction() 770 if (isa<UndefValue>(V1)) return V2; in ConstantFoldSelectInstruction() 771 if (isa<UndefValue>(V2)) return V1; in ConstantFoldSelectInstruction() 792 if (isa<UndefValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction() [all …]
|
D | Constants.cpp | 301 if (isa<UndefValue>(getAggregateElement(i))) in containsUndefElement() 395 if (const UndefValue *UV = dyn_cast<UndefValue>(this)) in getAggregateElement() 952 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement() 953 return UndefValue::get(getType()->getSequentialElementType()); in getSequentialElement() 956 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement() 957 return UndefValue::get(getType()->getStructElementType(Elt)); in getStructElement() 960 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue() 966 UndefValue *UndefValue::getElementValue(unsigned Idx) const { in getElementValue() 972 unsigned UndefValue::getNumElements() const { in getNumElements() 1085 if (isa<UndefValue>(C) && rangeOnlyContains(V.begin(), V.end(), C)) in getImpl() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 136 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments() 174 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn() 176 RetVals.push_back(UndefValue::get(F.getReturnType())); in PropagateConstantReturn() 196 if (isa<UndefValue>(V)) in PropagateConstantReturn() 201 if (isa<UndefValue>(RV)) { in PropagateConstantReturn()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | ValueLattice.h | 121 if (!isa<UndefValue>(C)) in get() 127 if (!isa<UndefValue>(C)) in getNot() 190 if (isa<UndefValue>(V)) in markConstant() 206 if (isa<UndefValue>(V)) in markNotConstant() 296 return UndefValue::get(Ty); in getCompare()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 61 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask() 64 if (isa<UndefValue>(COp)) { in extractConstantMask() 81 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask() 86 if (isa<UndefValue>(COp)) { in extractConstantMask()
|
D | X86InterleavedAccess.cpp | 292 Vec[i], UndefValue::get(Vec[i]->getType()), VPShuf); in reorderSubVector() 575 Vec[i], UndefValue::get(Vec[0]->getType()), VPShuf); in deinterleave8bitStride3() 598 Vec[1], UndefValue::get(Vec[1]->getType()), VPAlign3); in deinterleave8bitStride3() 600 Vec[0], UndefValue::get(Vec[1]->getType()), VPAlign2); in deinterleave8bitStride3() 658 InVec[0], UndefValue::get(InVec[0]->getType()), VPAlign2); in interleave8bitStride3() 660 InVec[1], UndefValue::get(InVec[1]->getType()), VPAlign3); in interleave8bitStride3()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixFunctionBitcasts.cpp | 172 Args.push_back(UndefValue::get(*PI)); in createWrapper() 186 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper() 263 Value *Args[] = {UndefValue::get(MainArgTys[0]), in runOnModule() 264 UndefValue::get(MainArgTys[1])}; in runOnModule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SCCP.cpp | 296 if (!isa<UndefValue>(GV->getInitializer())) in TrackValueOfGlobalVariable() 502 if (!isa<UndefValue>(V)) in getValueState() 543 else if (isa<UndefValue>(Elt)) in getStructValueState() 881 if (isa<UndefValue>(C)) in visitCastInst() 987 if (isa<UndefValue>(C)) in visitUnaryOperator() 1011 if (isa<UndefValue>(C)) in visitBinaryOperator() 1085 if (isa<UndefValue>(C)) in visitCmpInst() 1125 if (isa<UndefValue>(C)) in visitGetElementPtrInst() 1189 if (isa<UndefValue>(C)) in visitLoadInst() 1297 if (isa<UndefValue>(C)) in visitCallSite() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | Lint.cpp | 426 Assert(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference() 520 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor() 525 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub() 553 if (isa<UndefValue>(V)) in isZero() 574 if (isa<UndefValue>(Elem)) in isZero() 667 return UndefValue::get(V->getType()); in findValueImpl()
|
D | VectorUtils.cpp | 267 return UndefValue::get(VTy->getElementType()); in findScalarElement() 292 return UndefValue::get(VTy->getElementType()); in findScalarElement() 337 if (isa<UndefValue>(V)) in isSplatValue() 693 Constant *Undef = UndefValue::get(Builder.getInt32Ty()); in createSequentialMask() 719 V2 = Builder.CreateShuffleVector(V2, UndefValue::get(VecTy2), ExtMask); in concatenateTwoVectors() 757 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef() 762 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt)) in maskIsAllZeroOrUndef() 774 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef() 779 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskIsAllOneOrUndef()
|
D | InstructionSimplify.cpp | 426 if (TV && isa<UndefValue>(TV)) in ThreadBinOpOverSelect() 428 if (FV && isa<UndefValue>(FV)) in ThreadBinOpOverSelect() 745 return UndefValue::get(Op0->getType()); in SimplifySubInst() 944 return UndefValue::get(Ty); in simplifyDivRem() 953 if (Elt && (Elt->isNullValue() || isa<UndefValue>(Elt))) in simplifyDivRem() 954 return UndefValue::get(Ty); in simplifyDivRem() 1214 if (isa<UndefValue>(C)) in isUndefShift() 1255 return UndefValue::get(Op0->getType()); in SimplifyShift() 1273 return UndefValue::get(Op0->getType()); in SimplifyShift() 3236 assert(!isa<UndefValue>(LHS) && "Unexpected icmp undef,%X"); in SimplifyICmpInst() [all …]
|
D | ConstantFolding.cpp | 78 if (Element && isa<UndefValue>(Element)) { in foldConstVectorToAPInt() 217 if (Src && isa<UndefValue>(Src)) in FoldBitCast() 251 if (isa<UndefValue>(Element)) { in FoldBitCast() 253 Result.append(Ratio, UndefValue::get(DstEltTy)); in FoldBitCast() 387 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) in ReadDataFromGlobal() 568 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr() 572 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr() 693 if (isa<UndefValue>(GV->getInitializer())) in ConstantFoldLoadFromConstPtr() 694 return UndefValue::get(Ty); in ConstantFoldLoadFromConstPtr() 1132 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/ |
D | OpDescriptor.h | 66 Constant *V = UndefValue::get(T); in SourcePred() 137 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in anyPtrType() 157 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in sizedPtrType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Constants.h | 1286 class UndefValue final : public ConstantData { 1289 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {} 1294 UndefValue(const UndefValue &) = delete; 1297 static UndefValue *get(Type *T); 1301 UndefValue *getSequentialElement() const; 1305 UndefValue *getStructElement(unsigned Elt) const; 1309 UndefValue *getElementValue(Constant *C) const; 1312 UndefValue *getElementValue(unsigned Idx) const;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUUnifyDivergentExitNodes.cpp | 153 Value *Undef = UndefValue::get(B.getFloatTy()); in unifyReturnBlockSet() 227 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() 301 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction()
|
D | AMDGPURewriteOutArguments.cpp | 391 Value *NewRetVal = UndefValue::get(NewRetTy); in runOnFunction() 411 Val = B.CreateShuffleVector(Val, UndefValue::get(Val->getType()), in runOnFunction() 419 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0); in runOnFunction() 438 StubCallArgs.push_back(UndefValue::get(Arg.getType())); in runOnFunction()
|
D | SIAnnotateControlFlow.cpp | 66 UndefValue *BoolUndef; 149 BoolUndef = UndefValue::get(Boolean); in initialize() 316 if (!isa<UndefValue>(Exec) && !isa<UnreachableInst>(FirstInsertionPt)) in closeControlFlow()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Value.def | 74 HANDLE_CONSTANT(UndefValue) 92 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 395 ReplVal = UndefValue::get(LI->getType()); in rewriteSingleStoreAlloca() 483 LI->replaceAllUsesWith(UndefValue::get(LI->getType())); in promoteSingleBlockAlloca() 500 ReplVal = UndefValue::get(LI->getType()); in promoteSingleBlockAlloca() 639 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run() 666 A->replaceAllUsesWith(UndefValue::get(A->getType())); in run() 759 Value *UndefVal = UndefValue::get(SomePHI->getType()); in run()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 160 Value *LPadVal = UndefValue::get(LPadType); in substituteLPadValues() 248 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local 250 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", &*AfterAllocaInsPt); in lowerIncomingArguments()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | RandomIRBuilder.cpp | 127 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink() 149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType())); in findPointer()
|