Home
last modified time | relevance | path

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

12345678

/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantFold.cpp521 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
793 if (isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
808 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
925 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
929 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
938 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
943 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
976 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
1013 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1714 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
[all …]
H A DConstants.cpp342 if (const UndefValue *UV = dyn_cast<UndefValue>(this)) in getAggregateElement()
870 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement()
874 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement()
878 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue()
884 UndefValue *UndefValue::getElementValue(unsigned Idx) const { in getElementValue()
1004 return UndefValue::get(Ty); in getImpl()
1059 if (!isa<UndefValue>(V[i])) in get()
1067 return UndefValue::get(ST); in get()
1107 return UndefValue::get(T); in getImpl()
1162 if (isa<UndefValue>(*OI)) in isGEPWithNoNotionalOverIndexing()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp373 if (isa<UndefValue>(V)) { in collectSingleShuffleElements()
535 if (isa<UndefValue>(V)) { in collectShuffleElements()
719 UndefValue::get(VT), SplatVal, in foldInsSequenceIntoBroadcast()
868 if (isa<UndefValue>(ScalarOp) || isa<UndefValue>(IdxOp)) in visitInsertElementInst()
1121 if (isa<UndefValue>(V)) in evaluateInDifferentElementOrder()
1485 Value *Undef = UndefValue::get(X->getType()); in narrowVectorSelect()
1628 if (LHS == RHS || isa<UndefValue>(LHS)) { in visitShuffleVectorInst()
1633 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
1804 if (!isa<UndefValue>(LHSShuffle->getOperand(1)) && !isa<UndefValue>(RHS)) in visitShuffleVectorInst()
1830 if (isa<UndefValue>(RHS)) { in visitShuffleVectorInst()
[all …]
H A DInstCombineCalls.cpp532 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack()
707 if (isa<UndefValue>(Arg)) in simplifyX86movmsk()
721 if (isa<UndefValue>(COp)) in simplifyX86movmsk()
1026 if (isa<UndefValue>(COp)) { in simplifyX86pshufb()
3345 if (isa<UndefValue>(Src)) in visitCallInst()
3365 if (isa<UndefValue>(Src)) in visitCallInst()
3389 if (isa<UndefValue>(Src)) in visitCallInst()
3509 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) in visitCallInst()
3521 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) in visitCallInst()
3530 if (isa<UndefValue>(Src)) in visitCallInst()
[all …]
H A DInstCombineLoadStoreAlloca.cpp226 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize()
701 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate()
719 Value *V = UndefValue::get(T); in unpackLoadToAggregate()
749 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate()
769 Value *V = UndefValue::get(T); in unpackLoadToAggregate()
985 if (isa<UndefValue>(Op) || in canSimplifyNullLoadOrGEP()
1131 if (!isa<UndefValue>(V) ||!U) in likeBitCastFromVector()
1384 IC.replaceInstUsesWith(*LI, UndefValue::get(LI->getType())); in removeBitcastsFromLoadStoreOnMinMax()
1488 if (!isa<UndefValue>(Val)) { in visitStoreInst()
1489 SI.setOperand(0, UndefValue::get(Val->getType())); in visitStoreInst()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DValueLattice.h122 if (!isa<UndefValue>(C)) in get()
128 if (!isa<UndefValue>(C)) in getNot()
191 if (isa<UndefValue>(V)) in markConstant()
207 if (isa<UndefValue>(V)) in markNotConstant()
297 return UndefValue::get(Ty); in getCompare()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp113 if (!V) V = UndefValue::get(AI->getType()); in PropagateConstantsIntoArguments()
151 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn()
153 RetVals.push_back(UndefValue::get(F.getReturnType())); in PropagateConstantReturn()
173 if (isa<UndefValue>(V)) in PropagateConstantReturn()
178 if (isa<UndefValue>(RV)) { in PropagateConstantReturn()
H A DDeadArgumentElimination.cpp296 Arg.replaceAllUsesWith(UndefValue::get(Arg.getType())); in RemoveDeadArgumentsFromCallers()
316 CS.setArgument(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers()
965 Call->replaceAllUsesWith(UndefValue::get(Call->getType())); in RemoveDeadStuffFromFunction()
981 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction()
1028 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RemoveDeadStuffFromFunction()
1049 RetVal = UndefValue::get(NRetTy); in RemoveDeadStuffFromFunction()
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp62 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
65 if (isa<UndefValue>(COp)) { in extractConstantMask()
82 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()
87 if (isa<UndefValue>(COp)) { in extractConstantMask()
H A DX86InterleavedAccess.cpp289 Vec[i], UndefValue::get(Vec[i]->getType()), VPShuf); in reorderSubVector()
572 Vec[i], UndefValue::get(Vec[0]->getType()), VPShuf); in deinterleave8bitStride3()
595 Vec[1], UndefValue::get(Vec[1]->getType()), VPAlign3); in deinterleave8bitStride3()
597 Vec[0], UndefValue::get(Vec[1]->getType()), VPAlign2); in deinterleave8bitStride3()
655 InVec[0], UndefValue::get(InVec[0]->getType()), VPAlign2); in interleave8bitStride3()
657 InVec[1], UndefValue::get(InVec[1]->getType()), VPAlign3); in interleave8bitStride3()
/freebsd-12.1/contrib/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()
262 Value *Args[] = {UndefValue::get(MainArgTys[0]), in runOnModule()
263 UndefValue::get(MainArgTys[1])}; in runOnModule()
/freebsd-12.1/contrib/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h67 Constant *V = UndefValue::get(T); in SourcePred()
138 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in anyPtrType()
158 Result.push_back(UndefValue::get(PointerType::getUnqual(T))); in sizedPtrType()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp294 if (!isa<UndefValue>(GV->getInitializer())) in TrackValueOfGlobalVariable()
500 if (!isa<UndefValue>(V)) in getValueState()
541 else if (isa<UndefValue>(Elt)) in getStructValueState()
866 if (isa<UndefValue>(C)) in visitCastInst()
973 if (isa<UndefValue>(C)) in visitBinaryOperator()
1047 if (isa<UndefValue>(C)) in visitCmpInst()
1087 if (isa<UndefValue>(C)) in visitGetElementPtrInst()
1151 if (isa<UndefValue>(C)) in visitLoadInst()
1258 if (isa<UndefValue>(C)) in visitCallSite()
1661 if (isa<UndefValue>(IBR->getAddress())) { in ResolvedUndefsIn()
[all …]
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLint.cpp422 Assert(!isa<UndefValue>(UnderlyingObject), in visitMemoryReference()
516 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitXor()
521 Assert(!isa<UndefValue>(I.getOperand(0)) || !isa<UndefValue>(I.getOperand(1)), in visitSub()
549 if (isa<UndefValue>(V)) in isZero()
570 if (isa<UndefValue>(Elem)) in isZero()
663 return UndefValue::get(V->getType()); in findValueImpl()
H A DInstructionSimplify.cpp357 if (TV && isa<UndefValue>(TV)) in ThreadBinOpOverSelect()
359 if (FV && isa<UndefValue>(FV)) in ThreadBinOpOverSelect()
1190 if (isa<UndefValue>(C)) in isUndefShift()
3635 if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS)) { in SimplifyFCmpInst()
4218 if (isa<UndefValue>(Idx)) in SimplifyInsertElementInst()
4266 if (isa<UndefValue>(Vec)) in SimplifyExtractElementInst()
4282 if (isa<UndefValue>(Idx)) in SimplifyExtractElementInst()
4419 if (isa<UndefValue>(Mask)) in SimplifyShuffleVectorInst()
4509 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) in simplifyFPBinop()
4965 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) in simplifyBinaryIntrinsic()
[all …]
H A DConstantFolding.cpp212 if (Src && isa<UndefValue>(Src)) in FoldBitCast()
246 if (isa<UndefValue>(Element)) { in FoldBitCast()
548 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
552 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
674 return UndefValue::get(Ty); in ConstantFoldLoadFromConstPtr()
1107 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction()
1637 if (isa<UndefValue>(Op)) { in getConstIntOrUndef()
2034 return UndefValue::get(Ty); in ConstantFoldScalarCall()
2068 return UndefValue::get(Ty); in ConstantFoldScalarCall()
2078 return UndefValue::get(Ty); in ConstantFoldScalarCall()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstants.h1286 class UndefValue final : public ConstantData {
1289 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {}
1294 UndefValue(const UndefValue &) = delete;
1297 static UndefValue *get(Type *T);
1301 UndefValue *getSequentialElement() const;
1305 UndefValue *getStructElement(unsigned Elt) const;
1309 UndefValue *getElementValue(Constant *C) const;
1312 UndefValue *getElementValue(unsigned Idx) const;
H A DValue.def76 HANDLE_CONSTANT(UndefValue)
87 HANDLE_CONSTANT_MARKER(ConstantDataFirstVal, UndefValue)
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp391 Value *NewRetVal = UndefValue::get(NewRetTy); in runOnFunction()
411 Val = B.CreateShuffleVector(Val, UndefValue::get(Val->getType()), in runOnFunction()
419 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0); in runOnFunction()
438 StubCallArgs.push_back(UndefValue::get(Arg.getType())); in runOnFunction()
H A DAMDGPUAtomicOptimizer.cpp336 UndefValue::get(VecTy), ReadLaneLo, B.getInt32(0)); in optimizeAtomic()
390 PHI->addIncoming(UndefValue::get(Ty), EntryBB); in optimizeAtomic()
409 UndefValue::get(VecTy), ReadFirstLaneLo, B.getInt32(0)); in optimizeAtomic()
433 PHI->addIncoming(UndefValue::get(Ty), PixelEntryBB); in optimizeAtomic()
H A DSIAnnotateControlFlow.cpp64 UndefValue *BoolUndef;
144 BoolUndef = UndefValue::get(Boolean); in doInitialization()
301 if (!isa<UndefValue>(Exec) && !isa<UnreachableInst>(FirstInsertionPt)) in closeControlFlow()
/freebsd-12.1/contrib/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-12.1/contrib/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp160 Value *LPadVal = UndefValue::get(LPadType); in substituteLPadValues()
246 Value *UndefValue = UndefValue::get(Ty); in lowerIncomingArguments() local
248 TrueValue, &AI, UndefValue, AI.getName() + ".tmp", &*AfterAllocaInsPt); in lowerIncomingArguments()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp408 ReplVal = UndefValue::get(LI->getType()); in rewriteSingleStoreAlloca()
499 LI->replaceAllUsesWith(UndefValue::get(LI->getType())); in promoteSingleBlockAlloca()
516 ReplVal = UndefValue::get(LI->getType()); in promoteSingleBlockAlloca()
659 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
686 A->replaceAllUsesWith(UndefValue::get(A->getType())); in run()
780 Value *UndefVal = UndefValue::get(SomePHI->getType()); in run()
H A DLocal.cpp397 return isa<UndefValue>(II->getArgOperand(1)); in wouldInstructionBeTriviallyDead()
417 return C->isNullValue() || isa<UndefValue>(C); in wouldInstructionBeTriviallyDead()
483 Value *Undef = UndefValue::get(I->getType()); in replaceDbgUsesWithUndef()
758 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second); in CanMergeValues()
839 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock()
868 if (!isa<UndefValue>(V)) in gatherIncomingValuesToPhi()
883 if (!isa<UndefValue>(V)) continue; in replaceUndefValuesInPhi()
1293 DV = UndefValue::get(DV->getType()); in ConvertDebugDeclareToDebugValue()
2050 isa<UndefValue>(Callee)) { in markAliveBlocks()
2076 if (isa<UndefValue>(Ptr) || in markAliveBlocks()
[all …]

12345678