Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp132 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction()
133 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
216 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
285 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
286 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction()
303 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
304 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction()
313 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
315 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
321 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
[all …]
H A DConstants.cpp319 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()
448 if (const auto *PV = dyn_cast<PoisonValue>(this)) in getAggregateElement()
560 delete static_cast<PoisonValue *>(C); in deleteConstant()
1183 PoisonValue *PoisonValue::getSequentialElement() const { in getSequentialElement()
1185 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
1186 return PoisonValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
1189 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement()
1190 return PoisonValue::get(getType()->getStructElementType(Elt)); in getStructElement()
[all …]
H A DReplaceConstant.cpp33 Value *V = PoisonValue::get(C->getType()); in expandUser()
40 Value *V = PoisonValue::get(C->getType()); in expandUser()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp641 if (isa<PoisonValue>(Op1)) in simplifyAddInst()
794 if (isa<PoisonValue>(Op0) || isa<PoisonValue>(Op1)) in simplifySubInst()
795 return PoisonValue::get(Op0->getType()); in simplifySubInst()
936 if (isa<PoisonValue>(Op1)) in simplifyMulInst()
1088 if (Q.isUndefValue(Op1) || isa<PoisonValue>(Op1)) in simplifyDivRem()
1089 return PoisonValue::get(Ty); in simplifyDivRem()
1095 return PoisonValue::get(Ty); in simplifyDivRem()
1106 return PoisonValue::get(Ty); in simplifyDivRem()
1112 if (isa<PoisonValue>(Op0)) in simplifyDivRem()
1137 return PoisonValue::get(Ty); in simplifyDivRem()
[all …]
H A DConstantFolding.cpp594 return PoisonValue::get(IntType); in FoldReinterpretLoadFromConst()
603 return PoisonValue::get(IntType); in FoldReinterpretLoadFromConst()
709 return PoisonValue::get(Ty); in ConstantFoldLoadFromConst()
759 if (isa<PoisonValue>(C)) in ConstantFoldLoadFromUniformValue()
760 return PoisonValue::get(Ty); in ConstantFoldLoadFromUniformValue()
1823 if (isa<PoisonValue>(Op) || Op->containsPoisonElement()) in constantFoldVectorReduce()
1824 return PoisonValue::get(VT->getElementType()); in constantFoldVectorReduce()
2034 if (isa<PoisonValue>(Operands[0])) { in ConstantFoldScalarCall1()
2037 return PoisonValue::get(Ty); in ConstantFoldScalarCall1()
2798 if (isa<PoisonValue>(Operands[0]) || isa<PoisonValue>(Operands[1])) in ConstantFoldIntrinsicCall2()
[all …]
H A DDomTreeUpdater.cpp94 I.replaceAllUsesWith(PoisonValue::get(I.getType())); in validateDeleteBB()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1433 class PoisonValue final : public UndefValue {
1436 explicit PoisonValue(Type *T) : UndefValue(T, PoisonValueVal) {}
1441 PoisonValue(const PoisonValue &) = delete;
1444 static PoisonValue *get(Type *T);
1448 PoisonValue *getSequentialElement() const;
1452 PoisonValue *getStructElement(unsigned Elt) const;
1456 PoisonValue *getElementValue(Constant *C) const;
1459 PoisonValue *getElementValue(unsigned Idx) const;
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Driscv_vector.td64 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
69 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
388 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
391 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
421 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
424 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
476 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
485 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
511 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
514 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp129 (Repl ? Repl : PoisonValue::get(Vec->getType())), V, in runLowerConstExpr()
236 PoisonValue *PVal = PoisonValue::get(Arg0Ty); in visitCallScalToVec()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp446 Idx = PoisonValue::get(Ty); in visitExtractElementInst()
556 return replaceInstUsesWith(EI, PoisonValue::get(EI.getType())); in visitExtractElementInst()
654 if (isa<PoisonValue>(ScalarOp)) { // inserting poison into vector. in collectSingleShuffleElements()
790 PermittedRHS ? PoisonValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements()
1270 PoisonValue *PoisonVec = PoisonValue::get(VecTy); in foldInsSequenceIntoSplat()
1494 Values[I] = PoisonValue::get(InsElt.getType()->getElementType()); in foldConstantInsEltIntoShuffle()
1644 Constant *NewUndef = isa<PoisonValue>(VecOp) ? PoisonValue::get(VecTy) in visitInsertElementInst()
1716 LR.second = PoisonValue::get(LR.first->getType()); in visitInsertElementInst()
1932 if (isa<PoisonValue>(V)) in evaluateInDifferentElementOrder()
1933 return PoisonValue::get(FixedVectorType::get(EltTy, Mask.size())); in evaluateInDifferentElementOrder()
[all …]
H A DInstCombineLoadStoreAlloca.cpp713 PoisonValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate()
733 Value *V = PoisonValue::get(T); in unpackLoadToAggregate()
760 PoisonValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate()
778 Value *V = PoisonValue::get(T); in unpackLoadToAggregate()
1053 return replaceInstUsesWith(LI, PoisonValue::get(LI.getType())); in visitLoadInst()
1455 if (!isa<PoisonValue>(Val)) in visitStoreInst()
1456 return replaceOperand(SI, 0, PoisonValue::get(Val->getType())); in visitStoreInst()
H A DInstCombineSimplifyDemanded.cpp1415 return PoisonValue::get(V->getType()); in SimplifyDemandedVectorElts()
1427 Constant *Poison = PoisonValue::get(EltTy); in SimplifyDemandedVectorElts()
1440 if (isa<PoisonValue>(Elt)) // Already poison. in SimplifyDemandedVectorElts()
1582 if (!isa<PoisonValue>(I->getOperand(1))) { in SimplifyDemandedVectorElts()
1583 I->setOperand(1, PoisonValue::get(I->getOperand(1)->getType())); in SimplifyDemandedVectorElts()
1934 return PoisonValue::get(I->getType()); in SimplifyDemandedVectorElts()
1952 return PoisonValue::get(Ty); in getFPClassConstant()
1967 return isa<UndefValue>(V) ? nullptr : PoisonValue::get(VTy); in SimplifyDemandedUseFPClass()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp304 Arg.replaceAllUsesWith(PoisonValue::get(Arg.getType())); in removeDeadArgumentsFromCallers()
324 CB->setArgOperand(ArgNo, PoisonValue::get(Arg->getType())); in removeDeadArgumentsFromCallers()
966 CB.replaceAllUsesWith(PoisonValue::get(CB.getType())); in removeDeadStuffFromFunction()
983 Value *RetVal = PoisonValue::get(RetTy); in removeDeadStuffFromFunction()
1031 I->replaceAllUsesWith(PoisonValue::get(I->getType())); in removeDeadStuffFromFunction()
1051 RetVal = PoisonValue::get(NRetTy); in removeDeadStuffFromFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp533 if (isa<PoisonValue>(Src)) in instCombineIntrinsic()
615 if (isa<PoisonValue>(Src0) || isa<PoisonValue>(Src1)) in instCombineIntrinsic()
616 return IC.replaceInstUsesWith(II, PoisonValue::get(II.getType())); in instCombineIntrinsic()
1113 if (isa<PoisonValue>(Src) || isa<PoisonValue>(Segment)) in instCombineIntrinsic()
1114 return IC.replaceInstUsesWith(II, PoisonValue::get(II.getType())); in instCombineIntrinsic()
1384 return PoisonValue::get(IIVTy); in simplifyAMDGCNMemoryIntrinsicDemanded()
1422 return IC.Builder.CreateInsertElement(PoisonValue::get(IIVTy), NewCall, in simplifyAMDGCNMemoryIntrinsicDemanded()
H A DAMDGPUUnifyDivergentExitNodes.cpp232 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run()
294 Value *RetVal = RetTy->isVoidTy() ? nullptr : PoisonValue::get(RetTy); in run()
H A DAMDGPURewriteOutArguments.cpp345 Value *NewRetVal = PoisonValue::get(NewRetTy); in runOnFunction()
367 StubCallArgs.push_back(PoisonValue::get(Arg.getType())); in runOnFunction()
H A DAMDGPULowerModuleLDSPass.cpp330 Elements.push_back(PoisonValue::get(I32)); in getAddressesOfVariablesInKernel()
354 Constant *Missing = PoisonValue::get(KernelOffsetsType); in buildLookupTable()
898 newDynamicLDS.push_back(PoisonValue::get(I32)); in lowerDynamicLDSVariables()
1212 PoisonValue::get(ATy), "", nullptr, GlobalValue::NotThreadLocal, in createLDSVariableReplacement()
1235 M, LDSTy, false, GlobalValue::InternalLinkage, PoisonValue::get(LDSTy), in createLDSVariableReplacement()
H A DAMDGPULowerBufferFatPointers.cpp456 Value *Ret = PoisonValue::get(To); in fatPtrsToInts()
490 Value *Ret = PoisonValue::get(To); in intsToFatPtrs()
617 if (isa<PoisonValue>(C)) { in materializeBufferFatPtrConst()
619 {PoisonValue::get(NewTy->getElementType(0)), in materializeBufferFatPtrConst()
620 PoisonValue::get(NewTy->getElementType(1))}); in materializeBufferFatPtrConst()
1003 Value *Poison = PoisonValue::get(I->getType()); in killAndReplaceSplitInstructions()
1017 Value *Struct = PoisonValue::get(I->getType()); in killAndReplaceSplitInstructions()
1236 Value *Res = PoisonValue::get(AI.getType()); in visitAtomicCmpXchgInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSSAUpdater.cpp141 return PoisonValue::get(ProtoType); in GetValueInMiddleOfBlock()
313 return PoisonValue::get(Updater->ProtoType); in GetPoisonVal()
488 if (NewVal == ALoad) NewVal = PoisonValue::get(NewVal->getType()); in run()
H A DCallGraphUpdater.cpp32 DeadFn->replaceAllUsesWith(PoisonValue::get(DeadFn->getType())); in finalize()
H A DPromoteMemoryToRegister.cpp464 PoisonValue::get(PointerType::getUnqual(Ctx)), in convertMetadataToAssumes()
577 ReplVal = PoisonValue::get(LI->getType()); in rewriteSingleStoreAlloca()
693 ReplVal = PoisonValue::get(LI->getType()); in promoteSingleBlockAlloca()
883 A->replaceAllUsesWith(PoisonValue::get(A->getType())); in run()
983 Value *PoisonVal = PoisonValue::get(SomePHI->getType()); in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDeletion.cpp278 if (isa<PoisonValue>(Incoming)) in canProveExitOnFirstIteration()
288 return OnlyInput ? OnlyInput : PoisonValue::get(PN.getType()); in canProveExitOnFirstIteration()
471 PoisonValue::get(P.getType())); in deleteLoopIfDead()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp52 Cs.push_back(PoisonValue::get(T)); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp371 new ShuffleVectorInst(BI->getOperand(0), PoisonValue::get(BIOp0Ty), in replaceBinOpShuffles()
374 BI->getOperand(1), PoisonValue::get(BI->getOperand(1)->getType()), Mask, in replaceBinOpShuffles()
H A DExpandLargeDivRem.cpp64 Value *Result = PoisonValue::get(VTy); in scalarize()

1234567