| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 199 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 226 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 254 if (isa<UndefValue>(Src)) { in instCombineIntrinsic() 255 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 282 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic() 283 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 286 if (isa<UndefValue>(Src1)) { in instCombineIntrinsic() 329 if (isa<UndefValue>(Src0)) { in instCombineIntrinsic() 330 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 382 if (isa<UndefValue>(Src0) && isa<UndefValue>(Src1)) { in instCombineIntrinsic() [all …]
|
| H A D | AMDGPUUnifyDivergentExitNodes.cpp | 166 Value *Undef = UndefValue::get(B.getFloatTy()); in unifyReturnBlockSet() 263 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction() 355 Value *RetVal = RetTy->isVoidTy() ? nullptr : UndefValue::get(RetTy); in runOnFunction()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 550 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction() 557 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 791 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 792 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction() 808 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction() 809 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction() 841 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction() 842 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction() 864 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction() 868 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction() [all …]
|
| H A D | Constants.cpp | 304 return isa<UndefValue>(CmpEq) || match(CmpEq, m_One()); in isElementWiseEqual() 329 this, [&](const auto *C) { return isa<UndefValue>(C); }); in containsUndefOrPoisonElement() 440 if (const auto *UV = dyn_cast<UndefValue>(this)) in getAggregateElement() 539 delete static_cast<UndefValue *>(C); in deleteConstant() 733 UndefValue::get(C->getType())); in removeDeadUsersOfConstant() 798 return UndefValue::get(Ty); in mergeUndefsWith() 817 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith() 1118 UndefValue *UndefValue::getSequentialElement() const { in getSequentialElement() 1120 return UndefValue::get(ATy->getElementType()); in getSequentialElement() 1121 return UndefValue::get(cast<VectorType>(getType())->getElementType()); in getSequentialElement() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceBasicBlocks.cpp | 44 Term->replaceAllUsesWith(UndefValue::get(Term->getType())); in replaceBranchTerminator() 50 FnRetTy->isVoidTy() ? nullptr : UndefValue::get(FnRetTy), in replaceBranchTerminator() 74 FnRetTy->isVoidTy() ? nullptr : UndefValue::get(FnRetTy), in removeUninterestingBBsFromSwitch() 125 I.replaceAllUsesWith(UndefValue::get(I.getType())); in extractBasicBlocksFromModule()
|
| H A D | ReduceGlobalVars.cpp | 40 GV.replaceAllUsesWith(UndefValue::get(GV.getType())); in extractGVsFromModule() 49 Inst->replaceAllUsesWith(UndefValue::get(Inst->getType())); in extractGVsFromModule()
|
| H A D | ReduceArguments.cpp | 65 VMap[&A] = UndefValue::get(A.getType()); in extractArgumentsFromModule() 75 I->replaceAllUsesWith(UndefValue::get(I->getType())); in extractArgumentsFromModule()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 203 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()
|
| /netbsd-src/external/apache2/llvm/dist/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() 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() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| H A D | Constants.h | 1347 class UndefValue : public ConstantData { 1350 explicit UndefValue(Type *T) : ConstantData(T, UndefValueVal) {} 1355 explicit UndefValue(Type *T, ValueTy vty) : ConstantData(T, vty) {} 1358 UndefValue(const UndefValue &) = delete; 1361 static UndefValue *get(Type *T); 1365 UndefValue *getSequentialElement() const; 1369 UndefValue *getStructElement(unsigned Elt) const; 1373 UndefValue *getElementValue(Constant *C) const; 1376 UndefValue *getElementValue(unsigned Idx) const; 1395 class PoisonValue final : public UndefValue { [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 171 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 66 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 85 if (Element && isa<UndefValue>(Element)) { in foldConstVectorToAPInt() 224 if (Src && isa<UndefValue>(Src)) in FoldBitCast() 259 if (isa<UndefValue>(Element)) { in FoldBitCast() 261 Result.append(Ratio, UndefValue::get(DstEltTy)); in FoldBitCast() 430 if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) in ReadDataFromGlobal() 621 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr() 625 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr() 740 if (isa<UndefValue>(GV->getInitializer())) in ConstantFoldLoadFromConstPtr() 741 return UndefValue::get(Ty); in ConstantFoldLoadFromConstPtr() 1163 if (isa<UndefValue>(Incoming)) in ConstantFoldInstruction() [all …]
|
| H A D | Lint.cpp | 400 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 213 else if (isa<UndefValue>(Elt)) in getStructValueState() 361 if (!isa<UndefValue>(GV->getInitializer())) in trackValueOfGlobalVariable() 778 if (isa<UndefValue>(C)) in visitCastInst() 914 if (isa<UndefValue>(C)) in visitUnaryOperator() 951 if (isa<UndefValue>(C)) in visitBinaryOperator() 1001 if (isa<UndefValue>(C)) in visitCmpInst() 1046 if (isa<UndefValue>(C)) in visitGetElementPtrInst() 1126 if (isa<UndefValue>(C)) in visitLoadInst() 1176 if (isa<UndefValue>(C)) in handleCallOverdefined() 1490 if (isa<UndefValue>(BI->getCondition())) { in resolvedUndefsIn() [all …]
|
| H A D | PromoteMemoryToRegister.cpp | 402 ReplVal = UndefValue::get(LI->getType()); in rewriteSingleStoreAlloca() 494 LI->replaceAllUsesWith(UndefValue::get(LI->getType())); in promoteSingleBlockAlloca() 511 ReplVal = UndefValue::get(LI->getType()); in promoteSingleBlockAlloca() 648 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run() 675 A->replaceAllUsesWith(UndefValue::get(A->getType())); in run() 770 Value *UndefVal = UndefValue::get(SomePHI->getType()); in run()
|
| H A D | CallGraphUpdater.cpp | 37 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize() 52 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
|
| H A D | Local.cpp | 450 if (isa<UndefValue>(Arg)) in wouldInstructionBeTriviallyDead() 483 return C->isNullValue() || isa<UndefValue>(C); in wouldInstructionBeTriviallyDead() 577 Value *Undef = UndefValue::get(I->getType()); in replaceDbgUsesWithUndef() 619 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RecursivelyDeleteDeadPHINode() 733 if (NewVal == PN) NewVal = UndefValue::get(PN->getType()); in MergeBasicBlockIntoOnlyPred() 809 return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second); in CanMergeValues() 890 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock() 919 if (!isa<UndefValue>(V)) in gatherIncomingValuesToPhi() 935 if (!isa<UndefValue>(V)) continue; in replaceUndefValuesInPhi() 962 PN->setIncomingValue(i, UndefValue::get(PN->getType())); in replaceUndefValuesInPhi() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 212 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize() 644 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 659 Value *V = UndefValue::get(T); in unpackLoadToAggregate() 690 UndefValue::get(T), NewLoad, 0, Name)); in unpackLoadToAggregate() 708 Value *V = UndefValue::get(T); in unpackLoadToAggregate() 930 if (isa<UndefValue>(Op) || in canSimplifyNullLoadOrGEP() 984 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 987 return replaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() 1335 IC.replaceInstUsesWith(*LI, UndefValue::get(LI->getType())); in removeBitcastsFromLoadStoreOnMinMax() 1442 if (!isa<UndefValue>(Val)) in visitStoreInst() [all …]
|
| H A D | InstCombineVectorOps.cpp | 445 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 504 if (isa<UndefValue>(ScalarOp)) { // inserting undef into vector. in collectSingleShuffleElements() 594 new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), ExtendMask); in replaceExtractElements() 636 PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr); in collectShuffleElements() 1111 UndefValue *UndefVec = UndefValue::get(VecTy); in foldInsSequenceIntoSplat() 1159 return new ShuffleVectorInst(Op0, UndefValue::get(Op0->getType()), NewMask); in foldInsEltIntoSplat() 1330 Values[I] = UndefValue::get(InsElt.getType()->getElementType()); in foldConstantInsEltIntoShuffle() 1363 UndefValue *NewUndef = UndefValue::get(VecTy); in visitInsertElementInst() 1429 LR.second = UndefValue::get(LR.first->getType()); in visitInsertElementInst() 1637 return UndefValue::get(FixedVectorType::get(EltTy, Mask.size())); in evaluateInDifferentElementOrder() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 135 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/ |
| H A D | RandomIRBuilder.cpp | 127 Ptr = UndefValue::get(PointerType::get(V->getType(), 0)); in newSink() 149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType())); in findPointer()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A D | SjLjEHPrepare.cpp | 167 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 294 Arg.replaceAllUsesWith(UndefValue::get(Arg.getType())); in RemoveDeadArgumentsFromCallers() 315 CB->setArgOperand(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers() 965 CB.replaceAllUsesWith(UndefValue::get(CB.getType())); in RemoveDeadStuffFromFunction() 982 Value *RetVal = UndefValue::get(RetTy); in RemoveDeadStuffFromFunction() 1030 I->replaceAllUsesWith(UndefValue::get(I->getType())); in RemoveDeadStuffFromFunction() 1050 RetVal = UndefValue::get(NRetTy); in RemoveDeadStuffFromFunction()
|