Home
last modified time | relevance | path

Searched refs:UndefValue (Results 1 – 25 of 166) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp136 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
143 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
284 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
285 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
301 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
302 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
334 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction()
335 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction()
346 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
350 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
[all …]
H A DConstants.cpp346 this, [&](const auto *C) { return isa<UndefValue>(C); }); in containsUndefOrPoisonElement()
356 return isa<UndefValue>(C) && !isa<PoisonValue>(C); in containsUndefElement()
468 if (const auto *UV = dyn_cast<UndefValue>(this)) in getAggregateElement()
574 delete static_cast<UndefValue *>(C); in deleteConstant()
815 return UndefValue::get(Ty); in mergeUndefsWith()
834 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith()
844 if (isa<UndefValue>(this)) in isManifestConstant()
1169 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement()
1171 return UndefValue::get(ATy->getElementType()); in getSequentialElement()
1172 return UndefValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
[all …]
H A DIntrinsicInst.cpp231 return !Addr || isa<UndefValue>(Addr); in isKillAddress()
844 if (isa<UndefValue>(Token)) in getStatepoint()
849 return UndefValue::get(Token->getType()); in getStatepoint()
869 if (isa<UndefValue>(Statepoint)) in getBasePtr()
870 return UndefValue::get(Statepoint->getType()); in getBasePtr()
880 if (isa<UndefValue>(Statepoint)) in getDerivedPtr()
881 return UndefValue::get(Statepoint->getType()); in getDerivedPtr()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DConstant.cpp233 UndefValue *UndefValue::get(Type *T) { in get()
234 auto *LLVMC = llvm::UndefValue::get(T->LLVMTy); in get()
235 return cast<UndefValue>(T->getContext().getOrCreateConstant(LLVMC)); in get()
238 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement()
239 return cast<UndefValue>(Ctx.getOrCreateConstant( in getSequentialElement()
240 cast<llvm::UndefValue>(Val)->getSequentialElement())); in getSequentialElement()
243 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement()
244 return cast<UndefValue>(Ctx.getOrCreateConstant( in getStructElement()
245 cast<llvm::UndefValue>(Val)->getStructElement(Elt))); in getStructElement()
248 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp63 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
66 if (isa<UndefValue>(COp)) { in extractConstantMask()
83 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
88 if (isa<UndefValue>(COp)) { in extractConstantMask()
H A DX86InstCombineIntrinsic.cpp372 if (isa_and_nonnull<UndefValue>(CElt)) { in simplifyX86varShift()
401 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift()
418 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift()
440 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack()
441 return UndefValue::get(ResTy); in simplifyX86pack()
511 if (isa<UndefValue>(Arg0) || isa<UndefValue>(Arg1)) in simplifyX86pmulh()
571 if (isa<UndefValue>(Arg0) || isa<UndefValue>(Arg1)) in simplifyX86pmadd()
617 if (isa<UndefValue>(Arg)) in simplifyX86movmsk()
1802 UndefValue::get(IntTy64)}; in simplifyX86extrq()
1834 return UndefValue::get(II.getType()); in simplifyX86extrq()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h797 class UndefValue : public Constant {
799 UndefValue(llvm::UndefValue *C, Context &Ctx) in UndefValue() function
800 : Constant(ClassID::UndefValue, C, Ctx) {} in UndefValue()
801 UndefValue(ClassID ID, llvm::Constant *C, Context &Ctx) in UndefValue() function
807 LLVM_ABI static UndefValue *get(Type *T);
811 LLVM_ABI UndefValue *getSequentialElement() const;
815 LLVM_ABI UndefValue *getStructElement(unsigned Elt) const;
819 LLVM_ABI UndefValue *getElementValue(Constant *C) const;
822 LLVM_ABI UndefValue *getElementValue(unsigned Idx) const;
826 return cast<llvm::UndefValue>(Val)->getNumElements(); in getNumElements()
[all …]
H A DValues.def38 DEF_CONST(UndefValue, UndefValue)
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1418 class UndefValue : public ConstantData {
1421 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {}
1426 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {}
1429 UndefValue(const UndefValue &) = delete;
1432 LLVM_ABI static UndefValue *get(Type *T);
1436 LLVM_ABI UndefValue *getSequentialElement() const;
1440 LLVM_ABI UndefValue *getStructElement(unsigned Elt) const;
1444 LLVM_ABI UndefValue *getElementValue(Constant *C) const;
1447 LLVM_ABI UndefValue *getElementValue(unsigned Idx) const;
1466 class PoisonValue final : public UndefValue {
[all …]
H A DValue.def79 HANDLE_CONSTANT(UndefValue)
105 HANDLE_CONSTANT_MARKER(ConstantFirstVal, UndefValue)
107 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp444 if (!ConstElt->isNullValue() && !isa<UndefValue>(Elt)) in trimTrailingZerosInVector()
471 if (!Elt || (Elt != FirstComponent && !isa<UndefValue>(Elt))) in defaultComponentBroadcast()
648 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
710 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
797 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
798 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic()
839 if (isa<UndefValue>(Arg)) in instCombineIntrinsic()
840 return UndefValue::get(HalfTy); in instCombineIntrinsic()
881 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic()
882 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic()
[all …]
H A DAMDGPUInstrInfo.cpp36 if (!Ptr || isa<UndefValue, Constant, GlobalValue>(Ptr)) in isUniformMMO()
H A DAMDGPURewriteUndefForPHI.cpp123 if (isa<UndefValue>(Incoming)) { in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp411 Check(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference()
516 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor()
521 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub()
549 if (isa<UndefValue>(V)) in isZero()
571 if (isa<UndefValue>(Elem)) in isZero()
H A DConstantFolding.cpp92 if (isa_and_nonnull<UndefValue>(Element)) { in foldConstVectorToAPInt()
234 if (isa_and_nonnull<UndefValue>(Src)) in FoldBitCast()
275 if (isa<UndefValue>(Element)) { in FoldBitCast()
277 Result.append(Ratio, UndefValue::get(DstEltTy)); in FoldBitCast()
441 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) in ReadDataFromGlobal()
776 if (isa<UndefValue>(C)) in ConstantFoldLoadFromUniformValue()
777 return UndefValue::get(Ty); in ConstantFoldLoadFromUniformValue()
1148 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction()
1164 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
1377 if (isa<ConstantAggregateZero, UndefValue, ConstantExpr>(Operand)) in FlushFPConstant()
[all …]
H A DVectorUtils.cpp417 if (isa<UndefValue>(V)) in isSplatValue()
1273 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef()
1282 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt)) in maskIsAllZeroOrUndef()
1299 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef()
1308 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskIsAllOneOrUndef()
1325 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskContainsAllOneOrUndef()
1334 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskContainsAllOneOrUndef()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h208 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot()
315 if (isa<UndefValue>(V))
340 if (isa<UndefValue>(V)) in markNotConstant()
H A DMemoryBuiltins.h50 class UndefValue; variable
296 LLVM_ABI OffsetSpan visitUndefValue(UndefValue &);
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp225 return UndefValue::get(Tp); in getRandomConstant()
256 return UndefValue::get(Tp); in getRandomValue()
267 return UndefValue::get(PointerType::get(Context, 0)); in getRandomPointerValue()
278 return UndefValue::get(pickVectorType()); in getRandomVectorValue()
498 CI = UndefValue::get(I32); in Act()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DScheduleDAGInstrs.h50 class UndefValue; variable
257 UndefValue *UnknownValue;
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVStripConvergentIntrinsics.cpp43 II->replaceAllUsesWith(UndefValue::get(II->getType())); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp170 assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) && in findPreviousSpillSlot()
172 if (isa<UndefValue>(Statepoint)) in findPreviousSpillSlot()
1189 assert((isa<GCStatepointInst>(SI) || isa<UndefValue>(SI)) && in visitGCResult()
1191 if (isa<UndefValue>(SI)) in visitGCResult()
1218 assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) && in visitGCRelocate()
1220 if (isa<UndefValue>(Statepoint)) in visitGCRelocate()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp51 Cs.push_back(UndefValue::get(T)); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp541 if (UndefValue *U = dyn_cast<UndefValue>(Val)) in getKnownConstant()
684 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl()
689 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl()
884 assert(isa<UndefValue>(Cond) && "Unexpected condition value"); in computeValueKnownInPredecessorsImpl()
1009 if (isa<UndefValue>(Condition) || in processBlock()
1010 (FI && isa<UndefValue>(FI->getOperand(0)) && FI->hasOneUse())) { in processBlock()
1597 if (isa<UndefValue>(Val)) in processThreadableEdges()
1818 if (isa<UndefValue>(XorOpValue.first)) in processBranchOnXOR()
1838 if (XorOpValue.first != SplitVal && !isa<UndefValue>(XorOpValue.first)) in processBranchOnXOR()
1850 BO->replaceAllUsesWith(UndefValue::get(BO->getType())); in processBranchOnXOR()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp586 if (isa<UndefValue>(C)) { in getConstantValue()
610 const Constant *ElemUndef = UndefValue::get(ElemTy); in getConstantValue()
960 if (!isa<UndefValue>(CV->getOperand(i))) in getConstantValue()
981 if (!isa<UndefValue>(CV->getOperand(i))) in getConstantValue()
1002 if (!isa<UndefValue>(CV->getOperand(i))) in getConstantValue()
1157 if (isa<UndefValue>(Init)) in InitializeMemory()

1234567