mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
[OperandBundles] Rename accessor, NFC
Rename getOperandBundle to getOperandBundleAt since that's more obvious. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e70403f197
commit
b88a543abb
@ -375,8 +375,8 @@ public:
|
||||
CALLSITE_DELEGATE_GETTER(getNumTotalBundleOperands());
|
||||
}
|
||||
|
||||
OperandBundleUse getOperandBundle(unsigned Index) const {
|
||||
CALLSITE_DELEGATE_GETTER(getOperandBundle(Index));
|
||||
OperandBundleUse getOperandBundleAt(unsigned Index) const {
|
||||
CALLSITE_DELEGATE_GETTER(getOperandBundleAt(Index));
|
||||
}
|
||||
|
||||
Optional<OperandBundleUse> getOperandBundle(StringRef Name) const {
|
||||
|
@ -1232,7 +1232,7 @@ public:
|
||||
}
|
||||
|
||||
/// \brief Return the operand bundle at a specific index.
|
||||
OperandBundleUse getOperandBundle(unsigned Index) const {
|
||||
OperandBundleUse getOperandBundleAt(unsigned Index) const {
|
||||
assert(Index < getNumOperandBundles() && "Index out of bounds!");
|
||||
return operandBundleFromBundleOpInfo(*(bundle_op_info_begin() + Index));
|
||||
}
|
||||
@ -1242,7 +1242,7 @@ public:
|
||||
unsigned countOperandBundlesOfType(StringRef Name) const {
|
||||
unsigned Count = 0;
|
||||
for (unsigned i = 0, e = getNumOperandBundles(); i != e; ++i)
|
||||
if (getOperandBundle(i).Tag == Name)
|
||||
if (getOperandBundleAt(i).Tag == Name)
|
||||
Count++;
|
||||
|
||||
return Count;
|
||||
@ -1256,7 +1256,7 @@ public:
|
||||
assert(countOperandBundlesOfType(Name) < 2 && "Precondition violated!");
|
||||
|
||||
for (unsigned i = 0, e = getNumOperandBundles(); i != e; ++i) {
|
||||
OperandBundleUse U = getOperandBundle(i);
|
||||
OperandBundleUse U = getOperandBundleAt(i);
|
||||
if (U.Tag == Name)
|
||||
return U;
|
||||
}
|
||||
|
@ -1738,7 +1738,7 @@ static void WriteOperandBundles(BitstreamWriter &Stream, ImmutableCallSite CS,
|
||||
LLVMContext &C = CS.getInstruction()->getContext();
|
||||
|
||||
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
|
||||
const auto &Bundle = CS.getOperandBundle(i);
|
||||
const auto &Bundle = CS.getOperandBundleAt(i);
|
||||
Record.push_back(C.getOperandBundleTagID(Bundle.Tag));
|
||||
|
||||
for (auto &Input : Bundle.Inputs)
|
||||
|
@ -2169,7 +2169,7 @@ void AssemblyWriter::writeOperandBundles(ImmutableCallSite CS) {
|
||||
|
||||
bool FirstBundle = true;
|
||||
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
|
||||
OperandBundleUse BU = CS.getOperandBundle(i);
|
||||
OperandBundleUse BU = CS.getOperandBundleAt(i);
|
||||
|
||||
if (!FirstBundle)
|
||||
Out << ", ";
|
||||
|
Loading…
Reference in New Issue
Block a user