[Flang][RISCV] Set vscale_range based off zvl*b (#77277)
[llvm-project.git] / flang / lib / Lower / LoweringOptions.cpp
blob9456abf0e8dea6898d1df509b7b6f5c95ae4cfcd
1 //===--- LoweringOptions.cpp ----------------------------------------------===//
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 //===----------------------------------------------------------------------===//
8 //
9 // Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
11 //===----------------------------------------------------------------------===//
13 #include "flang/Lower/LoweringOptions.h"
15 namespace Fortran::lower {
17 LoweringOptions::LoweringOptions() : MathOptions{} {
18 #define LOWERINGOPT(Name, Bits, Default) Name = Default;
19 #define ENUM_LOWERINGOPT(Name, Type, Bits, Default) set##Name(Default);
20 #include "flang/Lower/LoweringOptions.def"
23 } // namespace Fortran::lower