From 6d74e096d868385441874346c0eab93bc405ebef Mon Sep 17 00:00:00 2001 From: Michal Sudwoj Date: Fri, 22 May 2020 18:16:57 +0200 Subject: [PATCH] Added comment on there being no predefined registers --- src/librustc_target/asm/nvptx.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_target/asm/nvptx.rs b/src/librustc_target/asm/nvptx.rs index cba069cd0542..43d16ae0f5d1 100644 --- a/src/librustc_target/asm/nvptx.rs +++ b/src/librustc_target/asm/nvptx.rs @@ -43,5 +43,7 @@ impl NvptxInlineAsmRegClass { } def_regs! { + // Registers in PTX are declared in the assembly. + // There are no predefined registers that one can use. Nvptx NvptxInlineAsmReg NvptxInlineAsmRegClass {} }