| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 192 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction() 193 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction() 353 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction() 371 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction() 381 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction() 383 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction() 389 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction() 695 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction() 1226 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction() 1551 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr() [all …]
|
| H A D | ReplaceConstant.cpp | 31 Value *V = PoisonValue::get(C->getType()); in expandUser() 38 Value *V = PoisonValue::get(C->getType()); in expandUser()
|
| H A D | Constants.cpp | 1126 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement() 1132 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement() 1136 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue() 1142 PoisonValue *PoisonValue::getElementValue(unsigned Idx) const { in getElementValue() 1257 return PoisonValue::get(Ty); in getImpl() 1311 isPoison = isa<PoisonValue>(V[0]); in get() 1318 if (!isa<PoisonValue>(C)) in get() 1328 return PoisonValue::get(ST); in get() 1371 return PoisonValue::get(T); in getImpl() 1743 PoisonValue *PoisonValue::get(Type *Ty) { in get() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1384 class PoisonValue final : public UndefValue { 1387 explicit PoisonValue(Type *T) : UndefValue(T, PoisonValueVal) {} 1392 PoisonValue(const PoisonValue &) = delete; 1395 static PoisonValue *get(Type *T); 1399 PoisonValue *getSequentialElement() const; 1403 PoisonValue *getStructElement(unsigned Elt) const; 1407 PoisonValue *getElementValue(Constant *C) const; 1410 PoisonValue *getElementValue(unsigned Idx) const;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 640 if (isa<PoisonValue>(Op1)) in simplifyAddInst() 793 if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1)) in simplifySubInst() 935 if (isa<PoisonValue>(Op1)) in simplifyMulInst() 1111 if (isa<PoisonValue>(Op0)) in simplifyDivRem() 1337 if (isa<PoisonValue>(Op0)) in simplifyShift() 2067 if (isa<PoisonValue>(Op1)) in simplifyAndInst() 2344 if (isa<PoisonValue>(Op1)) in simplifyOrInst() 2528 if (isa<PoisonValue>(Op1)) in simplifyXorInst() 4086 if (isa<PoisonValue>(LHS) || isa<PoisonValue>(RHS)) in simplifyFCmpInst() 6155 if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1)) in simplifyLdexp() [all …]
|
| H A D | ConstantFolding.cpp | 594 return PoisonValue::get(IntType); in FoldReinterpretLoadFromConst() 709 return PoisonValue::get(Ty); in ConstantFoldLoadFromConst() 758 if (isa<PoisonValue>(C)) in ConstantFoldLoadFromUniformValue() 759 return PoisonValue::get(Ty); in ConstantFoldLoadFromUniformValue() 2010 return PoisonValue::get(Ty); in ConstantFoldScalarCall1() 2738 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall2() 2809 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall2() 2824 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall2() 3087 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldScalarCall3() 3088 return PoisonValue::get(Ty); in ConstantFoldScalarCall3() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVRegularizer.cpp | 129 (Repl ? Repl : PoisonValue::get(Vec->getType())), V, in runLowerConstExpr() 236 PoisonValue *PVal = PoisonValue::get(Arg0Ty); in visitCallScalToVec()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CallGraphUpdater.cpp | 39 DeadFn->replaceAllUsesWith(PoisonValue::get(DeadFn->getType())); in finalize() 54 DeadFn->replaceAllUsesWith(PoisonValue::get(DeadFn->getType())); in finalize()
|
| H A D | PromoteMemoryToRegister.cpp | 558 ReplVal = PoisonValue::get(LI->getType()); in rewriteSingleStoreAlloca() 674 ReplVal = PoisonValue::get(LI->getType()); in promoteSingleBlockAlloca() 862 A->replaceAllUsesWith(PoisonValue::get(A->getType())); in run() 962 Value *PoisonVal = PoisonValue::get(SomePHI->getType()); in run()
|
| H A D | LowerAtomic.cpp | 33 Res = Builder.CreateInsertValue(PoisonValue::get(CXI->getType()), Orig, 0); in lowerAtomicCmpXchgInst()
|
| H A D | UnifyLoopExits.cpp | 130 NewPhi->addIncoming(PoisonValue::get(Def->getType()), In); in INITIALIZE_PASS_DEPENDENCY()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | riscv_vector.td | 64 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); 69 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType)); 890 llvm::Value *ReturnTuple = llvm::PoisonValue::get(ResultType); 1390 Operands.push_back(llvm::PoisonValue::get(ResultType)); 1439 Operands.push_back(llvm::PoisonValue::get(ResultType)); 1498 Operands.push_back(llvm::PoisonValue::get(ResultType)); 1575 Operands.push_back(llvm::PoisonValue::get(ResultType)); 1762 Operands.push_back(llvm::PoisonValue::get(ResultType)); 1903 Operands.push_back(llvm::PoisonValue::get(ResultType)); 2065 Operands.push_back(llvm::PoisonValue::get(ResultType)); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 444 Idx = PoisonValue::get(Ty); in visitExtractElementInst() 647 if (isa<PoisonValue>(ScalarOp)) { // inserting poison into vector. in collectSingleShuffleElements() 1263 PoisonValue *PoisonVec = PoisonValue::get(VecTy); in foldInsSequenceIntoSplat() 1636 Constant *NewUndef = isa<PoisonValue>(VecOp) ? PoisonValue::get(VecTy) in visitInsertElementInst() 1708 LR.second = PoisonValue::get(LR.first->getType()); in visitInsertElementInst() 1924 if (isa<PoisonValue>(V)) in evaluateInDifferentElementOrder() 1925 return PoisonValue::get(FixedVectorType::get(EltTy, Mask.size())); in evaluateInDifferentElementOrder() 2207 PoisonValue *PoisonVec = PoisonValue::get(Shuf.getType()); in canonicalizeInsertSplat() 2781 return replaceOperand(SVI, 1, PoisonValue::get(RHS->getType())); in visitShuffleVectorInst() 3102 if (eltMask >= (int)LHSOp0Width && isa<PoisonValue>(LHSOp1)) in visitShuffleVectorInst() [all …]
|
| H A D | InstCombineLoadStoreAlloca.cpp | 714 PoisonValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 734 Value *V = PoisonValue::get(T); in unpackLoadToAggregate() 761 PoisonValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 779 Value *V = PoisonValue::get(T); in unpackLoadToAggregate() 1054 return replaceInstUsesWith(LI, PoisonValue::get(LI.getType())); in visitLoadInst() 1456 if (!isa<PoisonValue>(Val)) in visitStoreInst() 1457 return replaceOperand(SI, 0, PoisonValue::get(Val->getType())); in visitStoreInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 304 Arg.replaceAllUsesWith(PoisonValue::get(Arg.getType())); in removeDeadArgumentsFromCallers() 326 CB->setArgOperand(ArgNo, PoisonValue::get(Arg->getType())); in removeDeadArgumentsFromCallers() 968 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in removeDeadStuffFromFunction() 985 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction() 1033 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in removeDeadStuffFromFunction() 1053 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction()
|
| H A D | GlobalSplit.cpp | 137 GV.replaceAllUsesWith(PoisonValue::get(GV.getType())); in splitGlobal()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUUnifyDivergentExitNodes.cpp | 232 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run() 294 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run()
|
| H A D | AMDGPURewriteOutArguments.cpp | 345 Value *NewRetVal = PoisonValue::get(NewRetTy); in runOnFunction() 367 StubCallArgs.push_back(PoisonValue::get(Arg.getType())); in runOnFunction()
|
| H A D | AMDGPUInstCombineIntrinsic.cpp | 537 if (isa<PoisonValue>(Src)) in instCombineIntrinsic() 619 if (isa<PoisonValue>(Src0) || isa<PoisonValue>(Src1)) in instCombineIntrinsic() 620 return IC.replaceInstUsesWith(II, PoisonValue::get(II.getType())); in instCombineIntrinsic() 1302 return PoisonValue::get(IIVTy); in simplifyAMDGCNMemoryIntrinsicDemanded() 1340 return IC.Builder.CreateInsertElement(PoisonValue::get(IIVTy), NewCall, in simplifyAMDGCNMemoryIntrinsicDemanded()
|
| H A D | AMDGPULowerModuleLDSPass.cpp | 495 Elements.push_back(PoisonValue::get(I32)); in getAddressesOfVariablesInKernel() 519 Constant *Missing = PoisonValue::get(KernelOffsetsType); in buildLookupTable() 1108 newDynamicLDS.push_back(PoisonValue::get(I32)); in lowerDynamicLDSVariables() 1422 PoisonValue::get(ATy), "", nullptr, GlobalValue::NotThreadLocal, in createLDSVariableReplacement() 1445 M, LDSTy, false, GlobalValue::InternalLinkage, PoisonValue::get(LDSTy), in createLDSVariableReplacement()
|
| H A D | AMDGPUAtomicOptimizer.cpp | 586 OldValuePhi->addIncoming(PoisonValue::get(Ty), EntryBB); in buildScanIteratively() 914 PHI->addIncoming(PoisonValue::get(Ty), Predecessor); in optimizeAtomic() 930 PoisonValue::get(VecTy), ReadFirstLaneLo, B.getInt32(0)); in optimizeAtomic() 995 PHI->addIncoming(PoisonValue::get(Ty), PixelEntryBB); in optimizeAtomic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | OpDescriptor.cpp | 46 Cs.push_back(PoisonValue::get(T)); in makeConstantsWithType()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedAccessPass.cpp | 392 new ShuffleVectorInst(BI->getOperand(0), PoisonValue::get(BIOp0Ty), in replaceBinOpShuffles() 395 BI->getOperand(1), PoisonValue::get(BI->getOperand(1)->getType()), Mask, in replaceBinOpShuffles()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 241 Value *Res = PoisonValue::get(VS.VecTy); in concatenate() 383 Builder.CreateShuffleVector(V, PoisonValue::get(V->getType()), Mask, in operator []() 457 PoisonValue::get(V->getType()), VS); in scatter() 1040 Value *Res = PoisonValue::get(VS->VecTy->getElementType()); in visitExtractElementInst() 1068 Res[I] = PoisonValue::get(VS->VecTy->getElementType()); in visitShuffleVectorInst()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGHLSLRuntime.cpp | 325 Value *Result = PoisonValue::get(Ty); in buildVectorInput() 381 Args.emplace_back(PoisonValue::get(Param.getType())); in emitEntryFunction()
|