File tree 1 file changed +4
-0
lines changed
compiler/rustc_codegen_llvm/src
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -551,6 +551,8 @@ fn reg_to_llvm(reg: InlineAsmRegOrRegClass, layout: Option<&TyAndLayout<'_>>) ->
551
551
format ! ( "{{{}}}" , reg. name( ) )
552
552
}
553
553
}
554
+ // The constraints can be retrieved from
555
+ // https://llvm.org/docs/LangRef.html#supported-constraint-code-list
554
556
InlineAsmRegOrRegClass :: RegClass ( reg) => match reg {
555
557
InlineAsmRegClass :: AArch64 ( AArch64InlineAsmRegClass :: reg) => "r" ,
556
558
InlineAsmRegClass :: AArch64 ( AArch64InlineAsmRegClass :: vreg) => "w" ,
@@ -624,6 +626,8 @@ fn modifier_to_llvm(
624
626
reg : InlineAsmRegClass ,
625
627
modifier : Option < char > ,
626
628
) -> Option < char > {
629
+ // The modifiers can be retrieved from
630
+ // https://llvm.org/docs/LangRef.html#asm-template-argument-modifiers
627
631
match reg {
628
632
InlineAsmRegClass :: AArch64 ( AArch64InlineAsmRegClass :: reg) => modifier,
629
633
InlineAsmRegClass :: AArch64 ( AArch64InlineAsmRegClass :: vreg)
You can’t perform that action at this time.
0 commit comments