| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 136 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 D | Constants.cpp | 346 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 D | IntrinsicInst.cpp | 231 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 D | Constant.cpp | 233 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 D | X86ShuffleDecodeConstantPool.cpp | 63 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 D | X86InstCombineIntrinsic.cpp | 372 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 D | Constant.h | 797 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 D | Values.def | 38 DEF_CONST(UndefValue, UndefValue)
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1418 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 D | Value.def | 79 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 D | AMDGPUInstCombineIntrinsic.cpp | 444 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 D | AMDGPUInstrInfo.cpp | 36 if (!Ptr || isa<UndefValue, Constant, GlobalValue>(Ptr)) in isUniformMMO()
|
| H A D | AMDGPURewriteUndefForPHI.cpp | 123 if (isa<UndefValue>(Incoming)) { in INITIALIZE_PASS_DEPENDENCY()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Lint.cpp | 411 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 D | ConstantFolding.cpp | 92 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 D | VectorUtils.cpp | 417 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 D | ValueLattice.h | 208 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot() 315 if (isa<UndefValue>(V)) 340 if (isa<UndefValue>(V)) in markNotConstant()
|
| H A D | MemoryBuiltins.h | 50 class UndefValue; variable 296 LLVM_ABI OffsetSpan visitUndefValue(UndefValue &);
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 225 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 D | ScheduleDAGInstrs.h | 50 class UndefValue; variable 257 UndefValue *UnknownValue;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVStripConvergentIntrinsics.cpp | 43 II->replaceAllUsesWith(UndefValue::get(II->getType())); in runOnFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | StatepointLowering.cpp | 170 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 D | OpDescriptor.cpp | 51 Cs.push_back(UndefValue::get(T)); in makeConstantsWithType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 541 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 D | ExecutionEngine.cpp | 586 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()
|