|
15 | 15 | #include "Arch/Sparc.h"
|
16 | 16 | #include "Arch/SystemZ.h"
|
17 | 17 | #include "Arch/X86.h"
|
| 18 | +#include "AMDGPU.h" |
18 | 19 | #include "CommonArgs.h"
|
19 | 20 | #include "Hexagon.h"
|
20 | 21 | #include "InputInfo.h"
|
@@ -278,23 +279,6 @@ static void getWebAssemblyTargetFeatures(const ArgList &Args,
|
278 | 279 | handleTargetFeaturesGroup(Args, Features, options::OPT_m_wasm_Features_Group);
|
279 | 280 | }
|
280 | 281 |
|
281 |
| -static void getAMDGPUTargetFeatures(const Driver &D, const ArgList &Args, |
282 |
| - std::vector<StringRef> &Features) { |
283 |
| - if (const Arg *dAbi = Args.getLastArg(options::OPT_mamdgpu_debugger_abi)) { |
284 |
| - StringRef value = dAbi->getValue(); |
285 |
| - if (value == "1.0") { |
286 |
| - Features.push_back("+amdgpu-debugger-insert-nops"); |
287 |
| - Features.push_back("+amdgpu-debugger-reserve-regs"); |
288 |
| - Features.push_back("+amdgpu-debugger-emit-prologue"); |
289 |
| - } else { |
290 |
| - D.Diag(diag::err_drv_clang_unsupported) << dAbi->getAsString(Args); |
291 |
| - } |
292 |
| - } |
293 |
| - |
294 |
| - handleTargetFeaturesGroup( |
295 |
| - Args, Features, options::OPT_m_amdgpu_Features_Group); |
296 |
| -} |
297 |
| - |
298 | 282 | static void getTargetFeatures(const ToolChain &TC, const llvm::Triple &Triple,
|
299 | 283 | const ArgList &Args, ArgStringList &CmdArgs,
|
300 | 284 | bool ForAS) {
|
@@ -347,7 +331,7 @@ static void getTargetFeatures(const ToolChain &TC, const llvm::Triple &Triple,
|
347 | 331 | break;
|
348 | 332 | case llvm::Triple::r600:
|
349 | 333 | case llvm::Triple::amdgcn:
|
350 |
| - getAMDGPUTargetFeatures(D, Args, Features); |
| 334 | + amdgpu::getAMDGPUTargetFeatures(D, Args, Features); |
351 | 335 | break;
|
352 | 336 | }
|
353 | 337 |
|
|
0 commit comments