Home
last modified time | relevance | path

Searched refs:PoisonValue (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp354 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction()
355 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
547 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
565 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
575 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
577 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
583 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
886 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction()
1717 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction()
2206 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr()
[all …]
H A DConstants.cpp1155 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement()
1161 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement()
1165 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue()
1171 PoisonValue *PoisonValue::getElementValue(unsigned Idx) const { in getElementValue()
1285 return PoisonValue::get(Ty); in getImpl()
1339 isPoison = isa<PoisonValue>(V[0]); in get()
1346 if (!isa<PoisonValue>(V[i])) in get()
1356 return PoisonValue::get(ST); in get()
1399 return PoisonValue::get(T); in getImpl()
1805 PoisonValue *PoisonValue::get(Type *Ty) { in get()
[all …]
H A DIRBuilder.cpp1110 Value *Poison = PoisonValue::get(VectorType::get(V->getType(), EC)); in CreateVectorSplat()
H A DLLVMContextImpl.h1410 DenseMap<Type *, std::unique_ptr<PoisonValue>> PVConstants;
H A DCore.cpp1074 return wrap(PoisonValue::get(unwrap(Ty))); in LLVMGetPoison()
1092 return isa<PoisonValue>(unwrap(Val)); in LLVMIsPoison()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1400 class PoisonValue final : public UndefValue {
1403 explicit PoisonValue(Type *T) : UndefValue(T, PoisonValueVal) {}
1408 PoisonValue(const PoisonValue &) = delete;
1411 static PoisonValue *get(Type *T);
1415 PoisonValue *getSequentialElement() const;
1419 PoisonValue *getStructElement(unsigned Elt) const;
1423 PoisonValue *getElementValue(Constant *C) const;
1426 PoisonValue *getElementValue(unsigned Idx) const;
H A DValue.def91 HANDLE_CONSTANT(PoisonValue)
H A DPatternMatch.h139 inline class_match<PoisonValue> m_Poison() { return class_match<PoisonValue>(); } in m_Poison()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp744 if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1)) in SimplifySubInst()
883 if (isa<PoisonValue>(Op1)) in SimplifyMulInst()
951 return PoisonValue::get(Ty); in simplifyDivRem()
957 return PoisonValue::get(Ty); in simplifyDivRem()
974 if (isa<PoisonValue>(Op0)) in simplifyDivRem()
1264 if (isa<PoisonValue>(Op0)) in SimplifyShift()
2011 if (isa<PoisonValue>(Op1)) in SimplifyAndInst()
2183 if (isa<PoisonValue>(Op1)) in SimplifyOrInst()
3388 if (isa<PoisonValue>(RHS)) in SimplifyICmpInst()
3725 if (isa<PoisonValue>(LHS) || isa<PoisonValue>(RHS)) in SimplifyFCmpInst()
[all …]
H A DConstantFolding.cpp1763 if (isa<PoisonValue>(Op) || Op->containsPoisonElement()) in constantFoldVectorReduce()
1764 return PoisonValue::get(VT->getElementType()); in constantFoldVectorReduce()
2916 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall3()
2917 return PoisonValue::get(Ty); in ConstantFoldScalarCall3()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp406 new ShuffleVectorInst(BI->getOperand(0), PoisonValue::get(BIOp0Ty), in replaceBinOpShuffles()
409 BI->getOperand(1), PoisonValue::get(BI->getOperand(1)->getType()), Mask, in replaceBinOpShuffles()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp402 ReplVal = PoisonValue::get(LI->getType()); in rewriteSingleStoreAlloca()
511 ReplVal = PoisonValue::get(LI->getType()); in promoteSingleBlockAlloca()
675 A->replaceAllUsesWith(PoisonValue::get(A->getType())); in run()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp996 StoreInst *SI = new StoreInst(PoisonValue::get(LI.getType()), in visitLoadInst()
999 return replaceInstUsesWith(LI, PoisonValue::get(LI.getType())); in visitLoadInst()
1347 IC.replaceInstUsesWith(*LI, PoisonValue::get(LI->getType())); in removeBitcastsFromLoadStoreOnMinMax()
1454 if (!isa<PoisonValue>(Val)) in visitStoreInst()
1455 return replaceOperand(SI, 0, PoisonValue::get(Val->getType())); in visitStoreInst()
H A DInstCombinePHI.cpp1122 return replaceInstUsesWith(FirstPhi, PoisonValue::get(FirstPhi.getType())); in SliceUpIllegalIntegerPHI()
1222 Value *Poison = PoisonValue::get(FirstPhi.getType()); in SliceUpIllegalIntegerPHI()
1350 return replaceInstUsesWith(PN, PoisonValue::get(PN.getType())); in visitPHINode()
1362 return replaceInstUsesWith(PN, PoisonValue::get(PN.getType())); in visitPHINode()
H A DInstCombineSimplifyDemanded.cpp1102 return PoisonValue::get(V->getType()); in SimplifyDemandedVectorElts()
1114 Constant *Poison = PoisonValue::get(EltTy); in SimplifyDemandedVectorElts()
1265 I->setOperand(1, PoisonValue::get(I->getOperand(1)->getType())); in SimplifyDemandedVectorElts()
H A DInstCombineVectorOps.cpp655 new ShuffleVectorInst(ExtVecOp, PoisonValue::get(ExtVecType), ExtendMask); in replaceExtractElements()
1171 PoisonValue *PoisonVec = PoisonValue::get(VecTy); in foldInsSequenceIntoSplat()
1703 return ConstantExpr::getShuffleVector(C, PoisonValue::get(C->getType()), in evaluateInDifferentElementOrder()
H A DInstructionCombining.cpp2724 replaceInstUsesWith(*I, PoisonValue::get(I->getType())); in visitAllocSite()
2933 replaceInstUsesWith(*Prev, PoisonValue::get(Prev->getType())); in visitUnreachableInst()
3128 replaceInstUsesWith(*WO, PoisonValue::get(WO->getType())); in visitExtractValueInst()
H A DInstCombineCasts.cpp2562 replaceInstUsesWith(*LI, PoisonValue::get(LI->getType())); in optimizeBitCastFromPhi()
2697 return InsertElementInst::Create(PoisonValue::get(DestTy), Elem, in visitBitCast()
H A DInstCombineCalls.cpp2360 replaceInstUsesWith(*OldCall, PoisonValue::get(OldCall->getType())); in visitCallBase()
2381 replaceInstUsesWith(Call, PoisonValue::get(Call.getType())); in visitCallBase()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp741 Value *V = PoisonValue::get(MidTy); in visitBitCastInst()
940 Value *Res = PoisonValue::get(Op->getType()); in finish()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp245 if (isa<PoisonValue>(V)) in getWithType()
246 return PoisonValue::get(&Ty); in getWithType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp1268 PoisonValue::get(VecTy), VectorInit, LastIdx, "vector.recur.init"); in execute()
H A DLoopVectorize.cpp2764 Value *PoisonVec = PoisonValue::get(VecTy); in vectorizeInterleaveGroup()
3014 PoisonValue::get(DataTy), "wide.masked.load"); in vectorizeMemoryInstruction()
9708 Value *Poison = PoisonValue::get( in execute()
9789 Phi->addIncoming(PoisonValue::get(ScalarPredInst->getType()), in execute()
9916 Value *Undef = PoisonValue::get(VectorType::get(LastInst->getType(), VF)); in get()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1588 macro(PoisonValue) \
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp3871 Value *PoisonValue = IRB.getInt8(PoisonStack ? ClPoisonStackPattern : 0); in poisonAllocaUserspace() local
3872 IRB.CreateMemSet(ShadowBase, PoisonValue, Len, in poisonAllocaUserspace()

12