9#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_AMDGPU_H
10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_AMDGPU_H
17#include "llvm/ADT/SmallString.h"
18#include "llvm/TargetParser/AMDGPUTargetParser.h"
29class LLVM_LIBRARY_VISIBILITY
Linker final :
public Tool {
36 const llvm::opt::ArgList &TCArgs,
37 const char *LinkingOutput)
const override;
41 const llvm::opt::ArgList &Args,
42 std::vector<StringRef> &Features);
45 llvm::opt::ArgStringList &CmdArgs);
74 const llvm::opt::ArgList &Args,
77 bool ShouldLinkDeviceLibs =
false);
89 llvm::opt::DerivedArgList *
90 TranslateArgs(
const llvm::opt::DerivedArgList &Args,
BoundArch BA,
94 addClangTargetOptions(
const llvm::opt::ArgList &DriverArgs,
95 llvm::opt::ArgStringList &CC1Args,
BoundArch BA,
98 AddClangSystemIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
99 llvm::opt::ArgStringList &CC1Args)
const override;
103 static bool getDefaultDenormsAreZeroForTarget(llvm::AMDGPU::GPUKind GPUKind);
105 llvm::DenormalMode getDefaultDenormalModeForType(
106 const llvm::opt::ArgList &DriverArgs,
const JobAction &JA,
107 const llvm::fltSemantics *FPType =
nullptr)
const override;
109 static bool isWave64(
const llvm::opt::ArgList &DriverArgs,
110 llvm::AMDGPU::GPUKind Kind);
123 getSystemGPUArchs(
const llvm::opt::ArgList &Args)
const override;
130 getDeviceLibs(
const llvm::opt::ArgList &Args,
BoundArch BA,
133 CXXStdlibType GetCXXStdlibType(
const llvm::opt::ArgList &Args)
const override;
135 void AddClangCXXStdlibIncludeArgs(
136 const llvm::opt::ArgList &Args,
137 llvm::opt::ArgStringList &CC1Args)
const override;
139 void AddIAMCUIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
140 llvm::opt::ArgStringList &CC1Args)
const override;
142 void AddHIPIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
143 llvm::opt::ArgStringList &CC1Args)
const override;
146 computeMSVCVersion(
const Driver *D,
147 const llvm::opt::ArgList &Args)
const override;
149 LTOKind getDefaultLTOMode()
const override;
153 getLTOMode(
const llvm::opt::ArgList &Args,
158 getCommonDeviceLibNames(
const llvm::opt::ArgList &DriverArgs,
159 llvm::StringRef TargetID, llvm::StringRef GPUArch,
181 StringRef
getGPUArch(
const llvm::opt::ArgList &DriverArgs)
const;
Compilation - A set of tasks to perform for a single driver invocation.
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
LTOKind
Describes the kind of LTO mode selected via -f(no-)?lto(=.*)? options.
SmallVector< InputInfo, 4 > InputInfoList
The JSON file list parser is used to communicate input to InstallAPI.
Represents a bound architecture for offload / multiple architecture compilation.