Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / mlir / lib / Conversion / LLVMCommon / LoweringOptions.cpp
blob3ffbbafd0f23d0b7427028414416704cc9701d04
1 //===- LoweringOptions.cpp - Common config for lowering to LLVM ----------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "mlir/Conversion/LLVMCommon/LoweringOptions.h"
10 #include "mlir/IR/BuiltinTypes.h"
11 #include "mlir/Interfaces/DataLayoutInterfaces.h"
13 using namespace mlir;
15 mlir::LowerToLLVMOptions::LowerToLLVMOptions(MLIRContext *ctx)
16 : LowerToLLVMOptions(ctx, DataLayout()) {}
18 mlir::LowerToLLVMOptions::LowerToLLVMOptions(MLIRContext *ctx,
19 const DataLayout &dl) {
20 indexBitwidth = dl.getTypeSizeInBits(IndexType::get(ctx));