Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSaveAndRestore.h24 SaveAndRestore(T &X) : X(X), OldValue(X) {} in SaveAndRestore()
25 SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) { X = NewValue; } in SaveAndRestore()
26 SaveAndRestore(T &X, T &&NewValue) : X(X), OldValue(std::move(X)) { in SaveAndRestore()
29 ~SaveAndRestore() { X = std::move(OldValue); } in ~SaveAndRestore()
30 const T &get() { return OldValue; } in get()
34 T OldValue; member
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h349 bool OldValue; variable
354 OldValue(P.InMessageExpression) { in InMessageExpressionRAIIObject()
359 InMessageExpression = OldValue; in ~InMessageExpressionRAIIObject()
365 OffsetOfKind OldValue; variable
369 : OffsetOfState(P.OffsetOfState), OldValue(P.OffsetOfState) { in OffsetOfStateRAIIObject()
373 ~OffsetOfStateRAIIObject() { OffsetOfState = OldValue; } in ~OffsetOfStateRAIIObject()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmem_map_fuchsia.cpp74 zx_handle_t OldValue = atomic_compare_exchange_strong( in getPlaceholderVmo() local
76 if (UNLIKELY(OldValue != ZX_HANDLE_INVALID)) { in getPlaceholderVmo()
80 Vmo = OldValue; in getPlaceholderVmo()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugProgramInstruction.cpp287 void DbgVariableRecord::replaceVariableLocationOp(Value *OldValue, in replaceVariableLocationOp() argument
292 bool DbgAssignAddrReplaced = isDbgAssign() && OldValue == getAddress(); in replaceVariableLocationOp()
297 auto OldIt = find(Locations, OldValue); in replaceVariableLocationOp()
361 for (Value *OldValue : location_ops()) { in setKillLocation()
362 if (!RemovedValues.insert(OldValue).second) in setKillLocation()
364 Value *Poison = PoisonValue::get(OldValue->getType()); in setKillLocation()
365 replaceVariableLocationOp(OldValue, Poison); in setKillLocation()
H A DIntrinsicInst.cpp121 void DbgVariableIntrinsic::replaceVariableLocationOp(Value *OldValue, in replaceVariableLocationOp() argument
126 auto ReplaceDbgAssignAddress = [this, OldValue, NewValue]() -> bool { in replaceVariableLocationOp()
128 if (!DAI || OldValue != DAI->getAddress()) in replaceVariableLocationOp()
138 auto OldIt = find(Locations, OldValue); in replaceVariableLocationOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnrollAndJam.cpp443 Value *OldValue = Phi.getIncomingValueForBlock(AftBlocksLast[It]); in UnrollAndJamLoop() local
444 assert(OldValue && "should have incoming edge from Aft[It]"); in UnrollAndJamLoop()
445 Value *NewValue = OldValue; in UnrollAndJamLoop()
446 if (Value *PrevValue = PrevItValueMap[OldValue]) in UnrollAndJamLoop()
468 Value *OldValue = Phi.getIncomingValue(b); in UnrollAndJamLoop() local
469 if (Value *LastValue = LastValueMap[OldValue]) in UnrollAndJamLoop()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DGOFF.h180 uint8_t OldValue) { in bits() argument
184 return (OldValue & ~Mask) | Value; in bits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWindowsSecureHotPatching.cpp415 Value *OldValue = C->getOperand(OpIndex); in rewriteGlobalVariablesInConstant() local
417 if (Constant *OldConstant = dyn_cast<Constant>(OldValue)) { in rewriteGlobalVariablesInConstant()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DIdentifierTable.h590 const bool OldValue; variable
594 : II(II), OldValue(II ? II->isPoisoned() : false) { in PoisonIdentifierRAIIObject()
601 II->setIsPoisoned(OldValue); in ~PoisonIdentifierRAIIObject()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp577 Value *OldValue = nullptr; in buildScanIteratively() local
579 OldValue = B.CreateIntrinsic(V->getType(), Intrinsic::amdgcn_writelane, in buildScanIteratively()
581 OldValuePhi->addIncoming(OldValue, ComputeLoop); in buildScanIteratively()
602 return {OldValue, NewAccumulator}; in buildScanIteratively()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DConstantEmitter.h177 bool OldValue; member
H A DCodeGenFunction.cpp178 auto OldValue = in ConstructorHelper() local
180 auto NewValue = OldValue & Value; in ConstructorHelper()
181 if (OldValue != NewValue) in ConstructorHelper()
H A DCGExprConstant.cpp1585 Abstract = saved.OldValue; in validateAndPopAbstract()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DPredicateExpander.cpp184 bool OldValue = shouldNegate(); in expandPredicateSequence() local
195 setNegatePredicate(OldValue); in expandPredicateSequence()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DCompiler.h674 : Ctx(Ctx), OldValue(Ctx->InitStackActive) { in InitStackScope()
678 ~InitStackScope() { this->Ctx->InitStackActive = OldValue; } in ~InitStackScope()
682 bool OldValue; variable
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp640 const ParmVarDecl *OldValue = D->getParamDecl(0); in create_OSAtomicCompareAndSwap() local
641 QualType OldValueTy = OldValue->getType(); in create_OSAtomicCompareAndSwap()
659 M.makeLvalueToRvalue(M.makeDeclRefExpr(OldValue), OldValueTy), in create_OSAtomicCompareAndSwap()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicInst.h317 LLVM_ABI void replaceVariableLocationOp(Value *OldValue, Value *NewValue,
359 for (Value *OldValue : location_ops()) { in setKillLocation()
360 if (!RemovedValues.insert(OldValue).second) in setKillLocation()
362 Value *Poison = PoisonValue::get(OldValue->getType()); in setKillLocation()
363 replaceVariableLocationOp(OldValue, Poison); in setKillLocation()
H A DDebugProgramInstruction.h425 LLVM_ABI void replaceVariableLocationOp(Value *OldValue, Value *NewValue,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.cpp825 ValueIDNum OldValue = VarLocs[MLoc.asU64()]; in clobberMloc() local
826 clobberMloc(MLoc, OldValue, Pos, MakeUndef); in clobberMloc()
831 void clobberMloc(LocIdx MLoc, ValueIDNum OldValue, in clobberMloc() argument
843 if (Loc.Value == OldValue) in clobberMloc()
852 recoverAsEntryValue(VarID, Prop, OldValue); in clobberMloc()
914 VarLocs[NewLoc->asU64()] = OldValue; in clobberMloc()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSTLExtras.h1870 OutputIt replace_copy(R &&Range, OutputIt Out, const T &OldValue,
1872 return std::replace_copy(adl_begin(Range), adl_end(Range), Out, OldValue,
1879 void replace(R &&Range, const T &OldValue, const T &NewValue) {
1880 std::replace(adl_begin(Range), adl_end(Range), OldValue, NewValue);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVN.cpp1087 SmallVectorImpl<AvailableValueInBlock> &ValuesPerBlock, Value *OldValue, in replaceValuesPerBlockEntry() argument
1090 if (V.AV.Val == OldValue) in replaceValuesPerBlockEntry()
1093 if (V.AV.V1 == OldValue) in replaceValuesPerBlockEntry()
1095 if (V.AV.V2 == OldValue) in replaceValuesPerBlockEntry()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp9265 Value *OldValue = Builder.CreateExtractValue(Result, /*Idxs=*/0); in createAtomicCompare() local
9267 OldValue = Builder.CreateBitCast(OldValue, X.ElemTy); in createAtomicCompare()
9268 assert(OldValue->getType() == V.ElemTy && in createAtomicCompare()
9271 Builder.CreateStore(OldValue, V.Var, V.IsVolatile); in createAtomicCompare()
9297 Builder.CreateStore(OldValue, V.Var); in createAtomicCompare()
9309 Builder.CreateSelect(SuccessOrFail, E, OldValue); in createAtomicCompare()
9366 AtomicRMWInst *OldValue = in createAtomicCompare() local
9371 CapturedValue = OldValue; in createAtomicCompare()
9396 Value *NonAtomicCmp = Builder.CreateCmp(Pred, OldValue, E); in createAtomicCompare()
9397 CapturedValue = Builder.CreateSelect(NonAtomicCmp, E, OldValue); in createAtomicCompare()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplate.cpp7376 llvm::APSInt OldValue = Value; in CheckTemplateArgument() local
7389 (OldValue.isSigned() && OldValue.isNegative())) { in CheckTemplateArgument()
7391 << toString(OldValue, 10) << toString(Value, 10) << Param->getType() in CheckTemplateArgument()
7399 RequiredBits = OldValue.getActiveBits(); in CheckTemplateArgument()
7400 else if (OldValue.isUnsigned()) in CheckTemplateArgument()
7401 RequiredBits = OldValue.getActiveBits() + 1; in CheckTemplateArgument()
7403 RequiredBits = OldValue.getSignificantBits(); in CheckTemplateArgument()
7406 << toString(OldValue, 10) << toString(Value, 10) << Param->getType() in CheckTemplateArgument()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h13591 bool OldValue; member
13594 : TI(TI), OldValue(TI.getEvaluateConstraints()) { in ConstraintEvalRAII()
13597 ~ConstraintEvalRAII() { TI.setEvaluateConstraints(OldValue); } in ~ConstraintEvalRAII()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp710 bool OldValue; member
712 : Frame(Frame), OldValue(Frame.CanEvalMSConstexpr) { in MSConstexprContextRAII()
716 ~MSConstexprContextRAII() { Frame.CanEvalMSConstexpr = OldValue; } in ~MSConstexprContextRAII()