/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 135 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 142 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 289 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 290 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction() 306 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 307 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction() 339 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction() 340 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction() 351 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction() 355 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() 451 if (const auto *UV = dyn_cast<UndefValue>(this)) in getAggregateElement() 557 delete static_cast<UndefValue *>(C); in deleteConstant() 799 return UndefValue::get(Ty); in mergeUndefsWith() 818 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith() 1148 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement() 1150 return UndefValue::get(ATy->getElementType()); in getSequentialElement() 1151 return UndefValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement() 1154 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement() [all …]
|
H A D | IntrinsicInst.cpp | 226 setAddress(UndefValue::get(getAddress()->getType())); in setKillAddress() 231 return !Addr || isa<UndefValue>(Addr); in isKillAddress() 890 if (isa<UndefValue>(Token)) in getStatepoint() 895 return UndefValue::get(Token->getType()); in getStatepoint() 915 if (isa<UndefValue>(Statepoint)) in getBasePtr() 916 return UndefValue::get(Statepoint->getType()); in getBasePtr() 926 if (isa<UndefValue>(Statepoint)) in getDerivedPtr() 927 return UndefValue::get(Statepoint->getType()); in getDerivedPtr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 389 if (!ConstElt->isNullValue() && !isa<UndefValue>(Elt)) in trimTrailingZerosInVector() 416 if (!Elt || (Elt != FirstComponent && !isa<UndefValue>(Elt))) in defaultComponentBroadcast() 451 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 510 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 594 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 595 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 650 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic() 651 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 663 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic() 664 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() [all …]
|
H A D | AMDGPUInstrInfo.cpp | 37 // UndefValue means this is a load of a kernel input. These are uniform. in isUniformMMO() 41 if (!Ptr || isa<UndefValue>(Ptr) || in isUniformMMO()
|
H A D | AMDGPURewriteUndefForPHI.cpp | 125 if (isa<UndefValue>(Incoming)) { in INITIALIZE_PASS_DEPENDENCY()
|
/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 | 378 if (isa_and_nonnull<UndefValue>(CElt)) { in simplifyX86varShift() 407 ConstantVec.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 424 ShiftVecAmts.push_back(UndefValue::get(SVT)); in simplifyX86varShift() 446 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack() 447 return UndefValue::get(ResTy); in simplifyX86pack() 517 if (isa<UndefValue>(Arg0) || isa<UndefValue>(Arg1)) in simplifyX86pmulh() 577 if (isa<UndefValue>(Arg0) || isa<UndefValue>(Arg1)) in simplifyX86pmadd() 623 if (isa<UndefValue>(Arg)) in simplifyX86movmsk() 1806 UndefValue::get(IntTy64)}; in simplifyX86extrq() 1838 return UndefValue::get(II.getType()); in simplifyX86extrq() [all …]
|
/freebsd/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/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 1385 class UndefValue : public ConstantData { 1388 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {} 1393 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {} 1396 UndefValue(const UndefValue &) = delete; 1399 static UndefValue *get(Type *T); 1403 UndefValue *getSequentialElement() const; 1407 UndefValue *getStructElement(unsigned Elt) const; 1411 UndefValue *getElementValue(Constant *C) const; 1414 UndefValue *getElementValue(unsigned Idx) const; 1433 class PoisonValue final : public UndefValue { [all …]
|
H A D | Value.def | 92 HANDLE_CONSTANT(UndefValue) 105 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Lint.cpp | 393 Check(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference() 482 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor() 487 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub() 515 if (isa<UndefValue>(V)) in isZero() 538 if (isa<UndefValue>(Elem)) in isZero()
|
H A D | ConstantFolding.cpp | 85 if (Element && isa<UndefValue>(Element)) { in foldConstVectorToAPInt() 221 if (Src && isa<UndefValue>(Src)) in FoldBitCast() 262 if (isa<UndefValue>(Element)) { in FoldBitCast() 264 Result.append(Ratio, UndefValue::get(DstEltTy)); in FoldBitCast() 424 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) in ReadDataFromGlobal() 761 if (isa<UndefValue>(C)) in ConstantFoldLoadFromUniformValue() 762 return UndefValue::get(Ty); in ConstantFoldLoadFromUniformValue() 1124 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction() 1140 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction() 1917 if (isa<UndefValue>(Op)) { in getConstIntOrUndef() [all …]
|
H A D | VectorUtils.cpp | 270 if (isa<UndefValue>(V)) in isSplatValue() 1032 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef() 1041 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt)) in maskIsAllZeroOrUndef() 1058 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef() 1067 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskIsAllOneOrUndef() 1084 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskContainsAllOneOrUndef() 1093 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskContainsAllOneOrUndef()
|
/freebsd/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/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ValueLattice.h | 210 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot() 317 if (isa<UndefValue>(V)) 342 if (isa<UndefValue>(V)) in markNotConstant()
|
H A D | MemoryBuiltins.h | 50 class UndefValue; variable 261 SizeOffsetAPInt visitUndefValue(UndefValue &);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | ScheduleDAGInstrs.h | 48 class UndefValue; variable 243 UndefValue *UnknownValue;
|
/freebsd/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/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()
|
H A D | OpDescriptor.cpp | 51 Cs.push_back(UndefValue::get(T)); in makeConstantsWithType()
|
/freebsd/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() 1185 assert((isa<GCStatepointInst>(SI) || isa<UndefValue>(SI)) && in visitGCResult() 1187 if (isa<UndefValue>(SI)) in visitGCResult() 1214 assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) && in visitGCRelocate() 1216 if (isa<UndefValue>(Statepoint)) in visitGCRelocate()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SjLjEHPrepare.cpp | 272 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local 274 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", AfterAllocaInsPt); in lowerIncomingArguments()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVEmitIntrinsics.cpp | 849 auto *AggrUndef = dyn_cast<UndefValue>(Op); in preprocessUndefs() 929 Constant *TyC = UndefValue::get(IA->getFunctionType()); in visitCallInst() 1259 if (isa<UndefValue>(Op)) in visitInsertValueInst() 1260 Args.push_back(UndefValue::get(B.getInt32Ty())); in visitInsertValueInst() 1378 if (GV.hasInitializer() && !isa<UndefValue>(GV.getInitializer())) { in processGlobalValue() 1390 if ((!GV.hasInitializer() || isa<UndefValue>(GV.getInitializer())) && in processGlobalValue() 1464 if (isa<ConstantPointerNull>(Op) || isa<UndefValue>(Op) || in insertAssignTypeIntrs() 1469 if (isa<UndefValue>(Op) && OpTy->isAggregateType()) { in insertAssignTypeIntrs() 1472 UndefValue::get(B.getInt32Ty()), {}, B); in insertAssignTypeIntrs()
|