Home
last modified time | relevance | path

Searched refs:OldValue (Results 1 – 23 of 23) 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 Sema::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.cpp286 void DbgVariableRecord::replaceVariableLocationOp(Value *OldValue, in replaceVariableLocationOp() argument
291 bool DbgAssignAddrReplaced = isDbgAssign() && OldValue == getAddress(); in replaceVariableLocationOp()
296 auto OldIt = find(Locations, OldValue); in replaceVariableLocationOp()
360 for (Value *OldValue : location_ops()) { in setKillLocation()
361 if (!RemovedValues.insert(OldValue).second) in setKillLocation()
363 Value *Poison = PoisonValue::get(OldValue->getType()); in setKillLocation()
364 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.cpp440 Value *OldValue = Phi.getIncomingValueForBlock(AftBlocksLast[It]); in UnrollAndJamLoop() local
441 assert(OldValue && "should have incoming edge from Aft[It]"); in UnrollAndJamLoop()
442 Value *NewValue = OldValue; in UnrollAndJamLoop()
443 if (Value *PrevValue = PrevItValueMap[OldValue]) in UnrollAndJamLoop()
465 Value *OldValue = Phi.getIncomingValue(b); in UnrollAndJamLoop() local
466 if (Value *LastValue = LastValueMap[OldValue]) in UnrollAndJamLoop()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DGOFFObjectWriter.cpp35 uint8_t OldValue) { in bits() argument
43 return (OldValue & ~Mask) | Value; in bits()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DIdentifierTable.h582 const bool OldValue; variable
586 : II(II), OldValue(II ? II->isPoisoned() : false) { in PoisonIdentifierRAIIObject()
593 II->setIsPoisoned(OldValue); in ~PoisonIdentifierRAIIObject()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h620 : Ctx(Ctx), OldValue(Ctx->InitStackActive) { in InitStackScope()
624 ~InitStackScope() { this->Ctx->InitStackActive = OldValue; } in ~InitStackScope()
628 bool OldValue; variable
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DConstantEmitter.h177 bool OldValue; member
H A DCodeGenFunction.cpp176 auto OldValue = in ConstructorHelper() local
178 auto NewValue = OldValue & Value; in ConstructorHelper()
179 if (OldValue != NewValue) in ConstructorHelper()
H A DCGExprConstant.cpp1499 Abstract = saved.OldValue; in validateAndPopAbstract()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp595 Value *OldValue = nullptr; in buildScanIteratively() local
597 OldValue = B.CreateIntrinsic(V->getType(), Intrinsic::amdgcn_writelane, in buildScanIteratively()
599 OldValuePhi->addIncoming(OldValue, ComputeLoop); in buildScanIteratively()
620 return {OldValue, NewAccumulator}; in buildScanIteratively()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicInst.h315 void replaceVariableLocationOp(Value *OldValue, Value *NewValue,
349 for (Value *OldValue : location_ops()) { in setKillLocation()
350 if (!RemovedValues.insert(OldValue).second) in setKillLocation()
352 Value *Poison = PoisonValue::get(OldValue->getType()); in setKillLocation()
353 replaceVariableLocationOp(OldValue, Poison); in setKillLocation()
H A DDebugProgramInstruction.h411 void replaceVariableLocationOp(Value *OldValue, Value *NewValue,
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DPredicateExpander.cpp191 bool OldValue = shouldNegate(); in expandPredicateSequence() local
205 setNegatePredicate(OldValue); in expandPredicateSequence()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.cpp809 ValueIDNum OldValue = VarLocs[MLoc.asU64()]; in clobberMloc() local
810 clobberMloc(MLoc, OldValue, Pos, MakeUndef); in clobberMloc()
815 void clobberMloc(LocIdx MLoc, ValueIDNum OldValue, in clobberMloc() argument
827 if (Loc.Value == OldValue) in clobberMloc()
836 recoverAsEntryValue(VarID, Prop, OldValue); in clobberMloc()
898 VarLocs[NewLoc->asU64()] = OldValue; in clobberMloc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVN.cpp1009 SmallVectorImpl<AvailableValueInBlock> &ValuesPerBlock, Value *OldValue, in replaceValuesPerBlockEntry() argument
1012 if (V.AV.Val == OldValue) in replaceValuesPerBlockEntry()
1015 if (V.AV.V1 == OldValue) in replaceValuesPerBlockEntry()
1017 if (V.AV.V2 == OldValue) in replaceValuesPerBlockEntry()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp8032 Value *OldValue = Builder.CreateExtractValue(Result, /*Idxs=*/0); in createAtomicCompare() local
8034 OldValue = Builder.CreateBitCast(OldValue, X.ElemTy); in createAtomicCompare()
8035 assert(OldValue->getType() == V.ElemTy && in createAtomicCompare()
8038 Builder.CreateStore(OldValue, V.Var, V.IsVolatile); in createAtomicCompare()
8064 Builder.CreateStore(OldValue, V.Var); in createAtomicCompare()
8076 Builder.CreateSelect(SuccessOrFail, E, OldValue); in createAtomicCompare()
8133 AtomicRMWInst *OldValue = in createAtomicCompare() local
8138 CapturedValue = OldValue; in createAtomicCompare()
8163 Value *NonAtomicCmp = Builder.CreateCmp(Pred, OldValue, E); in createAtomicCompare()
8164 CapturedValue = Builder.CreateSelect(NonAtomicCmp, E, OldValue); in createAtomicCompare()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplate.cpp6911 llvm::APSInt OldValue = Value; in CheckTemplateArgument() local
6924 (OldValue.isSigned() && OldValue.isNegative())) { in CheckTemplateArgument()
6926 << toString(OldValue, 10) << toString(Value, 10) << Param->getType() in CheckTemplateArgument()
6934 RequiredBits = OldValue.getActiveBits(); in CheckTemplateArgument()
6935 else if (OldValue.isUnsigned()) in CheckTemplateArgument()
6936 RequiredBits = OldValue.getActiveBits() + 1; in CheckTemplateArgument()
6938 RequiredBits = OldValue.getSignificantBits(); in CheckTemplateArgument()
6941 << toString(OldValue, 10) << toString(Value, 10) << Param->getType() in CheckTemplateArgument()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSTLExtras.h1840 OutputIt replace_copy(R &&Range, OutputIt Out, const T &OldValue,
1842 return std::replace_copy(adl_begin(Range), adl_end(Range), Out, OldValue,
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h13313 bool OldValue; member
13316 : TI(TI), OldValue(TI.getEvaluateConstraints()) { in ConstraintEvalRAII()
13319 ~ConstraintEvalRAII() { TI.setEvaluateConstraints(OldValue); } in ~ConstraintEvalRAII()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp691 bool OldValue; member
693 : Frame(Frame), OldValue(Frame.CanEvalMSConstexpr) { in MSConstexprContextRAII()
697 ~MSConstexprContextRAII() { Frame.CanEvalMSConstexpr = OldValue; } in ~MSConstexprContextRAII()