/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingPort.h | 70 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ argument 71 (InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV, \ 77 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ argument 78 (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \ 85 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ argument 86 __sync_bool_compare_and_swap(Ptr, OldV, NewV) 92 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \ argument 93 lprofBoolCmpXchg((void **)Ptr, OldV, NewV)
|
H A D | InstrProfilingUtil.h | 66 unsigned lprofBoolCmpXchg(void **Ptr, void *OldV, void *NewV);
|
H A D | InstrProfilingUtil.c | 95 uint32_t lprofBoolCmpXchg(void **Ptr, void *OldV, void *NewV) { in lprofBoolCmpXchg() argument 98 *Ptr = NewV; in lprofBoolCmpXchg()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | InferAddressSpaces.cpp | 229 Value *NewV) const; 370 Value *NewV) const { in rewriteIntrinsicOperands() 376 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands() 379 II->setArgOperand(0, NewV); in rewriteIntrinsicOperands() 388 Type *NewPtrTy = NewV->getType(); in rewriteIntrinsicOperands() 391 II->setArgOperand(0, NewV); in rewriteIntrinsicOperands() 397 Type *NewPtrTy = NewV->getType(); in rewriteIntrinsicOperands() 400 II->setArgOperand(1, NewV); in rewriteIntrinsicOperands() 405 Value *Rewrite = TTI->rewriteIntrinsicWithAddressSpace(II, OldV, NewV); in rewriteIntrinsicOperands() 792 Value *NewV = cloneInstructionWithNewAddressSpace( in cloneValueWithNewAddressSpace() local [all …]
|
H A D | Float2Int.cpp | 431 Value *NewV = nullptr; in convert() local 436 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], I->getType()); in convert() 440 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], I->getType()); in convert() 446 NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName()); in convert() 451 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], ToTy); in convert() 455 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], ToTy); in convert() 459 NewV = IRB.CreateNeg(NewOperands[0], I->getName()); in convert() 465 NewV = IRB.CreateBinOp(mapBinOpcode(I->getOpcode()), in convert() 473 I->replaceAllUsesWith(NewV); in convert() 475 ConvertedInsts[I] = NewV; in convert() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUAtomicOptimizer.cpp | 744 Value *NewV = nullptr; in optimizeAtomic() local 756 NewV = in optimizeAtomic() 762 NewV = buildReduction(B, ScanOp, NewV, Identity); in optimizeAtomic() 764 NewV = buildScan(B, ScanOp, NewV, Identity); in optimizeAtomic() 766 ExclScan = buildShiftRight(B, NewV, Identity); in optimizeAtomic() 771 NewV = B.CreateIntrinsic(Ty, Intrinsic::amdgcn_readlane, in optimizeAtomic() 772 {NewV, LastLaneIdx}); in optimizeAtomic() 775 NewV = B.CreateIntrinsic(Intrinsic::amdgcn_strict_wwm, Ty, NewV); in optimizeAtomic() 780 std::tie(ExclScan, NewV) = buildScanIteratively(B, ScanOp, Identity, V, I, in optimizeAtomic() 796 NewV = buildMul(B, V, Ctpop); in optimizeAtomic() [all …]
|
H A D | AMDGPUTargetTransformInfo.cpp | 1035 Value *NewV) const { in rewriteIntrinsicWithAddressSpace() 1042 unsigned NewAS = NewV->getType()->getPointerAddressSpace(); in rewriteIntrinsicWithAddressSpace() 1043 LLVMContext &Ctx = NewV->getType()->getContext(); in rewriteIntrinsicWithAddressSpace() 1050 unsigned NewAS = NewV->getType()->getPointerAddressSpace(); in rewriteIntrinsicWithAddressSpace() 1080 return B.CreateIntrinsic(Intrinsic::ptrmask, {NewV->getType(), MaskTy}, in rewriteIntrinsicWithAddressSpace() 1081 {NewV, MaskOp}); in rewriteIntrinsicWithAddressSpace() 1089 Type *SrcTy = NewV->getType(); in rewriteIntrinsicWithAddressSpace() 1096 II->setArgOperand(0, NewV); in rewriteIntrinsicWithAddressSpace()
|
H A D | AMDGPUTargetTransformInfo.h | 219 Value *NewV) const;
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | ValueList.h | 81 void replaceValueWithoutRAUW(unsigned ValNo, Value *NewV) { in replaceValueWithoutRAUW() argument 83 ValuePtrs[ValNo].first = NewV; in replaceValueWithoutRAUW()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | BasicAliasAnalysis.cpp | 285 CastedValue withValue(const Value *NewV, bool PreserveNonNeg) const { in withValue() 286 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits, in withValue() 291 CastedValue withZExtOfValue(const Value *NewV, bool ZExtNonNegative) const { in withZExtOfValue() 293 NewV->getType()->getPrimitiveSizeInBits(); in withZExtOfValue() 297 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withZExtOfValue() 306 return CastedValue(NewV, ZExtBits + SExtBits + ExtendBy, 0, 0, in withZExtOfValue() 311 CastedValue withSExtOfValue(const Value *NewV) const { in withSExtOfValue() 313 NewV->getType()->getPrimitiveSizeInBits(); in withSExtOfValue() 317 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withSExtOfValue() 324 return CastedValue(NewV, ZExtBits, SExtBits + ExtendBy, 0, IsNonNegative); in withSExtOfValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 350 if (Value *NewV = Materializer->materialize(const_cast<Value *>(V))) { in mapValue() local 351 getVM()[V] = NewV; in mapValue() 352 return NewV; in mapValue() 1101 Constant *NewV; in mapAppendingVariable() local 1107 NewV = ConstantStruct::get(cast<StructType>(EltTy), E1, E2, Null); in mapAppendingVariable() 1109 NewV = cast_or_null<Constant>(mapValue(V)); in mapAppendingVariable() 1111 Elements.push_back(NewV); in mapAppendingVariable()
|
H A D | SCCPSolver.cpp | 1514 ValueLatticeElement NewV; in visitBinaryOperator() local 1515 NewV.markConstant(C, /*MayIncludeUndef=*/true); in visitBinaryOperator() 1516 return (void)mergeInValue(&I, NewV); in visitBinaryOperator()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonLoopIdiomRecognition.cpp | 249 Value *subst(Value *Tree, Value *OldV, Value *NewV); 250 void replace(Value *OldV, Value *NewV); 396 Value *Simplifier::Context::subst(Value *Tree, Value *OldV, Value *NewV) { in subst() argument 398 return NewV; in subst() 399 if (OldV == NewV) in subst() 412 U->setOperand(i, NewV); in subst() 422 void Simplifier::Context::replace(Value *OldV, Value *NewV) { in replace() argument 424 Root = NewV; in replace() 436 Q.push_back(NewV); in replace() 444 NewV = subst(NewV, V, DupV); in replace() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86LowerAMXType.cpp | 880 Value *NewV = nullptr; in optimizeAMXCastFromPhi() local 884 NewV = ACI->getOperand(0); in optimizeAMXCastFromPhi() 886 NewV = NewPNodes[PrevPN]; in optimizeAMXCastFromPhi() 887 assert(NewV); in optimizeAMXCastFromPhi() 888 NewPN->addIncoming(NewV, OldPN->getIncomingBlock(j)); in optimizeAMXCastFromPhi()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ProgramState.cpp | 302 const llvm::APSInt &NewV = getBasicVals().Convert(T, *Int); in getSVal() local 305 return loc::ConcreteInt(NewV); in getSVal() 307 return nonloc::ConcreteInt(NewV); in getSVal()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | Attributor.cpp | 2432 auto ReplaceUse = [&](Use *U, Value *NewV) { in cleanupIR() argument 2437 const auto &Entry = ToBeChangedValues.lookup(NewV); in cleanupIR() 2440 NewV = get<0>(Entry); in cleanupIR() 2455 if (!isa<Argument>(NewV)) in cleanupIR() 2460 LLVM_DEBUG(dbgs() << "Use " << *NewV << " in " << *U->getUser() in cleanupIR() 2462 U->set(NewV); in cleanupIR() 2470 if (isa<UndefValue>(NewV) && isa<CallBase>(U->getUser())) { in cleanupIR() 2480 if (isa<Constant>(NewV) && isa<BranchInst>(U->getUser())) { in cleanupIR() 2482 if (isa<UndefValue>(NewV)) { in cleanupIR() 2492 Value *NewV = It.second; in cleanupIR() local [all …]
|
H A D | AttributorAttributes.cpp | 6193 if (const auto &NewV = VMap.lookup(&V)) in reproduceValue() local 6194 return NewV; in reproduceValue() 6209 if (Value *NewV = reproduceInst(A, QueryingAA, *I, Ty, CtxI, Check, VMap)) in reproduceValue() local 6210 return ensureType(A, *NewV, Ty, CtxI, Check); in reproduceValue() 6217 Value *NewV = SimplifiedAssociatedValue in manifestReplacementValue() local 6220 if (NewV && NewV != &getAssociatedValue()) { in manifestReplacementValue() 6224 if (reproduceValue(A, *this, *NewV, *getAssociatedType(), CtxI, in manifestReplacementValue() 6226 return reproduceValue(A, *this, *NewV, *getAssociatedType(), CtxI, in manifestReplacementValue() 6287 if (auto *NewV = manifestReplacementValue(A, IP)) { in manifest() local 6289 << " -> " << *NewV << " :: " << *this << "\n"); in manifest() [all …]
|
H A D | GlobalOpt.cpp | 755 static bool OptimizeAwayTrappingUsesOfValue(Value *V, Constant *NewV) { in OptimizeAwayTrappingUsesOfValue() argument 764 LI->setOperand(0, NewV); in OptimizeAwayTrappingUsesOfValue() 768 SI->setOperand(1, NewV); in OptimizeAwayTrappingUsesOfValue() 776 CB->setCalledOperand(NewV); in OptimizeAwayTrappingUsesOfValue() 782 CB->setArgOperand(i, NewV); in OptimizeAwayTrappingUsesOfValue() 792 CI, ConstantExpr::getAddrSpaceCast(NewV, CI->getType())); in OptimizeAwayTrappingUsesOfValue() 810 NewV, Idxs)); in OptimizeAwayTrappingUsesOfValue()
|
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
H A D | SandboxIR.cpp | 461 llvm::Value *NewV = in createCommon() local 463 if (auto *NewSI = dyn_cast<llvm::SelectInst>(NewV)) in createCommon() 465 assert(isa<llvm::Constant>(NewV) && "Expected constant"); in createCommon() 466 return Ctx.getOrCreateConstant(cast<llvm::Constant>(NewV)); in createCommon()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | NeonEmitter.cpp | 1226 Variable NewV(V.getType(), NewName + VariablePostfix); in emitArgumentReversal() local 1228 if (!NewV.getType().isVector() || NewV.getType().getNumElements() == 1) in emitArgumentReversal() 1231 OS << " " << NewV.getType().str() << " " << NewV.getName() << ";"; in emitArgumentReversal() 1232 emitReverseVariable(NewV, V); in emitArgumentReversal() 1233 V = NewV; in emitArgumentReversal()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCUDANV.cpp | 508 llvm::Instruction *NewV = in replaceManagedVar() local 518 NewInst->replaceUsesOfWith(OldV, NewV); in replaceManagedVar() 520 NewV = NewInst; in replaceManagedVar() 522 I->replaceUsesOfWith(OldV, NewV); in replaceManagedVar()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Value.cpp | 655 Value *NewV = cast<Operator>(V)->getOperand(0); in stripPointerCastsAndOffsets() local 656 if (!NewV->getType()->isPointerTy()) in stripPointerCastsAndOffsets() 658 V = NewV; in stripPointerCastsAndOffsets()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 2604 Value *NewV = nullptr; in optimizeBitCastFromPhi() local 2606 NewV = ConstantExpr::getBitCast(C, DestTy); in optimizeBitCastFromPhi() 2611 NewV = combineLoadToNewType(*LI, DestTy); in optimizeBitCastFromPhi() 2617 NewV = BCI->getOperand(0); in optimizeBitCastFromPhi() 2619 NewV = NewPNodes[PrevPN]; in optimizeBitCastFromPhi() 2621 assert(NewV); in optimizeBitCastFromPhi() 2622 NewPN->addIncoming(NewV, OldPN->getIncomingBlock(j)); in optimizeBitCastFromPhi()
|
H A D | InstCombineAndOrXor.cpp | 1304 Value *NewV = V1; in foldAndOrOfICmpsUsingRanges() local 1321 NewV = Builder.CreateAnd(NewV, ConstantInt::get(Ty, ~LowerDiff)); in foldAndOrOfICmpsUsingRanges() 1332 NewV = Builder.CreateAdd(NewV, ConstantInt::get(Ty, Offset)); in foldAndOrOfICmpsUsingRanges() 1333 return Builder.CreateICmp(NewPred, NewV, ConstantInt::get(Ty, NewC)); in foldAndOrOfICmpsUsingRanges() 4164 Value *NewV = LHS0; in foldXorOfICmps() local 4167 NewV = Builder.CreateAdd(NewV, ConstantInt::get(Ty, Offset)); in foldXorOfICmps() 4168 return Builder.CreateICmp(NewPred, NewV, in foldXorOfICmps()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfo.h | 501 Value *NewV) const; 1859 Value *NewV) const = 0; 2303 Value *NewV) const override { in rewriteIntrinsicWithAddressSpace() argument 2304 return Impl.rewriteIntrinsicWithAddressSpace(II, OldV, NewV); in rewriteIntrinsicWithAddressSpace()
|