FLANG
TargetOptions.h
Go to the documentation of this file.
1//===--- TargetOptions.h ----------------------------------------*- C++ -*-===//
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//===----------------------------------------------------------------------===//
12//===----------------------------------------------------------------------===//
13//
14// Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
15//
16//===----------------------------------------------------------------------===//
17
18#ifndef FORTRAN_FRONTEND_TARGETOPTIONS_H
19#define FORTRAN_FRONTEND_TARGETOPTIONS_H
20
21#include <string>
22#include <vector>
23
24namespace Fortran::frontend {
25
28public:
30 std::string triple;
31
33 std::string cpu;
34
36 std::string cpuToTuneFor;
37
40 std::vector<std::string> featuresAsWritten;
41
43 std::vector<int> disabledRealKinds;
44
46 std::vector<int> disabledIntegerKinds;
47
50};
51
52} // end namespace Fortran::frontend
53
54#endif
Options for controlling the target.
Definition: TargetOptions.h:27
bool EnableAIXExtendedAltivecABI
Extended Altivec ABI on AIX.
Definition: TargetOptions.h:49
std::string cpuToTuneFor
If given, the name of the target CPU to tune code for.
Definition: TargetOptions.h:36
std::vector< int > disabledRealKinds
The real KINDs disabled for this target.
Definition: TargetOptions.h:43
std::vector< std::string > featuresAsWritten
Definition: TargetOptions.h:40
std::string triple
The name of the target triple to compile for.
Definition: TargetOptions.h:30
std::string cpu
If given, the name of the target CPU to generate code for.
Definition: TargetOptions.h:33
std::vector< int > disabledIntegerKinds
The integer KINDs disabled for this target.
Definition: TargetOptions.h:46