//===- LoweringOptions.h - Common config for lowering to LLVM ---*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// // // Provides a configuration shared by several conversions targeting the LLVM // dialect. // //===----------------------------------------------------------------------===// #ifndef MLIR_CONVERSION_LLVMCOMMON_LOWERINGOPTIONS_H #define MLIR_CONVERSION_LLVMCOMMON_LOWERINGOPTIONS_H #include "llvm/IR/DataLayout.h" namespace mlir { class DataLayout; class MLIRContext; /// Value to pass as bitwidth for the index type when the converter is expected /// to derive the bitwidth from the LLVM data layout. static constexpr unsigned kDeriveIndexBitwidthFromDataLayout = …; /// Options to control the LLVM lowering. The struct is used to share lowering /// options between passes, patterns, and type converter. class LowerToLLVMOptions { … }; } // namespace mlir #endif // MLIR_CONVERSION_LLVMCOMMON_LOWERINGOPTIONS_H