Skip to content

Commit 02cde65

Browse files
Rollup merge of rust-lang#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.
2 parents fdff278 + b4d64b7 commit 02cde65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustc_llvm/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ pub fn initialize_available_targets() {
331331
LLVMInitializeAArch64TargetMC,
332332
LLVMInitializeAArch64AsmPrinter,
333333
LLVMInitializeAArch64AsmParser);
334+
init_target!(llvm_component = "amdgpu",
335+
LLVMInitializeAMDGPUTargetInfo,
336+
LLVMInitializeAMDGPUTarget,
337+
LLVMInitializeAMDGPUTargetMC,
338+
LLVMInitializeAMDGPUAsmPrinter,
339+
LLVMInitializeAMDGPUAsmParser);
334340
init_target!(llvm_component = "mips",
335341
LLVMInitializeMipsTargetInfo,
336342
LLVMInitializeMipsTarget,

0 commit comments

Comments
 (0)