diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-06-21 13:59:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-06-21 13:59:01 +0000 |
commit | 3a0822f094b578157263e04114075ad7df81db41 (patch) | |
tree | bc48361fe2cd1ca5f93ac01b38b183774468fc79 /include/llvm/IR/Value.h | |
parent | 85d8b2bbe386bcfe669575d05b61482d7be07e5d (diff) | |
download | src-3a0822f094b578157263e04114075ad7df81db41.tar.gz src-3a0822f094b578157263e04114075ad7df81db41.zip |
Vendor import of llvm trunk r240225:vendor/llvm/llvm-trunk-r240225
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=284677
svn path=/vendor/llvm/llvm-trunk-r240225/; revision=284678; tag=vendor/llvm/llvm-trunk-r240225
Diffstat (limited to 'include/llvm/IR/Value.h')
-rw-r--r-- | include/llvm/IR/Value.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/IR/Value.h b/include/llvm/IR/Value.h index 19a1d6cd91da..6b36ba6debfb 100644 --- a/include/llvm/IR/Value.h +++ b/include/llvm/IR/Value.h @@ -100,10 +100,15 @@ protected: /// This is stored here to save space in User on 64-bit hosts. Since most /// instances of Value have operands, 32-bit hosts aren't significantly /// affected. - unsigned NumOperands : 30; + /// + /// Note, this should *NOT* be used directly by any class other than User. + /// User uses this value to find the Use list. + static const unsigned NumUserOperandsBits = 29; + unsigned NumUserOperands : 29; bool IsUsedByMD : 1; bool HasName : 1; + bool HasHungOffUses : 1; private: template <typename UseT> // UseT == 'Use' or 'const Use' @@ -711,6 +716,6 @@ inline LLVMValueRef *wrap(const Value **Vals) { return reinterpret_cast<LLVMValueRef*>(const_cast<Value**>(Vals)); } -} // End llvm namespace +} // namespace llvm #endif |