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 {
}
/// \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));
}
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;
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;
}
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)
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 << ", ";