Home
last modified time | relevance | path

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

123456789

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp199 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
226 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
254 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
282 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic()
286 if (isa<UndefValue>(Src1)) { in instCombineIntrinsic()
329 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic()
382 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic()
395 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic()
405 if (isa<UndefValue>(Src)) { in instCombineIntrinsic()
755 if (isa<UndefValue>(VDstIn)) in instCombineIntrinsic()
[all …]
H A DAMDGPUInstrInfo.cpp37 if (!Ptr || isa<UndefValue>(Ptr) || in isUniformMMO()
H A DSIAnnotateControlFlow.cpp48 UndefValue *BoolUndef;
134 BoolUndef = UndefValue::get(Boolean); in initialize()
310 if (!isa<UndefValue>(Exec) && !isa<UnreachableInst>(FirstInsertionPt)) { in closeControlFlow()
H A DAMDGPURewriteOutArguments.cpp373 Value *NewRetVal = UndefValue::get(NewRetTy); in runOnFunction()
400 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0); in runOnFunction()
419 StubCallArgs.push_back(UndefValue::get(Arg.getType())); in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp357 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
628 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
682 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
894 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
898 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
907 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
912 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
943 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
984 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1720 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
[all …]
H A DConstants.cpp800 return UndefValue::get(Ty); in mergeUndefsWith()
1120 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement()
1126 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement()
1130 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue()
1136 UndefValue *UndefValue::getElementValue(unsigned Idx) const { in getElementValue()
1401 return UndefValue::get(T); in getImpl()
1429 else if (isa<UndefValue>(V)) in getSplat()
1475 if (isa<UndefValue>(*OI)) in isGEPWithNoNotionalOverIndexing()
1747 if (isa<UndefValue>(OpC)) in getSplatValue()
1751 if (isa<UndefValue>(Elt)) in getSplatValue()
[all …]
/freebsd-13.1/contrib/llvm-project/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()
445 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack()
446 return UndefValue::get(ResTy); in simplifyX86pack()
510 if (isa<UndefValue>(Arg)) in simplifyX86movmsk()
553 Value *Res = UndefValue::get(RetTy); in simplifyX86addcarry()
626 UndefValue::get(IntTy64)}; in simplifyX86extrq()
658 return UndefValue::get(II.getType()); in simplifyX86extrq()
735 return UndefValue::get(II.getType()); in simplifyX86insertq()
825 if (isa<UndefValue>(COp)) { in simplifyX86pshufb()
870 if (isa<UndefValue>(COp)) { in simplifyX86vpermilvar()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h203 if (isa<UndefValue>(C)) in get()
211 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot()
303 if (isa<UndefValue>(V))
328 if (isa<UndefValue>(V)) in markNotConstant()
455 return UndefValue::get(Ty); in getCompare()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1352 class UndefValue : public ConstantData {
1355 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {}
1360 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {}
1363 UndefValue(const UndefValue &) = delete;
1366 static UndefValue *get(Type *T);
1370 UndefValue *getSequentialElement() const;
1374 UndefValue *getStructElement(unsigned Elt) const;
1378 UndefValue *getElementValue(Constant *C) const;
1381 UndefValue *getElementValue(unsigned Idx) const;
1400 class PoisonValue final : public UndefValue {
[all …]
H A DValue.def90 HANDLE_CONSTANT(UndefValue)
102 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp171 Args.push_back(UndefValue::get(*PI)); in createWrapper()
185 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper()
266 Value *Args[] = {UndefValue::get(MainArgTys[0]), in runOnModule()
267 UndefValue::get(MainArgTys[1])}; in runOnModule()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h66 Constant *V = UndefValue::get(T); in SourcePred()
137 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in anyPtrType()
157 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in sizedPtrType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp400 Assert(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference()
489 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor()
494 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub()
522 if (isa<UndefValue>(V)) in isZero()
545 if (isa<UndefValue>(Elem)) in isZero()
641 return UndefValue::get(V->getType()); in findValueImpl()
H A DConstantFolding.cpp264 if (isa<UndefValue>(Element)) { in FoldBitCast()
626 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
630 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
773 return UndefValue::get(Ty); in ConstantFoldLoadFromConstPtr()
1857 if (isa<UndefValue>(Op)) { in getConstIntOrUndef()
2569 return UndefValue::get(Ty); in ConstantFoldScalarCall2()
2576 return UndefValue::get(Ty); in ConstantFoldScalarCall2()
2583 return UndefValue::get(Ty); in ConstantFoldScalarCall2()
2818 return UndefValue::get(Ty); in ConstantFoldAMDGCNPermIntrinsic()
2844 return UndefValue::get(Ty); in ConstantFoldAMDGCNPermIntrinsic()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp213 else if (isa<UndefValue>(Elt)) in getStructValueState()
361 if (!isa<UndefValue>(GV->getInitializer())) in trackValueOfGlobalVariable()
808 if (isa<UndefValue>(C)) in visitCastInst()
944 if (isa<UndefValue>(C)) in visitUnaryOperator()
981 if (isa<UndefValue>(C)) in visitBinaryOperator()
1031 if (isa<UndefValue>(C)) in visitCmpInst()
1076 if (isa<UndefValue>(C)) in visitGetElementPtrInst()
1156 if (isa<UndefValue>(C)) in visitLoadInst()
1206 if (isa<UndefValue>(C)) in handleCallOverdefined()
1520 if (isa<UndefValue>(BI->getCondition())) { in resolvedUndefsIn()
[all …]
H A DCallGraphUpdater.cpp37 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
52 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
H A DLocal.cpp450 if (isa<UndefValue>(Arg)) in wouldInstructionBeTriviallyDead()
592 Value *Undef = UndefValue::get(I->getType()); in replaceDbgUsesWithUndef()
824 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second); in CanMergeValues()
905 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock()
934 if (!isa<UndefValue>(V)) in gatherIncomingValuesToPhi()
950 if (!isa<UndefValue>(V)) continue; in replaceUndefValuesInPhi()
1459 DV = UndefValue::get(DV->getType()); in ConvertDebugDeclareToDebugValue()
1791 Value *Undef = UndefValue::get(I.getType()); in salvageDebugInfoForDbgValues()
2289 isa<UndefValue>(Callee)) { in markAliveBlocks()
2315 if (isa<UndefValue>(Ptr) || in markAliveBlocks()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h135 return isa<Constant>(V) ? (isa<UndefValue>(V) ? 0 : 1) : 2; in getComplexity()
352 Out[i] = isa<UndefValue>(C) ? SafeC : C; in getSafeVectorConstantForBinop()
362 UndefValue::get(Type::getInt1PtrTy(Ctx)), InsertAt); in CreateNonTerminatorUnreachable()
427 V = UndefValue::get(I.getType()); in replaceInstUsesWith()
/freebsd-13.1/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp127 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink()
149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType())); in findPointer()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDeletion.cpp265 if (isa<UndefValue>(Incoming)) in canProveExitOnFirstIteration()
275 return OnlyInput ? OnlyInput : UndefValue::get(PN.getType()); in canProveExitOnFirstIteration()
337 if (isa<UndefValue>(KnownCondition)) { in canProveExitOnFirstIteration()
448 UndefValue::get(P.getType())); in deleteLoopIfDead()
H A DSCCP.cpp113 : UndefValue::get(ST->getElementType(i))); in tryToReplaceWithConstant()
122 isConstant(IV) ? Solver.getConstant(IV) : UndefValue::get(V->getType()); in tryToReplaceWithConstant()
340 if (!isa<UndefValue>(RI->getOperand(0))) in findReturnsToZap()
627 ReturnsToZap[i]->setOperand(0, UndefValue::get(F->getReturnType())); in runIPSCCP()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp167 Value *LPadVal = UndefValue::get(LPadType); in substituteLPadValues()
257 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local
259 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", &*AfterAllocaInsPt); in lowerIncomingArguments()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp295 Arg.replaceAllUsesWith(UndefValue::get(Arg.getType())); in RemoveDeadArgumentsFromCallers()
316 CB->setArgOperand(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers()
966 CB.replaceAllUsesWith(UndefValue::get(CB.getType())); in RemoveDeadStuffFromFunction()
983 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction()
1031 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RemoveDeadStuffFromFunction()
1051 RetVal = UndefValue::get(NRetTy); in RemoveDeadStuffFromFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp364 Idx = UndefValue::get(Ty); in visitExtractElementInst()
506 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst()
565 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements()
1390 Values[I] = UndefValue::get(InsElt.getType()->getElementType()); in foldConstantInsEltIntoShuffle()
1423 UndefValue *NewUndef = UndefValue::get(VecTy); in visitInsertElementInst()
1489 LR.second = UndefValue::get(LR.first->getType()); in visitInsertElementInst()
1697 return UndefValue::get(FixedVectorType::get(EltTy, Mask.size())); in evaluateInDifferentElementOrder()
1921 UndefValue *UndefVec = UndefValue::get(Shuf.getType()); in canonicalizeInsertSplat()
2406 if (auto *V = SimplifyShuffleVectorInst(X, UndefValue::get(XType), in visitShuffleVectorInst()
2678 if (eltMask >= (int)LHSOp0Width && isa<UndefValue>(LHSOp1)) in visitShuffleVectorInst()
[all …]

123456789