Lines Matching refs:Ops
63 SmallVector<Metadata *, 8> Ops; in createFunctionEntryCount() local
65 Ops.push_back(createString("synthetic_function_entry_count")); in createFunctionEntryCount()
67 Ops.push_back(createString("function_entry_count")); in createFunctionEntryCount()
68 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount()
73 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount()
75 return MDNode::get(Context, Ops); in createFunctionEntryCount()
101 SmallVector<Metadata *, 4> Ops; in createCallees() local
103 Ops.push_back(createConstant(F)); in createCallees()
104 return MDNode::get(Context, Ops); in createCallees()
110 SmallVector<Metadata *, 4> Ops; in createCallbackEncoding() local
113 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo))); in createCallbackEncoding()
116 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true))); in createCallbackEncoding()
119 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed))); in createCallbackEncoding()
121 return MDNode::get(Context, Ops); in createCallbackEncoding()
134 SmallVector<Metadata *, 4> Ops; in mergeCallbackEncodings() local
136 Ops.resize(NumExistingOps + 1); in mergeCallbackEncodings()
139 Ops[u] = ExistingCallbacks->getOperand(u); in mergeCallbackEncodings()
141 auto *OldCBCalleeIdxAsCM = cast<ConstantAsMetadata>(Ops[u]); in mergeCallbackEncodings()
149 Ops[NumExistingOps] = NewCB; in mergeCallbackEncodings()
150 return MDNode::get(Context, Ops); in mergeCallbackEncodings()
155 SmallVector<Metadata *, 4> Ops; in createRTTIPointerPrologue() local
156 Ops.push_back(createConstant(PrologueSig)); in createRTTIPointerPrologue()
157 Ops.push_back(createConstant(RTTI)); in createRTTIPointerPrologue()
158 return MDNode::get(Context, Ops); in createRTTIPointerPrologue()
162 SmallVector<Metadata *, 2> Ops; in createPCSections() local
166 Ops.push_back(createString(Sec)); in createPCSections()
175 Ops.push_back(MDNode::get(Context, AuxMDs)); in createPCSections()
179 return MDNode::get(Context, Ops); in createPCSections()
241 SmallVector<Metadata *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode() local
243 Ops[0] = createString(Name); in createTBAAStructTypeNode()
245 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode()
246 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second)); in createTBAAStructTypeNode()
248 return MDNode::get(Context, Ops); in createTBAAStructTypeNode()
276 SmallVector<Metadata *, 4> Ops(3 + Fields.size() * 3); in createTBAATypeNode() local
278 Ops[0] = Parent; in createTBAATypeNode()
279 Ops[1] = createConstant(ConstantInt::get(Int64, Size)); in createTBAATypeNode()
280 Ops[2] = Id; in createTBAATypeNode()
282 Ops[I * 3 + 3] = Fields[I].Type; in createTBAATypeNode()
283 Ops[I * 3 + 4] = createConstant(ConstantInt::get(Int64, Fields[I].Offset)); in createTBAATypeNode()
284 Ops[I * 3 + 5] = createConstant(ConstantInt::get(Int64, Fields[I].Size)); in createTBAATypeNode()
286 return MDNode::get(Context, Ops); in createTBAATypeNode()
341 SmallVector<Metadata *, 3> Ops(3); in createPseudoProbeDesc() local
342 Ops[0] = createConstant(ConstantInt::get(Int64Ty, GUID)); in createPseudoProbeDesc()
343 Ops[1] = createConstant(ConstantInt::get(Int64Ty, Hash)); in createPseudoProbeDesc()
344 Ops[2] = createString(FName); in createPseudoProbeDesc()
345 return MDNode::get(Context, Ops); in createPseudoProbeDesc()
351 SmallVector<Metadata *, 4> Ops(LLVMStats.size() * 2); in createLLVMStats() local
353 Ops[I * 2] = createString(LLVMStats[I].first); in createLLVMStats()
354 Ops[I * 2 + 1] = in createLLVMStats()
357 return MDNode::get(Context, Ops); in createLLVMStats()