| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 352 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction() 353 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction() 539 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction() 557 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction() 567 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction() 569 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction() 575 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction() 890 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction() 1598 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction() 2040 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr() [all …]
|
| H A D | Constants.cpp | 1132 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement() 1138 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement() 1142 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue() 1148 PoisonValue *PoisonValue::getElementValue(unsigned Idx) const { in getElementValue() 1263 return PoisonValue::get(Ty); in getImpl() 1317 isPoison = isa<PoisonValue>(V[0]); in get() 1324 if (!isa<PoisonValue>(C)) in get() 1334 return PoisonValue::get(ST); in get() 1377 return PoisonValue::get(T); in getImpl() 1729 PoisonValue *PoisonValue::get(Type *Ty) { in get() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1412 class PoisonValue final : public UndefValue { 1415 explicit PoisonValue(Type *T) : UndefValue(T, PoisonValueVal) {} 1420 PoisonValue(const PoisonValue &) = delete; 1423 static PoisonValue *get(Type *T); 1427 PoisonValue *getSequentialElement() const; 1431 PoisonValue *getStructElement(unsigned Elt) const; 1435 PoisonValue *getElementValue(Constant *C) const; 1438 PoisonValue *getElementValue(unsigned Idx) const;
|
| H A D | Value.def | 92 HANDLE_CONSTANT(PoisonValue)
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | Utils.cpp | 19 return T->isVoidTy() ? PoisonValue::get(T) : Constant::getNullValue(T); in getDefaultValue()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantsTest.cpp | 31 Constant *Poison = PoisonValue::get(Int1); in TEST() 231 Constant *Poison16 = PoisonValue::get(Int16Ty); in TEST() 233 Constant *PoisonV16 = PoisonValue::get(P6->getType()); in TEST() 618 Constant *CP = PoisonValue::get(Int32Ty); in TEST() 710 Constant *CP = PoisonValue::get(Int32Ty); in TEST() 718 EXPECT_EQ(CPP, PoisonValue::get(CPP->getType())); in TEST() 729 EXPECT_EQ(CPP, PoisonValue::get(CPP->getType())); in TEST() 740 EXPECT_EQ(CPP, PoisonValue::get(CPP->getType())); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 297 Arg.replaceAllUsesWith(PoisonValue::get(Arg.getType())); in removeDeadArgumentsFromCallers() 319 CB->setArgOperand(ArgNo, PoisonValue::get(Arg->getType())); in removeDeadArgumentsFromCallers() 952 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in removeDeadStuffFromFunction() 969 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction() 1017 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in removeDeadStuffFromFunction() 1037 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction()
|
| H A D | GlobalSplit.cpp | 139 GV.replaceAllUsesWith(PoisonValue::get(GV.getType())); in splitGlobal()
|
| H A D | PruneEH.cpp | 246 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in DeleteBasicBlock()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 636 if (isa<PoisonValue>(Op1)) in simplifyAddInst() 753 if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1)) in simplifySubInst() 891 if (isa<PoisonValue>(Op1)) in simplifyMulInst() 982 if (isa<PoisonValue>(Op0)) in simplifyDivRem() 1282 if (isa<PoisonValue>(Op0)) in simplifyShift() 2050 if (isa<PoisonValue>(Op1)) in simplifyAndInst() 2329 if (isa<PoisonValue>(Op1)) in simplifyOrInst() 2486 if (isa<PoisonValue>(Op1)) in simplifyXorInst() 3603 if (isa<PoisonValue>(RHS)) in simplifyICmpInst() 3920 if (isa<PoisonValue>(LHS) || isa<PoisonValue>(RHS)) in simplifyFCmpInst() [all …]
|
| H A D | ConstantFolding.cpp | 761 if (isa<PoisonValue>(C)) in ConstantFoldLoadFromUniformValue() 762 return PoisonValue::get(Ty); in ConstantFoldLoadFromUniformValue() 2625 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall2() 2626 return PoisonValue::get(Ty); in ConstantFoldScalarCall2() 2696 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall2() 2697 return PoisonValue::get(Ty); in ConstantFoldScalarCall2() 2711 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall2() 2712 return PoisonValue::get(Ty); in ConstantFoldScalarCall2() 2728 return PoisonValue::get(Ty); in ConstantFoldScalarCall2() 2971 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall3() [all …]
|
| H A D | MemoryBuiltins.cpp | 1065 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in compute() 1212 OffsetPHI->replaceAllUsesWith(PoisonValue::get(IntTy)); in visitPHINode() 1215 SizePHI->replaceAllUsesWith(PoisonValue::get(IntTy)); in visitPHINode()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | InterleavedAccessPass.cpp | 407 new ShuffleVectorInst(BI->getOperand(0), PoisonValue::get(BIOp0Ty), in replaceBinOpShuffles() 410 BI->getOperand(1), PoisonValue::get(BI->getOperand(1)->getType()), Mask, in replaceBinOpShuffles()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LowerAtomic.cpp | 34 Res = Builder.CreateInsertValue(PoisonValue::get(CXI->getType()), Orig, 0); in lowerAtomicCmpXchgInst()
|
| H A D | PromoteMemoryToRegister.cpp | 402 ReplVal = PoisonValue::get(LI->getType()); in rewriteSingleStoreAlloca() 515 ReplVal = PoisonValue::get(LI->getType()); in promoteSingleBlockAlloca() 677 A->replaceAllUsesWith(PoisonValue::get(A->getType())); in run()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 976 StoreInst *SI = new StoreInst(PoisonValue::get(LI.getType()), in visitLoadInst() 979 return replaceInstUsesWith(LI, PoisonValue::get(LI.getType())); in visitLoadInst() 1323 IC.replaceInstUsesWith(*LI, PoisonValue::get(LI->getType())); in removeBitcastsFromLoadStoreOnMinMax() 1432 if (!isa<PoisonValue>(Val)) in visitStoreInst() 1433 return replaceOperand(SI, 0, PoisonValue::get(Val->getType())); in visitStoreInst()
|
| H A D | InstCombinePHI.cpp | 1165 return replaceInstUsesWith(FirstPhi, PoisonValue::get(FirstPhi.getType())); in SliceUpIllegalIntegerPHI() 1265 Value *Poison = PoisonValue::get(FirstPhi.getType()); in SliceUpIllegalIntegerPHI() 1423 return replaceInstUsesWith(PN, PoisonValue::get(PN.getType())); in visitPHINode() 1435 return replaceInstUsesWith(PN, PoisonValue::get(PN.getType())); in visitPHINode()
|
| H A D | InstCombineSimplifyDemanded.cpp | 1193 return PoisonValue::get(V->getType()); in SimplifyDemandedVectorElts() 1205 Constant *Poison = PoisonValue::get(EltTy); in SimplifyDemandedVectorElts() 1361 I->setOperand(1, PoisonValue::get(I->getOperand(1)->getType())); in SimplifyDemandedVectorElts()
|
| H A D | InstCombineInternal.h | 415 V = PoisonValue::get(I.getType()); in replaceInstUsesWith() 443 PoisonValue::get(Type::getInt1PtrTy(Ctx)), in CreateNonTerminatorUnreachable()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | NewGVN.cpp | 1335 return PoisonValue::get(V->getType()); in lookupOperandLeader() 1530 return createConstantExpression(PoisonValue::get(LI->getType())); in performSymbolicLoadEvaluation() 1540 return createConstantExpression(PoisonValue::get(LI->getType())); in performSymbolicLoadEvaluation() 1731 if (isa<PoisonValue>(Arg)) { in performSymbolicPHIEvaluation() 1755 return createConstantExpression(PoisonValue::get(I->getType())); in performSymbolicPHIEvaluation() 2811 FoundVal = PoisonValue::get(I->getType()); in makePossiblePHIOfOps() 3489 ToErase->replaceAllUsesWith(PoisonValue::get(ToErase->getType())); in runGVN() 3707 Inst.replaceAllUsesWith(PoisonValue::get(Inst.getType())); in deleteInstructionsInBlock() 3717 new StoreInst(PoisonValue::get(Int8Ty), in deleteInstructionsInBlock() 3858 Operand.set(PoisonValue::get(PHI->getType())); in eliminateInstructions() [all …]
|
| H A D | Scalarizer.cpp | 403 PoisonValue::get(V->getType()), PtrElemTy); in scatter() 784 Value *V = PoisonValue::get(MidTy); in visitBitCastInst() 983 Value *Res = PoisonValue::get(Op->getType()); in finish()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | ValueTrackingTest.cpp | 1013 …EXPECT_EQ(isGuaranteedNotToBeUndefOrPoison(PoisonValue::get(IntegerType::get(Context, 8))), false); in TEST_F() 1015 EXPECT_EQ(isGuaranteedNotToBePoison(PoisonValue::get(IntegerType::get(Context, 8))), false); in TEST_F() 1019 Constant *CP = PoisonValue::get(Int32Ty); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXGenericToNVVM.cpp | 214 Value *NewValue = PoisonValue::get(C->getType()); in remapConstantVectorOrConstantAggregate()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | ConstantInitBuilder.cpp | 117 dummy->replaceAllUsesWith(llvm::PoisonValue::get(dummy->getType())); in abandon()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 428 V = PoisonValue::get(I.getType()); in replaceInstUsesWith()
|