Skip to content

Commit 983a275

Browse files
[AArch64] Update comment on GHC CC (llvm#72761)
Currently, there are a couple dead links in the comment surrounding the tablegen implementtion of the GHC calling convention in AArch64. There was some refactoring in GHC that moved things around. This patch fixes up the comment to match the current state of the repository to make it easier for future readers to reference the relevant documentation.
1 parent ee922e6 commit 983a275

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/lib/Target/AArch64/AArch64CallingConvention.td

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def CC_AArch64_DarwinPCS_ILP32_VarArg : CallingConv<[
333333
// The only documentation is the GHC source code, specifically the C header
334334
// file:
335335
//
336-
// https://github.com/ghc/ghc/blob/master/includes/stg/MachRegs.h
336+
// https://github.com/ghc/ghc/blob/master/rts/include/stg/MachRegs.h
337337
//
338338
// which defines the registers for the Spineless Tagless G-Machine (STG) that
339339
// GHC uses to implement lazy evaluation. The generic STG machine has a set of
@@ -344,8 +344,10 @@ def CC_AArch64_DarwinPCS_ILP32_VarArg : CallingConv<[
344344
//
345345
// https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/GeneratedCode
346346
//
347-
// The AArch64 register mapping is under the heading "The ARMv8/AArch64 ABI
348-
// register mapping".
347+
// The AArch64 register mapping is defined in the following header file:
348+
//
349+
// https://github.com/ghc/ghc/blob/master/rts/include/stg/MachRegs/arm64.h
350+
//
349351

350352
let Entry = 1 in
351353
def CC_AArch64_GHC : CallingConv<[

0 commit comments

Comments
 (0)