| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 133 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction() 134 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction() 217 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction() 280 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction() 281 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction() 298 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction() 299 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction() 308 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction() 310 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction() 316 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction() [all …]
|
| H A D | Constants.cpp | 319 return CmpEq && (isa<PoisonValue>(CmpEq) || match(CmpEq, m_One())); in isElementWiseEqual() 351 this, [&](const auto *C) { return isa<PoisonValue>(C); }); in containsPoisonElement() 356 return isa<UndefValue>(C) && !isa<PoisonValue>(C); in containsUndefElement() 465 if (const auto *PV = dyn_cast<PoisonValue>(this)) in getAggregateElement() 577 delete static_cast<PoisonValue *>(C); in deleteConstant() 1204 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement() 1206 return PoisonValue::get(ATy->getElementType()); in getSequentialElement() 1207 return PoisonValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement() 1210 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement() 1211 return PoisonValue::get(getType()->getStructElementType(Elt)); in getStructElement() [all …]
|
| H A D | ReplaceConstant.cpp | 33 Value *V = PoisonValue::get(C->getType()); in expandUser() 40 Value *V = PoisonValue::get(C->getType()); in expandUser()
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Constant.cpp | 259 PoisonValue *PoisonValue::get(Type *T) { in get() 260 auto *LLVMC = llvm::PoisonValue::get(T->LLVMTy); in get() 261 return cast<PoisonValue>(T->getContext().getOrCreateConstant(LLVMC)); in get() 264 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement() 265 return cast<PoisonValue>(Ctx.getOrCreateConstant( in getSequentialElement() 266 cast<llvm::PoisonValue>(Val)->getSequentialElement())); in getSequentialElement() 269 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement() 270 return cast<PoisonValue>(Ctx.getOrCreateConstant( in getStructElement() 271 cast<llvm::PoisonValue>(Val)->getStructElement(Elt))); in getStructElement() 274 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 644 if (isa<PoisonValue>(Src)) in instCombineIntrinsic() 706 if (isa<PoisonValue>(Src)) in instCombineIntrinsic() 733 if (isa<PoisonValue>(Src)) in instCombineIntrinsic() 794 if (isa<PoisonValue>(Src)) in instCombineIntrinsic() 795 return IC.replaceInstUsesWith(II, PoisonValue::get(II.getType())); in instCombineIntrinsic() 818 if (isa<PoisonValue>(Src0) || isa<PoisonValue>(Src1)) in instCombineIntrinsic() 819 return IC.replaceInstUsesWith(II, PoisonValue::get(II.getType())); in instCombineIntrinsic() 837 if (isa<PoisonValue>(Arg)) in instCombineIntrinsic() 838 return PoisonValue::get(HalfTy); in instCombineIntrinsic() 861 Value *V = PoisonValue::get(II.getType()); in instCombineIntrinsic() [all …]
|
| H A D | AMDGPULowerBufferFatPointers.cpp | 479 Value *Ret = PoisonValue::get(To); in fatPtrsToInts() 513 Value *Ret = PoisonValue::get(To); in intsToFatPtrs() 752 Value *VectorRes = PoisonValue::get(TargetType); in arrayToVector() 766 Value *ArrayRes = PoisonValue::get(OrigType); in vectorToArray() 1012 LoadsRes = PoisonValue::get(LegalType); in visitLoadImpl() 1064 Value *Result = PoisonValue::get(OrigType); in visitLoadInst() 1225 if (isa<PoisonValue>(C)) { in materializeBufferFatPtrConst() 1227 {PoisonValue::get(NewTy->getElementType(0)), in materializeBufferFatPtrConst() 1228 PoisonValue::get(NewTy->getElementType(1))}); in materializeBufferFatPtrConst() 1617 Dbg->replaceVariableLocationOp(I, PoisonValue::get(I->getType())); in killAndReplaceSplitInstructions() [all …]
|
| H A D | AMDGPUUnifyDivergentExitNodes.cpp | 231 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run() 293 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run()
|
| H A D | AMDGPURewriteOutArguments.cpp | 338 Value *NewRetVal = PoisonValue::get(NewRetTy); in runOnFunction() 360 StubCallArgs.push_back(PoisonValue::get(Arg.getType())); in runOnFunction()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | RISCV.cpp | 43 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVVLEFFBuiltin() 48 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVVLEFFBuiltin() 129 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoUnaryBuiltin() 132 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoUnaryBuiltin() 159 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoVNotBuiltin() 162 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoVNotBuiltin() 203 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoVFUnaryBuiltin() 210 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoVFUnaryBuiltin() 230 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoVWCVTBuiltin() 233 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); in emitRVVPseudoVWCVTBuiltin() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 164 Args.push_back(PoisonValue::get(*PI)); in createWrapper() 178 ReturnInst::Create(M->getContext(), PoisonValue::get(RtnType), BB); in createWrapper() 258 Value *Args[] = {PoisonValue::get(MainArgTys[0]), in runOnModule() 259 PoisonValue::get(MainArgTys[1])}; in runOnModule()
|
| H A D | WebAssemblyLowerRefTypesIntPtrConv.cpp | 71 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in runOnFunction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Constant.h | 832 From->getSubclassID() == ClassID::PoisonValue; in classof() 848 class PoisonValue final : public UndefValue { 849 PoisonValue(llvm::PoisonValue *C, Context &Ctx) in PoisonValue() function 850 : UndefValue(ClassID::PoisonValue, C, Ctx) {} in PoisonValue() 855 LLVM_ABI static PoisonValue *get(Type *T); 859 LLVM_ABI PoisonValue *getSequentialElement() const; 863 LLVM_ABI PoisonValue *getStructElement(unsigned Elt) const; 867 LLVM_ABI PoisonValue *getElementValue(Constant *C) const; 870 LLVM_ABI PoisonValue *getElementValue(unsigned Idx) const; 874 return From->getSubclassID() == ClassID::PoisonValue; in classof() [all …]
|
| H A D | Values.def | 39 DEF_CONST(PoisonValue, PoisonValue)
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 445 Idx = PoisonValue::get(Ty); in visitExtractElementInst() 567 return replaceInstUsesWith(EI, PoisonValue::get(EI.getType())); in visitExtractElementInst() 666 if (isa<PoisonValue>(ScalarOp)) { // inserting poison into vector. in collectSingleShuffleElements() 802 PermittedRHS ? PoisonValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements() 1194 Value *V = PoisonValue::get(AggTy); in foldAggregateConstructionIntoAggregateReuse() 1348 PoisonValue *PoisonVec = PoisonValue::get(VecTy); in foldInsSequenceIntoSplat() 1572 Values[I] = PoisonValue::get(InsElt.getType()->getElementType()); in foldConstantInsEltIntoShuffle() 1722 Constant *NewUndef = isa<PoisonValue>(VecOp) ? PoisonValue::get(VecTy) in visitInsertElementInst() 1794 LR.second = PoisonValue::get(LR.first->getType()); in visitInsertElementInst() 2010 if (isa<PoisonValue>(V)) in evaluateInDifferentElementOrder() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1466 class PoisonValue final : public UndefValue { 1469 explicit PoisonValue(Type *T) : UndefValue(T, PoisonValueVal) {} 1474 PoisonValue(const PoisonValue &) = delete; 1477 LLVM_ABI static PoisonValue *get(Type *T); 1481 LLVM_ABI PoisonValue *getSequentialElement() const; 1485 LLVM_ABI PoisonValue *getStructElement(unsigned Elt) const; 1489 LLVM_ABI PoisonValue *getElementValue(Constant *C) const; 1492 LLVM_ABI PoisonValue *getElementValue(unsigned Idx) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 283 {PoisonValue::get(VecTupTy), LI->getPointerOperand(), VL, in lowerDeinterleaveIntrinsicToLoad() 287 Return = PoisonValue::get(StructType::get(LI->getContext(), AggrTypes)); in lowerDeinterleaveIntrinsicToLoad() 358 Value *StoredVal = PoisonValue::get(VecTupTy); in lowerInterleaveIntrinsicToStore() 469 Value *PoisonVal = PoisonValue::get(VecTupTy); in lowerInterleavedVPLoad() 487 Return = PoisonValue::get(StructType::get(Load->getContext(), AggrTypes)); in lowerInterleavedVPLoad() 582 Value *StoredVal = PoisonValue::get(VecTupTy); in lowerInterleavedVPStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 598 if (isa<PoisonValue>(Op1)) in simplifyAddInst() 751 if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1)) in simplifySubInst() 752 return PoisonValue::get(Op0->getType()); in simplifySubInst() 901 if (isa<PoisonValue>(Op1)) in simplifyMulInst() 1052 if (Q.isUndefValue(Op1) || isa<PoisonValue>(Op1)) in simplifyDivRem() 1053 return PoisonValue::get(Ty); in simplifyDivRem() 1059 return PoisonValue::get(Ty); in simplifyDivRem() 1063 if (isa<PoisonValue>(Op0)) in simplifyDivRem() 1088 return PoisonValue::get(Ty); in simplifyDivRem() 1153 return PoisonValue::get(Op0->getType()); in simplifyDiv() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 67 Constant *V = PoisonValue::get(T); in SourcePred() 160 PoisonValue::get(PointerType::getUnqual(T->getContext()))); in anyPtrType() 181 PoisonValue::get(PointerType::getUnqual(T->getContext()))); in sizedPtrType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVRegularizer.cpp | 122 (Repl ? Repl : PoisonValue::get(Vec->getType())), V, in runLowerConstExpr() 231 PoisonValue *PVal = PoisonValue::get(Arg0Ty); in visitCallScalToVec()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SjLjEHPrepare.cpp | 182 Value *LPadVal = PoisonValue::get(LPadType); in substituteLPadValues() 271 Value *PoisonValue = PoisonValue::get(Ty); in lowerIncomingArguments() local 273 TrueValue, &AI, PoisonValue, AI.getName() + ".tmp", AfterAllocaInsPt); in lowerIncomingArguments()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 299 Arg.replaceAllUsesWith(PoisonValue::get(Arg.getType())); in removeDeadArgumentsFromCallers() 319 CB->setArgOperand(ArgNo, PoisonValue::get(Arg->getType())); in removeDeadArgumentsFromCallers() 972 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in removeDeadStuffFromFunction() 989 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction() 1036 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in removeDeadStuffFromFunction() 1056 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction()
|
| H A D | FatLTOCleanup.cpp | 92 Value *Replacement = PoisonValue::get(I->getType()); in cleanUpTypeCheckedLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopDeletion.cpp | 278 if (isa<PoisonValue>(Incoming)) in canProveExitOnFirstIteration() 288 return OnlyInput ? OnlyInput : PoisonValue::get(PN.getType()); in canProveExitOnFirstIteration() 470 llvm::fill(P.incoming_values(), PoisonValue::get(P.getType())); in deleteLoopIfDead()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SSAUpdater.cpp | 140 return PoisonValue::get(ProtoType); in GetValueInMiddleOfBlock() 312 return PoisonValue::get(Updater->ProtoType); in GetPoisonVal() 499 if (NewVal == ALoad) NewVal = PoisonValue::get(NewVal->getType()); in run()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | riscv_andes_vector.td | 40 Operands.push_back(llvm::PoisonValue::get(ResultType)); 128 Operands.push_back(llvm::PoisonValue::get(ResultType));
|