Home
last modified time | relevance | path

Searched refs:UndefValue (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp62 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 …]
DInstCombineLoadStoreAlloca.cpp67 } 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()
DInstCombineCalls.cpp414 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 …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp235 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 …]
DInstCombineCalls.cpp378 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 …]
DInstCombineLoadStoreAlloca.cpp211 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-7.0/llvm/unittests/Analysis/
DValueLatticeTest.cpp166 auto LV1 = ValueLatticeElement::get(UndefValue::get(I32Ty)); in TEST_F()
169 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV2))); in TEST_F()
170 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLE, I1Ty, LV2))); in TEST_F()
171 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_NE, I1Ty, LV2))); in TEST_F()
172 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2))); in TEST_F()
173 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGE, I1Ty, LV2))); in TEST_F()
174 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGT, I1Ty, LV2))); in TEST_F()
178 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OEQ, I1Ty, LV3))); in TEST_F()
179 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OGE, I1Ty, LV3))); in TEST_F()
180 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OLE, I1Ty, LV3))); in TEST_F()
[all …]
DPhiValuesTest.cpp36 BranchInst::Create(If, Else, UndefValue::get(I1Ty), Entry); in TEST()
40 Value *Val1 = new LoadInst(UndefValue::get(I32PtrTy), "val1", Entry); in TEST()
41 Value *Val2 = new LoadInst(UndefValue::get(I32PtrTy), "val2", Entry); in TEST()
42 Value *Val3 = new LoadInst(UndefValue::get(I32PtrTy), "val3", Entry); in TEST()
43 Value *Val4 = new LoadInst(UndefValue::get(I32PtrTy), "val4", Entry); in TEST()
105 BranchInst::Create(If1, Else1, UndefValue::get(I1Ty), Entry); in TEST()
108 BranchInst::Create(If2, Else2, UndefValue::get(I1Ty), Then); in TEST()
112 Value *Val1 = new LoadInst(UndefValue::get(I32PtrTy), "val1", Entry); in TEST()
113 Value *Val2 = new LoadInst(UndefValue::get(I32PtrTy), "val2", Entry); in TEST()
114 Value *Val3 = new LoadInst(UndefValue::get(I32PtrTy), "val3", Entry); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp261 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst()
296 if (isa<UndefValue>(V)) { in collectSingleShuffleElements()
297 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements()
324 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements()
329 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext())); in collectSingleShuffleElements()
389 ExtendMask.push_back(UndefValue::get(IntType)); in replaceExtractElements()
417 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), in replaceExtractElements()
458 if (isa<UndefValue>(V)) { in collectShuffleElements()
459 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectShuffleElements()
461 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements()
[all …]
DInstCombineCalls.cpp443 if (CElt && isa<UndefValue>(CElt)) { in simplifyX86varShift()
472 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift()
489 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift()
510 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack()
511 return UndefValue::get(ResTy); in simplifyX86pack()
537 if (COp && isa<UndefValue>(COp)) { in simplifyX86pack()
538 Vals.push_back(UndefValue::get(ResTy->getScalarType())); in simplifyX86pack()
684 if (isa<UndefValue>(Arg)) in simplifyX86movmsk()
701 if (isa<UndefValue>(COp)) in simplifyX86movmsk()
781 UndefValue::get(IntTy64)}; in simplifyX86extrq()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.cpp521 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
528 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
617 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
750 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
751 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
764 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
765 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
768 if (isa<UndefValue>(V1)) return V2; in ConstantFoldSelectInstruction()
769 if (isa<UndefValue>(V2)) return V1; in ConstantFoldSelectInstruction()
788 if (isa<UndefValue>(Val)) // ee(undef, x) -> undef in ConstantFoldExtractElementInstruction()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp509 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/
DConstantFold.cpp524 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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/
DOperationsTest.cpp187 SBOp.BuilderFunc({UndefValue::get(Type::getInt1Ty(Ctx))}, RI); in TEST()
294 EXPECT_TRUE(GEPOp.SourcePreds[0].matches({}, UndefValue::get(Int8PtrTy))); in TEST()
295 EXPECT_TRUE(GEPOp.SourcePreds[1].matches({UndefValue::get(Int8PtrTy)}, in TEST()
298 GEPOp.BuilderFunc({UndefValue::get(Int8PtrTy), ConstantInt::get(Int32Ty, 0)}, in TEST()
347 Constant *SVal = UndefValue::get(StructTy); in TEST()
348 Constant *OVal = UndefValue::get(OpaqueTy); in TEST()
349 Constant *AVal = UndefValue::get(ArrayTy); in TEST()
350 Constant *ZAVal = UndefValue::get(ZeroSizedArrayTy); in TEST()
351 Constant *VVal = UndefValue::get(VectorTy); in TEST()
390 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int8PtrTy))); in TEST()
[all …]
/external/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp66 } 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/
DIPConstantPropagation.cpp113 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-7.0/llvm/include/llvm/Analysis/
DValueLattice.h122 if (!isa<UndefValue>(C)) in get()
128 if (!isa<UndefValue>(C)) in getNot()
191 if (isa<UndefValue>(V)) in markConstant()
207 if (isa<UndefValue>(V)) in markNotConstant()
297 return UndefValue::get(Ty); in getCompare()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DIPConstantPropagation.cpp142 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DIPConstantPropagation.cpp113 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments()
151 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn()
153 RetVals.push_back(UndefValue::get(F.getReturnType())); in PropagateConstantReturn()
173 if (isa<UndefValue>(V)) in PropagateConstantReturn()
178 if (isa<UndefValue>(RV)) { in PropagateConstantReturn()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp129 Args.push_back(UndefValue::get(*PI)); in CreateWrapper()
140 ReturnInst::Create(M->getContext(), UndefValue::get(Ty->getReturnType()), in CreateWrapper()
177 UndefValue::get(MainArgTys[0]), in runOnModule()
178 UndefValue::get(MainArgTys[1]) in runOnModule()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp235 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-7.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp273 if (!isa<UndefValue>(GV->getInitializer())) in TrackValueOfGlobalVariable()
479 if (!isa<UndefValue>(V)) in getValueState()
520 else if (isa<UndefValue>(Elt)) in getStructValueState()
825 if (isa<UndefValue>(C)) in visitCastInst()
932 if (isa<UndefValue>(C)) in visitBinaryOperator()
1005 if (isa<UndefValue>(C)) in visitCmpInst()
1044 if (isa<UndefValue>(C)) in visitGetElementPtrInst()
1108 if (isa<UndefValue>(C)) in visitLoadInst()
1154 if (isa<UndefValue>(C)) in visitCallSite()
1533 if (isa<UndefValue>(BI->getCondition())) { in ResolvedUndefsIn()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp62 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
65 if (isa<UndefValue>(COp)) { in extractConstantMask()
82 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
87 if (isa<UndefValue>(COp)) { in extractConstantMask()
/external/swiftshader/third_party/LLVM/
DOnlyX86.patch136 - !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/
DSCCP.cpp234 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 …]

12345678910>>...17