Home
last modified time | relevance | path

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

12345678910

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueLatticeTest.cpp176 auto LV1 = ValueLatticeElement::get(UndefValue::get(I32Ty)); in TEST_F()
179 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV2))); in TEST_F()
180 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SLE, I1Ty, LV2))); in TEST_F()
181 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_NE, I1Ty, LV2))); in TEST_F()
182 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2))); in TEST_F()
183 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGE, I1Ty, LV2))); in TEST_F()
184 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGT, I1Ty, LV2))); in TEST_F()
188 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OEQ, I1Ty, LV3))); in TEST_F()
189 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OGE, I1Ty, LV3))); in TEST_F()
190 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::FCMP_OLE, I1Ty, LV3))); in TEST_F()
[all …]
H A DPhiValuesTest.cpp37 BranchInst::Create(If, Else, UndefValue::get(I1Ty), Entry); in TEST()
41 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry); in TEST()
42 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry); in TEST()
43 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry); in TEST()
44 Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry); in TEST()
107 BranchInst::Create(If1, Else1, UndefValue::get(I1Ty), Entry); in TEST()
110 BranchInst::Create(If2, Else2, UndefValue::get(I1Ty), Then); in TEST()
114 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry); in TEST()
115 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry); in TEST()
116 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp358 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
385 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
413 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
441 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic()
445 if (isa<UndefValue>(Src1)) { in instCombineIntrinsic()
488 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic()
541 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic()
554 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic()
564 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
913 if (isa<UndefValue>(VDstIn)) in instCombineIntrinsic()
[all …]
H A DAMDGPUInstrInfo.cpp37 if (!Ptr || isa<UndefValue>(Ptr) || in isUniformMMO()
/llvm-project-15.0.7/llvm/unittests/FuzzMutate/
H A DOperationsTest.cpp186 SBOp.BuilderFunc({UndefValue::get(Type::getInt1Ty(Ctx))}, RI); in TEST()
293 EXPECT_TRUE(GEPOp.SourcePreds[0].matches({}, UndefValue::get(Int8PtrTy))); in TEST()
294 EXPECT_TRUE(GEPOp.SourcePreds[1].matches({UndefValue::get(Int8PtrTy)}, in TEST()
346 Constant *SVal = UndefValue::get(StructTy); in TEST()
347 Constant *OVal = UndefValue::get(OpaqueTy); in TEST()
348 Constant *AVal = UndefValue::get(ArrayTy); in TEST()
349 Constant *ZAVal = UndefValue::get(ZeroSizedArrayTy); in TEST()
350 Constant *VVal = UndefValue::get(VectorTy); in TEST()
390 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int32Ty))); in TEST()
392 EXPECT_FALSE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)}, in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp355 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
620 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
677 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
898 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
902 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
911 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
916 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
947 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
988 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1601 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
[all …]
H A DConstants.cpp778 return UndefValue::get(Ty); in mergeUndefsWith()
1097 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement()
1103 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement()
1107 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue()
1113 UndefValue *UndefValue::getElementValue(unsigned Idx) const { in getElementValue()
1266 return UndefValue::get(Ty); in getImpl()
1379 return UndefValue::get(T); in getImpl()
1407 else if (isa<UndefValue>(V)) in getSplat()
1671 if (isa<UndefValue>(OpC)) in getSplatValue()
1675 if (isa<UndefValue>(Elt)) in getSplatValue()
[all …]
H A DIntrinsicInst.cpp732 if (isa<UndefValue>(Token)) in getStatepoint()
753 if (isa<UndefValue>(Statepoint)) in getBasePtr()
754 return UndefValue::get(Statepoint->getType()); in getBasePtr()
764 if (isa<UndefValue>(Statepoint)) in getDerivedPtr()
765 return UndefValue::get(Statepoint->getType()); in getDerivedPtr()
/llvm-project-15.0.7/llvm/unittests/Transforms/Vectorize/
H A DVPlanTest.cpp784 BinaryOperator::CreateAdd(UndefValue::get(Int32), UndefValue::get(Int32)); in TEST()
803 auto *Call = CallInst::Create(FTy, UndefValue::get(FTy)); in TEST()
828 UndefValue::get(Int1), UndefValue::get(Int32), UndefValue::get(Int32)); in TEST()
856 UndefValue::get(Int32)); in TEST()
961 auto *AI = BinaryOperator::CreateAdd(UndefValue::get(Int32), in TEST()
962 UndefValue::get(Int32)); in TEST()
978 UndefValue::get(Int1), UndefValue::get(Int32), UndefValue::get(Int32)); in TEST()
997 UndefValue::get(Int32)); in TEST()
1046 auto *Store = new StoreInst(UndefValue::get(Int32), in TEST()
1062 auto *Call = CallInst::Create(FTy, UndefValue::get(FTy)); in TEST()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DVectorBuilderTest.cpp68 Value *Op = UndefValue::get(ValueTy); \ in TEST_F()
118 Value *Op = UndefValue::get(ValueTy); \ in TEST_F()
164 Value *Op = UndefValue::get(ValueTy); \ in TEST_F()
199 Value *Op = UndefValue::get(ValueTy); \ in TEST_F()
226 Value *FloatVecPtr = UndefValue::get(FloatVecPtrTy); in TEST_F()
227 Value *FloatVec = UndefValue::get(FloatVecTy); in TEST_F()
H A DConstantsTest.cpp232 Constant *Undef64 = UndefValue::get(Int64Ty); in TEST()
617 Constant *CU = UndefValue::get(Int32Ty); in TEST()
655 Constant *CU = UndefValue::get(Int32Ty); in TEST()
671 Constant *CFU = UndefValue::get(FltTy); in TEST()
687 Constant *CPU = UndefValue::get(PtrTy); in TEST()
709 Constant *CU = UndefValue::get(Int32Ty); in TEST()
717 EXPECT_EQ(CUU, UndefValue::get(CUU->getType())); in TEST()
719 EXPECT_NE(CUP, UndefValue::get(CUP->getType())); in TEST()
720 EXPECT_NE(CPU, UndefValue::get(CPU->getType())); in TEST()
728 EXPECT_EQ(CUU, UndefValue::get(CUU->getType())); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp63 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
66 if (isa<UndefValue>(COp)) { in extractConstantMask()
83 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
88 if (isa<UndefValue>(COp)) { in extractConstantMask()
H A DX86InstCombineIntrinsic.cpp376 if (isa_and_nonnull<UndefValue>(CElt)) { in simplifyX86varShift()
444 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack()
445 return UndefValue::get(ResTy); in simplifyX86pack()
509 if (isa<UndefValue>(Arg)) in simplifyX86movmsk()
551 Value *Res = UndefValue::get(RetTy); in simplifyX86addcarry()
624 UndefValue::get(IntTy64)}; in simplifyX86extrq()
656 return UndefValue::get(II.getType()); in simplifyX86extrq()
733 return UndefValue::get(II.getType()); in simplifyX86insertq()
823 if (isa<UndefValue>(COp)) { in simplifyX86pshufb()
868 if (isa<UndefValue>(COp)) { in simplifyX86vpermilvar()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueLattice.h205 if (isa<UndefValue>(C)) in get()
213 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot()
305 if (isa<UndefValue>(V))
330 if (isa<UndefValue>(V)) in markNotConstant()
457 return UndefValue::get(Ty); in getCompare()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerRefTypesIntPtrConv.cpp69 UndefValue *U = UndefValue::get(I->getType()); in runOnFunction()
H A DWebAssemblyFixFunctionBitcasts.cpp163 Args.push_back(UndefValue::get(*PI)); in createWrapper()
177 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper()
257 Value *Args[] = {UndefValue::get(MainArgTys[0]), in runOnModule()
258 UndefValue::get(MainArgTys[1])}; in runOnModule()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h1364 class UndefValue : public ConstantData {
1367 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {}
1372 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {}
1375 UndefValue(const UndefValue &) = delete;
1378 static UndefValue *get(Type *T);
1382 UndefValue *getSequentialElement() const;
1386 UndefValue *getStructElement(unsigned Elt) const;
1390 UndefValue *getElementValue(Constant *C) const;
1393 UndefValue *getElementValue(unsigned Idx) const;
1412 class PoisonValue final : public UndefValue {
[all …]
H A DValue.def91 HANDLE_CONSTANT(UndefValue)
103 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp258 if (isa<UndefValue>(Op)) in visitInsertValueInst()
259 Args.push_back(UndefValue::get(IRB->getInt32Ty())); in visitInsertValueInst()
339 if (GV.hasInitializer() && !isa<UndefValue>(GV.getInitializer())) { in processGlobalValue()
347 if ((!GV.hasInitializer() || isa<UndefValue>(GV.getInitializer())) && in processGlobalValue()
368 if (isa<ConstantPointerNull>(Op) || isa<UndefValue>(Op) || in insertAssignTypeIntrs()
372 if (isa<UndefValue>(Op) && Op->getType()->isAggregateType()) in insertAssignTypeIntrs()
374 UndefValue::get(IRB->getInt32Ty())); in insertAssignTypeIntrs()
/llvm-project-15.0.7/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h65 Constant *V = UndefValue::get(T); in SourcePred()
136 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in anyPtrType()
157 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in sizedPtrType()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLint.cpp405 Check(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference()
494 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor()
499 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub()
527 if (isa<UndefValue>(V)) in isZero()
550 if (isa<UndefValue>(Elem)) in isZero()
646 return UndefValue::get(V->getType()); in findValueImpl()
H A DConstantFolding.cpp256 if (isa<UndefValue>(Element)) { in FoldBitCast()
594 return UndefValue::get(IntType); in FoldReinterpretLoadFromConst()
603 return UndefValue::get(IntType); in FoldReinterpretLoadFromConst()
709 return UndefValue::get(Ty); in ConstantFoldLoadFromConst()
763 if (isa<UndefValue>(C)) in ConstantFoldLoadFromUniformValue()
764 return UndefValue::get(Ty); in ConstantFoldLoadFromUniformValue()
1894 if (isa<UndefValue>(Op)) { in getConstIntOrUndef()
2629 return UndefValue::get(Ty); in ConstantFoldScalarCall2()
2873 return UndefValue::get(Ty); in ConstantFoldAMDGCNPermIntrinsic()
2899 return UndefValue::get(Ty); in ConstantFoldAMDGCNPermIntrinsic()
[all …]
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp130 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink()
155 return Pred.matches(Srcs, UndefValue::get(ElemTy)); in findPointer()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp39 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
54 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp167 Value *LPadVal = UndefValue::get(LPadType); in substituteLPadValues()
257 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local
259 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", &*AfterAllocaInsPt); in lowerIncomingArguments()

12345678910