mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
[Statepoint] Be consistent about using deopt naming [NFCI]
We'd called this "vm state" in the early days, but have long since standardized on calling it "deopt" in line with the operand bundle tag. Fix a few cases we'd missed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304607 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3310b59ffc
commit
b72c01108d
@ -228,24 +228,24 @@ public:
|
||||
return cast<ConstantInt>(NumVMSArgs)->getZExtValue();
|
||||
}
|
||||
|
||||
typename CallSiteTy::arg_iterator vm_state_begin() const {
|
||||
typename CallSiteTy::arg_iterator deopt_begin() const {
|
||||
auto I = gc_transition_args_end() + 1;
|
||||
assert((getCallSite().arg_end() - I) >= 0);
|
||||
return I;
|
||||
}
|
||||
typename CallSiteTy::arg_iterator vm_state_end() const {
|
||||
auto I = vm_state_begin() + getNumTotalVMSArgs();
|
||||
typename CallSiteTy::arg_iterator deopt_end() const {
|
||||
auto I = deopt_begin() + getNumTotalVMSArgs();
|
||||
assert((getCallSite().arg_end() - I) >= 0);
|
||||
return I;
|
||||
}
|
||||
|
||||
/// range adapter for vm state arguments
|
||||
iterator_range<arg_iterator> vm_state_args() const {
|
||||
return make_range(vm_state_begin(), vm_state_end());
|
||||
iterator_range<arg_iterator> deopt_operands() const {
|
||||
return make_range(deopt_begin(), deopt_end());
|
||||
}
|
||||
|
||||
typename CallSiteTy::arg_iterator gc_args_begin() const {
|
||||
return vm_state_end();
|
||||
return deopt_end();
|
||||
}
|
||||
typename CallSiteTy::arg_iterator gc_args_end() const {
|
||||
return getCallSite().arg_end();
|
||||
@ -289,8 +289,8 @@ public:
|
||||
(void)arg_end();
|
||||
(void)gc_transition_args_begin();
|
||||
(void)gc_transition_args_end();
|
||||
(void)vm_state_begin();
|
||||
(void)vm_state_end();
|
||||
(void)deopt_begin();
|
||||
(void)deopt_end();
|
||||
(void)gc_args_begin();
|
||||
(void)gc_args_end();
|
||||
}
|
||||
|
@ -818,7 +818,7 @@ SelectionDAGBuilder::LowerStatepoint(ImmutableStatepoint ISP,
|
||||
SI.GCTransitionArgs =
|
||||
ArrayRef<const Use>(ISP.gc_args_begin(), ISP.gc_args_end());
|
||||
SI.ID = ISP.getID();
|
||||
SI.DeoptState = ArrayRef<const Use>(ISP.vm_state_begin(), ISP.vm_state_end());
|
||||
SI.DeoptState = ArrayRef<const Use>(ISP.deopt_begin(), ISP.deopt_end());
|
||||
SI.StatepointFlags = ISP.getFlags();
|
||||
SI.NumPatchBytes = ISP.getNumPatchBytes();
|
||||
SI.EHPadBB = EHPadBB;
|
||||
|
@ -2094,9 +2094,9 @@ static bool insertParsePoints(Function &F, DominatorTree &DT,
|
||||
// live in the IR. We'll remove all of these when done.
|
||||
SmallVector<CallInst *, 64> Holders;
|
||||
|
||||
// Insert a dummy call with all of the arguments to the vm_state we'll need
|
||||
// for the actual safepoint insertion. This ensures reference arguments in
|
||||
// the deopt argument list are considered live through the safepoint (and
|
||||
// Insert a dummy call with all of the deopt operands we'll need for the
|
||||
// actual safepoint insertion as arguments. This ensures reference operands
|
||||
// in the deopt argument list are considered live through the safepoint (and
|
||||
// thus makes sure they get relocated.)
|
||||
for (CallSite CS : ToUpdate) {
|
||||
SmallVector<Value *, 64> DeoptValues;
|
||||
|
Loading…
Reference in New Issue
Block a user