13 #ifndef LLVM_LIB_BITCODE_READER_VALUELIST_H 14 #define LLVM_LIB_BITCODE_READER_VALUELIST_H 29 std::vector<WeakTrackingVH> ValuePtrs;
36 std::vector<Type *> FullTypes;
45 using ResolveConstantsTy = std::vector<std::pair<Constant *, unsigned>>;
46 ResolveConstantsTy ResolveConstants;
51 unsigned RefsUpperBound;
60 assert(ResolveConstants.empty() &&
"Constants not resolved?");
64 unsigned size()
const {
return ValuePtrs.size(); }
70 ValuePtrs.emplace_back(V);
71 FullTypes.emplace_back(Ty);
75 assert(ResolveConstants.empty() &&
"Constants not resolved?");
81 assert(i < ValuePtrs.size());
90 bool empty()
const {
return ValuePtrs.empty(); }
93 assert(N <=
size() &&
"Invalid shrinkTo request!");
110 #endif // LLVM_LIB_BITCODE_READER_VALUELIST_H
This class represents lattice values for constants.
void shrinkTo(unsigned N)
Value * operator[](unsigned i) const
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
This is an important base class in LLVM.
void resolveConstantForwardRefs()
Once all constants are read, this method bulk resolves any forward references.
Constant * getConstantFwdRef(unsigned Idx, Type *Ty)
~BitcodeReaderValueList()
Align max(MaybeAlign Lhs, Align Rhs)
void assignValue(Value *V, unsigned Idx, Type *FullTy)
Value * getValueFwdRef(unsigned Idx, Type *Ty, Type **FullTy=nullptr)
BitcodeReaderValueList(LLVMContext &C, size_t RefsUpperBound)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
void push_back(Value *V, Type *Ty)