Lines Matching refs:Vals
111 MDNode::MDNode(LLVMContext &C, ArrayRef<Value*> Vals, bool isFunctionLocal)
113 NumOperands = Vals.size();
122 new (Op) MDNodeOperand(Vals[i]);
215 MDNode *MDNode::getMDNode(LLVMContext &Context, ArrayRef<Value*> Vals,
224 for (unsigned i = 0; i != Vals.size(); ++i)
225 ID.AddPointer(Vals[i]);
236 for (unsigned i = 0; i != Vals.size(); ++i) {
237 Value *V = Vals[i];
254 void *Ptr = malloc(sizeof(MDNode) + Vals.size() * sizeof(MDNodeOperand));
255 N = new (Ptr) MDNode(Context, Vals, isFunctionLocal);
266 MDNode *MDNode::get(LLVMContext &Context, ArrayRef<Value*> Vals) {
267 return getMDNode(Context, Vals, FL_Unknown);
271 ArrayRef<Value*> Vals,
273 return getMDNode(Context, Vals, isFunctionLocal ? FL_Yes : FL_No);
276 MDNode *MDNode::getIfExists(LLVMContext &Context, ArrayRef<Value*> Vals) {
277 return getMDNode(Context, Vals, FL_Unknown, false);
280 MDNode *MDNode::getTemporary(LLVMContext &Context, ArrayRef<Value*> Vals) {
282 (MDNode *)malloc(sizeof(MDNode) + Vals.size() * sizeof(MDNodeOperand));
283 N = new (N) MDNode(Context, Vals, FL_No);