summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-09-24 01:00:49 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-09-24 01:00:49 +0000
commitb07fc572bdd21d5676f5f0ae8ab52d45718917e5 (patch)
tree52fbde0a6db31b67a68b3ec5e92842b4ee248b60 /llvm/lib/Transforms
parent3236c9ce4a0672b12f75959d3e048b1fc65c36f9 (diff)
downloadbcm5719-llvm-b07fc572bdd21d5676f5f0ae8ab52d45718917e5.tar.gz
bcm5719-llvm-b07fc572bdd21d5676f5f0ae8ab52d45718917e5.zip
[IR] Teach `llvm::User` to co-allocate a descriptor.
Summary: With this change, subclasses of `llvm::User` will be able to co-allocate a variable number of bytes (called a "descriptor") with the `llvm::User` instance. The co-allocated descriptor can later be accessed using `llvm::User::getDescriptor`. This will be used in later changes to implement operand bundles. This change steals one bit from `NumUserOperands`, but given that it is still 28 bits wide I don't think this will be a practical issue. This change does not allow allocating hung off uses with descriptors. This only for simplicity, not for any fundamental reason; and we can easily add this functionality later if needed. Reviewers: reames, chandlerc, dexonsmith, kmod, majnemer, pete, JosephTremoulet Subscribers: pete, sanjoy, llvm-commits Differential Revision: http://reviews.llvm.org/D12455 llvm-svn: 248453
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud