[OperandBundles] Identify operand bundles with both their names and IDs

No code uses this functionality yet.  This change just exposes
information / structure that was already present.

llvm-svn: 252644
This commit is contained in:
Sanjoy Das
2015-11-10 20:13:15 +00:00
parent 33ec5dbe35
commit b9ca6dcc6b
4 changed files with 56 additions and 8 deletions

View File

@@ -1739,7 +1739,7 @@ static void WriteOperandBundles(BitstreamWriter &Stream, ImmutableCallSite CS,
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
const auto &Bundle = CS.getOperandBundleAt(i);
Record.push_back(C.getOperandBundleTagID(Bundle.Tag));
Record.push_back(C.getOperandBundleTagID(Bundle.getTagName()));
for (auto &Input : Bundle.Inputs)
PushValueAndType(Input, InstID, Record, VE);