//===- StructBuilder.cpp - Helper for building LLVM structs --------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/Conversion/LLVMCommon/StructBuilder.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/Dialect/LLVMIR/LLVMTypes.h" #include "mlir/IR/Builders.h" usingnamespacemlir; //===----------------------------------------------------------------------===// // StructBuilder implementation //===----------------------------------------------------------------------===// StructBuilder::StructBuilder(Value v) : … { … } Value StructBuilder::extractPtr(OpBuilder &builder, Location loc, unsigned pos) const { … } void StructBuilder::setPtr(OpBuilder &builder, Location loc, unsigned pos, Value ptr) { … }