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
39 std::string abi;
40
43 std::vector<std::string> featuresAsWritten;
44
46 std::vector<int> disabledRealKinds;
47
49 std::vector<int> disabledIntegerKinds;
50
53
55 bool asmVerbose = false;
56
59 bool atomicRemoteMemory = false;
60 bool atomicFineGrainedMemory = false;
61};
62
63} // end namespace Fortran::frontend
64
65#endif
Options for controlling the target.
Definition TargetOptions.h:27
bool asmVerbose
Print verbose assembly.
Definition TargetOptions.h:55
bool EnableAIXExtendedAltivecABI
Extended Altivec ABI on AIX.
Definition TargetOptions.h:52
std::string abi
If given, the name of the target ABI to use.
Definition TargetOptions.h:39
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:46
bool atomicIgnoreDenormalMode
Atomic control options.
Definition TargetOptions.h:58
std::vector< std::string > featuresAsWritten
Definition TargetOptions.h:43
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:49