forked from OSchip/llvm-project
[OperandBundles] Rename accessor, NFC
Rename getOperandBundle to getOperandBundleAt since that's more obvious. llvm-svn: 252388
This commit is contained in:
parent
71fe81fd25
commit
54c3ca694a
|
@ -375,8 +375,8 @@ public:
|
||||||
CALLSITE_DELEGATE_GETTER(getNumTotalBundleOperands());
|
CALLSITE_DELEGATE_GETTER(getNumTotalBundleOperands());
|
||||||
}
|
}
|
||||||
|
|
||||||
OperandBundleUse getOperandBundle(unsigned Index) const {
|
OperandBundleUse getOperandBundleAt(unsigned Index) const {
|
||||||
CALLSITE_DELEGATE_GETTER(getOperandBundle(Index));
|
CALLSITE_DELEGATE_GETTER(getOperandBundleAt(Index));
|
||||||
}
|
}
|
||||||
|
|
||||||
Optional<OperandBundleUse> getOperandBundle(StringRef Name) const {
|
Optional<OperandBundleUse> getOperandBundle(StringRef Name) const {
|
||||||
|
|
|
@ -1232,7 +1232,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Return the operand bundle at a specific index.
|
/// \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!");
|
assert(Index < getNumOperandBundles() && "Index out of bounds!");
|
||||||
return operandBundleFromBundleOpInfo(*(bundle_op_info_begin() + Index));
|
return operandBundleFromBundleOpInfo(*(bundle_op_info_begin() + Index));
|
||||||
}
|
}
|
||||||
|
@ -1242,7 +1242,7 @@ public:
|
||||||
unsigned countOperandBundlesOfType(StringRef Name) const {
|
unsigned countOperandBundlesOfType(StringRef Name) const {
|
||||||
unsigned Count = 0;
|
unsigned Count = 0;
|
||||||
for (unsigned i = 0, e = getNumOperandBundles(); i != e; ++i)
|
for (unsigned i = 0, e = getNumOperandBundles(); i != e; ++i)
|
||||||
if (getOperandBundle(i).Tag == Name)
|
if (getOperandBundleAt(i).Tag == Name)
|
||||||
Count++;
|
Count++;
|
||||||
|
|
||||||
return Count;
|
return Count;
|
||||||
|
@ -1256,7 +1256,7 @@ public:
|
||||||
assert(countOperandBundlesOfType(Name) < 2 && "Precondition violated!");
|
assert(countOperandBundlesOfType(Name) < 2 && "Precondition violated!");
|
||||||
|
|
||||||
for (unsigned i = 0, e = getNumOperandBundles(); i != e; ++i) {
|
for (unsigned i = 0, e = getNumOperandBundles(); i != e; ++i) {
|
||||||
OperandBundleUse U = getOperandBundle(i);
|
OperandBundleUse U = getOperandBundleAt(i);
|
||||||
if (U.Tag == Name)
|
if (U.Tag == Name)
|
||||||
return U;
|
return U;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1738,7 +1738,7 @@ static void WriteOperandBundles(BitstreamWriter &Stream, ImmutableCallSite CS,
|
||||||
LLVMContext &C = CS.getInstruction()->getContext();
|
LLVMContext &C = CS.getInstruction()->getContext();
|
||||||
|
|
||||||
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
|
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));
|
Record.push_back(C.getOperandBundleTagID(Bundle.Tag));
|
||||||
|
|
||||||
for (auto &Input : Bundle.Inputs)
|
for (auto &Input : Bundle.Inputs)
|
||||||
|
|
|
@ -2169,7 +2169,7 @@ void AssemblyWriter::writeOperandBundles(ImmutableCallSite CS) {
|
||||||
|
|
||||||
bool FirstBundle = true;
|
bool FirstBundle = true;
|
||||||
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
|
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
|
||||||
OperandBundleUse BU = CS.getOperandBundle(i);
|
OperandBundleUse BU = CS.getOperandBundleAt(i);
|
||||||
|
|
||||||
if (!FirstBundle)
|
if (!FirstBundle)
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
|
|
Loading…
Reference in New Issue