Home
last modified time | relevance | path

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

12345678

/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp360 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 DAMDGPUInstrInfo.cpp37 if (!Ptr || isa<UndefValue>(Ptr) || in isUniformMMO()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantFold.cpp355 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 DConstants.cpp305 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 DIntrinsicInst.cpp218 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 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.cpp377 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 DWebAssemblyLowerRefTypesIntPtrConv.cpp69 UndefValue *U = UndefValue::get(I->getType()); in runOnFunction()
H A DWebAssemblyFixFunctionBitcasts.cpp163 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 DConstants.h1382 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 DValue.def91 HANDLE_CONSTANT(UndefValue)
104 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DValueLattice.h205 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 DMemoryBuiltins.h50 class UndefValue; variable
240 SizeOffsetType visitUndefValue(UndefValue&);
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp260 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 DOpDescriptor.h65 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 DLint.cpp405 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 DConstantFolding.cpp85 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 DRandomIRBuilder.cpp160 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink()
185 return Pred.matches(Srcs, UndefValue::get(ElemTy)); in findPointer()
H A DOpDescriptor.cpp30 Cs.push_back(UndefValue::get(T)); in makeConstantsWithType()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DScheduleDAGInstrs.h49 class UndefValue; variable
237 UndefValue *UnknownValue;
/openbsd-src/gnu/llvm/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp227 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 DInstCombineVectorOps.cpp441 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 DStatepointLowering.cpp171 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 DSjLjEHPrepare.cpp257 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 DLoopDeletion.cpp280 if (isa<UndefValue>(Incoming)) in canProveExitOnFirstIteration()
290 return OnlyInput ? OnlyInput : UndefValue::get(PN.getType()); in canProveExitOnFirstIteration()
350 if (isa<UndefValue>(KnownCondition)) { in canProveExitOnFirstIteration()

12345678