[PATCH] D12456: [IR] Add operand bundles to CallInst and InvokeInst.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 16:24:18 PDT 2015


sanjoy created this revision.
sanjoy added reviewers: reames, chandlerc, majnemer, dexonsmith, JosephTremoulet, kmod.
sanjoy added a subscriber: llvm-commits.
sanjoy added a dependency: D12455: [IR] Teach `llvm::User` to co-allocate a descriptor..

This change teaches `CallInst`s and `InvokeInst`s to maintain a set of
operand bundles as part of its operands.  `CallInst`s and
`InvokeInst`s with operand bundles co-allocate some space before their
`Use` array to hold meta information
(`OperandBundleUser::BundleOpInfo`) about which of its operands are
part of an operand bundle.

The strings corresponding to the bundle tags are interned into
`LLVMContextImpl::BundleTagCache`.  We could reference count these if
needed, but right now I don't see any need to do so.

This change does not include any parsing / bitcode support.  That's
the next change.

Depends on D12455.

http://reviews.llvm.org/D12456

Files:
  include/llvm/IR/CallSite.h
  include/llvm/IR/InstrTypes.h
  include/llvm/IR/Instructions.h
  lib/IR/Instructions.cpp
  lib/IR/LLVMContextImpl.cpp
  lib/IR/LLVMContextImpl.h
  lib/IR/User.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12456.33488.patch
Type: text/x-patch
Size: 32703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/f180657c/attachment.bin>


More information about the llvm-commits mailing list