diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-07-03 11:30:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-03 11:30:57 +0200 |
| commit | 7fa03fb511a0ee8c5abbe2e3ea545d0df02f5e41 (patch) | |
| tree | 960ce0c658e1c85fdf8ade5e523b5c77e13c6837 /src | |
| parent | 8fa9bfeb154e18b6a9caaabd1494fddea9d0d63a (diff) | |
| parent | b4d64b7b28038d7e4b0bc75f1d407d5382512996 (diff) | |
| download | rust-7fa03fb511a0ee8c5abbe2e3ea545d0df02f5e41.tar.gz rust-7fa03fb511a0ee8c5abbe2e3ea545d0df02f5e41.zip | |
Rollup merge of #51548 - DiamondLovesYou:amdgpu-target-machine, r=alexcrichton
Initialize LLVM's AMDGPU target machine, if available. Note this isn't useful, yet. More changes will be necessary to be able to actually codegen for this machine. As such, it is not enabled by default. This patch is on its own for the benefit of the reviewers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_llvm/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs index 07830d54d0c..741758cb954 100644 --- a/src/librustc_llvm/lib.rs +++ b/src/librustc_llvm/lib.rs @@ -331,6 +331,12 @@ pub fn initialize_available_targets() { LLVMInitializeAArch64TargetMC, LLVMInitializeAArch64AsmPrinter, LLVMInitializeAArch64AsmParser); + init_target!(llvm_component = "amdgpu", + LLVMInitializeAMDGPUTargetInfo, + LLVMInitializeAMDGPUTarget, + LLVMInitializeAMDGPUTargetMC, + LLVMInitializeAMDGPUAsmPrinter, + LLVMInitializeAMDGPUAsmParser); init_target!(llvm_component = "mips", LLVMInitializeMipsTargetInfo, LLVMInitializeMipsTarget, |
