| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 195 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 423 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction() 480 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction() 703 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction() 707 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction() 716 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction() 721 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction() 749 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction() 781 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction() 1229 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction() [all …]
|
| H A D | Constants.cpp | 784 return UndefValue::get(Ty); in mergeUndefsWith() 1091 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement() 1097 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement() 1101 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue() 1107 UndefValue *UndefValue::getElementValue(unsigned Idx) const { in getElementValue() 1260 return UndefValue::get(Ty); in getImpl() 1373 return UndefValue::get(T); in getImpl() 1401 else if (isa<UndefValue>(V)) in getSplat() 1661 if (isa<UndefValue>(OpC)) in getSplatValue() 1665 if (isa<UndefValue>(Elt)) in getSplatValue() [all …]
|
| H A D | IntrinsicInst.cpp | 223 setAddress(UndefValue::get(getAddress()->getType())); in setKillAddress() 228 return !Addr || isa<UndefValue>(Addr); in isKillAddress() 870 if (isa<UndefValue>(Token)) in getStatepoint() 875 return UndefValue::get(Token->getType()); in getStatepoint() 895 if (isa<UndefValue>(Statepoint)) in getBasePtr() 896 return UndefValue::get(Statepoint->getType()); in getBasePtr() 906 if (isa<UndefValue>(Statepoint)) in getDerivedPtr() 907 return UndefValue::get(Statepoint->getType()); in getDerivedPtr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 393 if (!ConstElt->isNullValue() && !isa<UndefValue>(Elt)) in trimTrailingZerosInVector() 455 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 514 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 598 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 654 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic() 667 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic() 677 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 750 if (!isa<UndefValue>(Src)) { in instCombineIntrinsic() 1017 BM->getZExtValue() != 0xF || isa<UndefValue>(Old)) in instCombineIntrinsic() 1029 if (isa<UndefValue>(VDstIn)) in instCombineIntrinsic() [all …]
|
| H A D | AMDGPUInstrInfo.cpp | 41 if (!Ptr || isa<UndefValue>(Ptr) || in isUniformMMO()
|
| /freebsd-14.2/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 | 377 if (isa_and_nonnull<UndefValue>(CElt)) { in simplifyX86varShift() 423 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 445 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack() 446 return UndefValue::get(ResTy); in simplifyX86pack() 510 if (isa<UndefValue>(Arg)) in simplifyX86movmsk() 1693 UndefValue::get(IntTy64)}; in simplifyX86extrq() 1725 return UndefValue::get(II.getType()); in simplifyX86extrq() 1802 return UndefValue::get(II.getType()); in simplifyX86insertq() 1892 if (isa<UndefValue>(COp)) { in simplifyX86pshufb() 1937 if (isa<UndefValue>(COp)) { in simplifyX86vpermilvar() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 180 auto *AggrUndef = dyn_cast<UndefValue>(Op); in preprocessUndefs() 418 if (isa<UndefValue>(Op)) in visitInsertValueInst() 419 Args.push_back(UndefValue::get(IRB->getInt32Ty())); in visitInsertValueInst() 511 if (GV.hasInitializer() && !isa<UndefValue>(GV.getInitializer())) { in processGlobalValue() 519 if ((!GV.hasInitializer() || isa<UndefValue>(GV.getInitializer())) && in processGlobalValue() 533 EltTyConst = UndefValue::get(AI->getAllocatedType()); in insertAssignPtrTypeIntrs() 536 EltTyConst = UndefValue::get(GEP->getResultElementType()); in insertAssignPtrTypeIntrs() 559 Constant *Const = UndefValue::get(TypeToAssign); in insertAssignTypeIntrs() 563 if (isa<ConstantPointerNull>(Op) || isa<UndefValue>(Op) || in insertAssignTypeIntrs() 567 if (isa<UndefValue>(Op) && Op->getType()->isAggregateType()) in insertAssignTypeIntrs() [all …]
|
| H A D | SPIRVStripConvergentIntrinsics.cpp | 56 II->replaceAllUsesWith(UndefValue::get(II->getType())); in runOnFunction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerRefTypesIntPtrConv.cpp | 71 UndefValue *U = UndefValue::get(I->getType()); in runOnFunction()
|
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 163 Args.push_back(UndefValue::get(*PI)); in createWrapper() 177 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper() 256 Value *Args[] = {UndefValue::get(MainArgTys[0]), in runOnModule() 257 UndefValue::get(MainArgTys[1])}; in runOnModule()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1336 class UndefValue : public ConstantData { 1339 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {} 1344 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {} 1347 UndefValue(const UndefValue &) = delete; 1350 static UndefValue *get(Type *T); 1354 UndefValue *getSequentialElement() const; 1358 UndefValue *getStructElement(unsigned Elt) const; 1362 UndefValue *getElementValue(Constant *C) const; 1365 UndefValue *getElementValue(unsigned Idx) const; 1384 class PoisonValue final : public UndefValue { [all …]
|
| H A D | Value.def | 91 HANDLE_CONSTANT(UndefValue) 104 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Lint.cpp | 407 Check(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference() 496 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor() 501 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub() 529 if (isa<UndefValue>(V)) in isZero() 552 if (isa<UndefValue>(Elem)) in isZero() 648 return UndefValue::get(V->getType()); in findValueImpl()
|
| H A D | VectorUtils.cpp | 170 return UndefValue::get(FVTy->getElementType()); in findScalarElement() 203 return UndefValue::get(VTy->getElementType()); in findScalarElement() 268 if (isa<UndefValue>(V)) in isSplatValue() 973 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef() 982 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt)) in maskIsAllZeroOrUndef() 999 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef() 1008 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskIsAllOneOrUndef() 1025 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskContainsAllOneOrUndef() 1034 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskContainsAllOneOrUndef()
|
| H A D | ConstantFolding.cpp | 262 if (isa<UndefValue>(Element)) { in FoldBitCast() 760 if (isa<UndefValue>(C)) in ConstantFoldLoadFromUniformValue() 761 return UndefValue::get(Ty); in ConstantFoldLoadFromUniformValue() 1141 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction() 1890 if (isa<UndefValue>(Op)) { in getConstIntOrUndef() 2742 return UndefValue::get(Ty); in ConstantFoldScalarCall2() 2813 return UndefValue::get(Ty); in ConstantFoldScalarCall2() 2828 return UndefValue::get(Ty); in ConstantFoldScalarCall2() 2989 return UndefValue::get(Ty); in ConstantFoldAMDGCNPermIntrinsic() 3015 return UndefValue::get(Ty); in ConstantFoldAMDGCNPermIntrinsic() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 66 Constant *V = UndefValue::get(T); in SourcePred() 158 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in anyPtrType() 178 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in sizedPtrType()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 210 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot() 302 if (isa<UndefValue>(V)) 327 if (isa<UndefValue>(V)) in markNotConstant()
|
| H A D | MemoryBuiltins.h | 50 class UndefValue; variable 259 SizeOffsetAPInt visitUndefValue(UndefValue &);
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ScheduleDAGInstrs.h | 49 class UndefValue; variable 238 UndefValue *UnknownValue;
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 227 return UndefValue::get(Tp); in getRandomConstant() 258 return UndefValue::get(Tp); in getRandomValue() 269 return UndefValue::get(pickPointerType()); in getRandomPointerValue() 280 return UndefValue::get(pickVectorType()); in getRandomVectorValue() 510 CI = UndefValue::get(I32); in Act()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopDeletion.cpp | 278 if (isa<UndefValue>(Incoming)) in canProveExitOnFirstIteration() 288 return OnlyInput ? OnlyInput : UndefValue::get(PN.getType()); in canProveExitOnFirstIteration() 348 if (isa<UndefValue>(KnownCondition)) { in canProveExitOnFirstIteration()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | RandomIRBuilder.cpp | 84 return Pred.matches(Srcs, UndefValue::get(GV->getValueType())); in findOrCreateGlobalVariable() 370 Ptr = createStackMemory(BB.getParent(), Ty, UndefValue::get(Ty)); in newSink() 372 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | StatepointLowering.cpp | 171 assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) && in findPreviousSpillSlot() 173 if (isa<UndefValue>(Statepoint)) in findPreviousSpillSlot() 1182 assert((isa<GCStatepointInst>(SI) || isa<UndefValue>(SI)) && in visitGCResult() 1184 if (isa<UndefValue>(SI)) in visitGCResult() 1211 assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) && in visitGCRelocate() 1213 if (isa<UndefValue>(Statepoint)) in visitGCRelocate()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SjLjEHPrepare.cpp | 274 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local 276 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", &*AfterAllocaInsPt); in lowerIncomingArguments()
|