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,
72 const llvm::opt::ArgList &Args,
75 bool ShouldLinkDeviceLibs =
false);
87 llvm::opt::DerivedArgList *
88 TranslateArgs(
const llvm::opt::DerivedArgList &Args,
BoundArch BA,
92 addClangTargetOptions(
const llvm::opt::ArgList &DriverArgs,
93 llvm::opt::ArgStringList &CC1Args,
BoundArch BA,
96 AddClangSystemIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
97 llvm::opt::ArgStringList &CC1Args)
const override;
101 static bool getDefaultDenormsAreZeroForTarget(llvm::AMDGPU::GPUKind GPUKind);
103 llvm::DenormalMode getDefaultDenormalModeForType(
104 const llvm::opt::ArgList &DriverArgs,
const JobAction &JA,
105 const llvm::fltSemantics *FPType =
nullptr)
const override;
107 static bool isWave64(
const llvm::opt::ArgList &DriverArgs,
108 llvm::AMDGPU::GPUKind Kind);
121 getSystemGPUArchs(
const llvm::opt::ArgList &Args)
const override;
128 getDeviceLibs(
const llvm::opt::ArgList &Args,
BoundArch BA,
131 CXXStdlibType GetCXXStdlibType(
const llvm::opt::ArgList &Args)
const override;
133 void AddClangCXXStdlibIncludeArgs(
134 const llvm::opt::ArgList &Args,
135 llvm::opt::ArgStringList &CC1Args)
const override;
137 void AddIAMCUIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
138 llvm::opt::ArgStringList &CC1Args)
const override;
140 void AddHIPIncludeArgs(
const llvm::opt::ArgList &DriverArgs,
141 llvm::opt::ArgStringList &CC1Args)
const override;
144 computeMSVCVersion(
const Driver *D,
145 const llvm::opt::ArgList &Args)
const override;
147 LTOKind getDefaultLTOMode()
const override;
151 getLTOMode(
const llvm::opt::ArgList &Args,
156 getCommonDeviceLibNames(
const llvm::opt::ArgList &DriverArgs,
157 llvm::StringRef TargetID, llvm::StringRef GPUArch,
179 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
Top level wrappers for InstallAPI frontend operations.
Represents a bound architecture for offload / multiple architecture compilation.