[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:
Sanjoy Das 2015-11-07 01:56:04 +00:00
parent e70403f197
commit b88a543abb
4 changed files with 7 additions and 7 deletions

View File

@ -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 {

View File

@ -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;
}

View File

@ -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)

View File

@ -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 << ", ";