Lines Matching refs:Fields
130 MDNode *MDBuilder::createTBAAStructNode(ArrayRef<TBAAStructField> Fields) { in createTBAAStructNode() argument
131 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode()
133 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructNode()
134 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode()
135 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode()
136 Vals[i * 3 + 2] = Fields[i].TBAA; in createTBAAStructNode()
144 StringRef Name, ArrayRef<std::pair<MDNode *, uint64_t>> Fields) { in createTBAAStructTypeNode() argument
145 SmallVector<Metadata *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode()
148 for (unsigned i = 0, e = Fields.size(); i != e; ++i) { in createTBAAStructTypeNode()
149 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode()
150 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second)); in createTBAAStructTypeNode()