Skip to content

Commit 1f454ed

Browse files
authored
[RISCV] Fix TLSDESC comment. NFC (#79403)
Fix comment typos in #66915, and relocation type names related to the example in the psABI (riscv-non-isa/riscv-elf-psabi-doc#420).
1 parent c5d59fe commit 1f454ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6956,8 +6956,8 @@ SDValue RISCVTargetLowering::getTLSDescAddr(GlobalAddressSDNode *N,
69566956
// This generates the pattern (PseudoLA_TLSDESC sym), which expands to
69576957
//
69586958
// auipc tX, %tlsdesc_hi(symbol) // R_RISCV_TLSDESC_HI20(symbol)
6959-
// lw tY, tX, %tlsdesc_lo_load(label) // R_RISCV_TLSDESC_LOAD_LO12_I(label)
6960-
// addi a0, tX, %tlsdesc_lo_add(label) // R_RISCV_TLSDESC_ADD_LO12_I(label)
6959+
// lw tY, tX, %tlsdesc_load_lo(label) // R_RISCV_TLSDESC_LOAD_LO12(label)
6960+
// addi a0, tX, %tlsdesc_add_lo(label) // R_RISCV_TLSDESC_ADD_LO12(label)
69616961
// jalr t0, tY // R_RISCV_TLSDESC_CALL(label)
69626962
SDValue Addr = DAG.getTargetGlobalAddress(GV, DL, Ty, 0, 0);
69636963
return SDValue(DAG.getMachineNode(RISCV::PseudoLA_TLSDESC, DL, Ty, Addr), 0);

0 commit comments

Comments
 (0)