Home
last modified time | relevance | path

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

123456

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp192 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 DReplaceConstant.cpp31 Value *V = PoisonValue::get(C->getType()); in expandUser()
38 Value *V = PoisonValue::get(C->getType()); in expandUser()
H A DConstants.cpp1126 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 DConstants.h1384 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 DInstructionSimplify.cpp640 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 DConstantFolding.cpp594 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 DSPIRVRegularizer.cpp129 (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 DCallGraphUpdater.cpp39 DeadFn->replaceAllUsesWith(PoisonValue::get(DeadFn->getType())); in finalize()
54 DeadFn->replaceAllUsesWith(PoisonValue::get(DeadFn->getType())); in finalize()
H A DPromoteMemoryToRegister.cpp558 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 DLowerAtomic.cpp33 Res = Builder.CreateInsertValue(PoisonValue::get(CXI->getType()), Orig, 0); in lowerAtomicCmpXchgInst()
H A DUnifyLoopExits.cpp130 NewPhi->addIncoming(PoisonValue::get(Def->getType()), In); in INITIALIZE_PASS_DEPENDENCY()
/freebsd-14.2/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));
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 DInstCombineVectorOps.cpp444 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 DInstCombineLoadStoreAlloca.cpp714 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 DDeadArgumentElimination.cpp304 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 DGlobalSplit.cpp137 GV.replaceAllUsesWith(PoisonValue::get(GV.getType())); in splitGlobal()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
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 DAMDGPUInstCombineIntrinsic.cpp537 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 DAMDGPULowerModuleLDSPass.cpp495 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 DAMDGPUAtomicOptimizer.cpp586 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 DOpDescriptor.cpp46 Cs.push_back(PoisonValue::get(T)); in makeConstantsWithType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedAccessPass.cpp392 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 DScalarizer.cpp241 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 DCGHLSLRuntime.cpp325 Value *Result = PoisonValue::get(Ty); in buildVectorInput()
381 Args.emplace_back(PoisonValue::get(Param.getType())); in emitEntryFunction()

123456