| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 360 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 388 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 416 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 417 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 427 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic() 428 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 431 if (isa<UndefValue>(Src1)) { in instCombineIntrinsic() 473 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic() 474 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 526 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic() [all …]
|
| H A D | AMDGPUInstrInfo.cpp | 37 if (!Ptr || isa<UndefValue>(Ptr) || in isUniformMMO()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 355 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 362 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 543 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 544 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction() 560 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 561 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction() 593 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction() 594 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction() 616 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction() 620 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction() [all …]
|
| H A D | Constants.cpp | 305 return isa<UndefValue>(CmpEq) || match(CmpEq, m_One()); in isElementWiseEqual() 332 this, [&](const auto *C) { return isa<UndefValue>(C); }); in containsUndefOrPoisonElement() 342 return isa<UndefValue>(C) && !isa<PoisonValue>(C); in containsUndefElement() 437 if (const auto *UV = dyn_cast<UndefValue>(this)) in getAggregateElement() 540 delete static_cast<UndefValue *>(C); in deleteConstant() 786 return UndefValue::get(Ty); in mergeUndefsWith() 805 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith() 1105 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement() 1107 return UndefValue::get(ATy->getElementType()); in getSequentialElement() 1108 return UndefValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement() [all …]
|
| H A D | IntrinsicInst.cpp | 218 setAddress(UndefValue::get(getAddress()->getType())); in setKillAddress() 223 return !Addr || isa<UndefValue>(Addr); in isKillAddress() 794 if (isa<UndefValue>(Token)) in getStatepoint() 815 if (isa<UndefValue>(Statepoint)) in getBasePtr() 816 return UndefValue::get(Statepoint->getType()); in getBasePtr() 826 if (isa<UndefValue>(Statepoint)) in getDerivedPtr() 827 return UndefValue::get(Statepoint->getType()); in getDerivedPtr()
|
| /openbsd-src/gnu/llvm/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() 406 ConstantVec.push_back(UndefValue::get(SVT)); 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() 625 UndefValue::get(IntTy64)}; in simplifyX86extrq() 657 return UndefValue::get(II.getType()); in simplifyX86extrq() 734 return UndefValue::get(II.getType()); in simplifyX86insertq() 782 UndefValue::get(IntTy64)}; in simplifyX86insertq() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerRefTypesIntPtrConv.cpp | 69 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() 257 Value *Args[] = {UndefValue::get(MainArgTys[0]), in runOnModule() 258 UndefValue::get(MainArgTys[1])}; in runOnModule()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1382 class UndefValue : public ConstantData { 1385 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {} 1390 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {} 1393 UndefValue(const UndefValue &) = delete; 1396 static UndefValue *get(Type *T); 1400 UndefValue *getSequentialElement() const; 1404 UndefValue *getStructElement(unsigned Elt) const; 1408 UndefValue *getElementValue(Constant *C) const; 1411 UndefValue *getElementValue(unsigned Idx) const; 1430 class PoisonValue final : public UndefValue { [all …]
|
| H A D | Value.def | 91 HANDLE_CONSTANT(UndefValue) 104 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 205 if (isa<UndefValue>(C)) in get() 213 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot() 305 if (isa<UndefValue>(V)) 330 if (isa<UndefValue>(V)) in markNotConstant()
|
| H A D | MemoryBuiltins.h | 50 class UndefValue; variable 240 SizeOffsetType visitUndefValue(UndefValue&);
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 260 if (isa<UndefValue>(Op)) in visitInsertValueInst() 261 Args.push_back(UndefValue::get(IRB->getInt32Ty())); in visitInsertValueInst() 353 if (GV.hasInitializer() && !isa<UndefValue>(GV.getInitializer())) { in processGlobalValue() 361 if ((!GV.hasInitializer() || isa<UndefValue>(GV.getInitializer())) && in processGlobalValue() 382 if (isa<ConstantPointerNull>(Op) || isa<UndefValue>(Op) || in insertAssignTypeIntrs() 386 if (isa<UndefValue>(Op) && Op->getType()->isAggregateType()) in insertAssignTypeIntrs() 388 UndefValue::get(IRB->getInt32Ty())); in insertAssignTypeIntrs()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 65 Constant *V = UndefValue::get(T); in SourcePred() 136 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in anyPtrType() 157 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in sizedPtrType()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | Lint.cpp | 405 Check(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference() 494 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor() 499 Check(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub() 527 if (isa<UndefValue>(V)) in isZero() 550 if (isa<UndefValue>(Elem)) in isZero() 646 return UndefValue::get(V->getType()); in findValueImpl()
|
| H A D | ConstantFolding.cpp | 85 if (Element && isa<UndefValue>(Element)) { in foldConstVectorToAPInt() 221 if (Src && isa<UndefValue>(Src)) in FoldBitCast() 256 if (isa<UndefValue>(Element)) { in FoldBitCast() 258 Result.append(Ratio, UndefValue::get(DstEltTy)); in FoldBitCast() 428 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) in ReadDataFromGlobal() 763 if (isa<UndefValue>(C)) in ConstantFoldLoadFromUniformValue() 764 return UndefValue::get(Ty); in ConstantFoldLoadFromUniformValue() 1170 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction() 1186 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction() 1895 if (isa<UndefValue>(Op)) { in getConstIntOrUndef() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/FuzzMutate/ |
| H A D | RandomIRBuilder.cpp | 160 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink() 185 return Pred.matches(Srcs, UndefValue::get(ElemTy)); in findPointer()
|
| H A D | OpDescriptor.cpp | 30 Cs.push_back(UndefValue::get(T)); in makeConstantsWithType()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | ScheduleDAGInstrs.h | 49 class UndefValue; variable 237 UndefValue *UnknownValue;
|
| /openbsd-src/gnu/llvm/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() 514 CI = UndefValue::get(I32); in Act()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 441 Idx = UndefValue::get(Ty); in visitExtractElementInst() 546 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 643 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements() 774 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements() 1471 Values[I] = UndefValue::get(InsElt.getType()->getElementType()); in foldConstantInsEltIntoShuffle() 1621 UndefValue *NewUndef = UndefValue::get(VecTy); in visitInsertElementInst() 1687 LR.second = UndefValue::get(LR.first->getType()); in visitInsertElementInst() 1901 return UndefValue::get(FixedVectorType::get(EltTy, Mask.size())); in evaluateInDifferentElementOrder() 2180 UndefValue *UndefVec = UndefValue::get(Shuf.getType()); in canonicalizeInsertSplat() 2787 if (auto *V = simplifyShuffleVectorInst(X, UndefValue::get(XType), in visitShuffleVectorInst() [all …]
|
| /openbsd-src/gnu/llvm/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() 1177 assert((isa<GCStatepointInst>(SI) || isa<UndefValue>(SI)) && in visitGCResult() 1179 if (isa<UndefValue>(SI)) in visitGCResult() 1206 assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) && in visitGCRelocate() 1208 if (isa<UndefValue>(Statepoint)) in visitGCRelocate()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | SjLjEHPrepare.cpp | 257 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local 259 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", &*AfterAllocaInsPt); in lowerIncomingArguments()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | LoopDeletion.cpp | 280 if (isa<UndefValue>(Incoming)) in canProveExitOnFirstIteration() 290 return OnlyInput ? OnlyInput : UndefValue::get(PN.getType()); in canProveExitOnFirstIteration() 350 if (isa<UndefValue>(KnownCondition)) { in canProveExitOnFirstIteration()
|