Skip to content

Commit 7af14e5

Browse files
authored
[NFC][Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (#141192)
Also, remove redundant "." in feature descriptions.
1 parent 641b2a5 commit 7af14e5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5526,9 +5526,9 @@ def mlamcas : Flag<["-"], "mlamcas">, Group<m_loongarch_Features_Group>,
55265526
def mno_lamcas : Flag<["-"], "mno-lamcas">, Group<m_loongarch_Features_Group>,
55275527
HelpText<"Disable amcas[_db].{b/h/w/d}">;
55285528
def mld_seq_sa : Flag<["-"], "mld-seq-sa">, Group<m_loongarch_Features_Group>,
5529-
HelpText<"Do not generate load-load barrier instructions (dbar 0x700)">;
5529+
HelpText<"Do not generate same-address load-load barrier instructions (dbar 0x700)">;
55305530
def mno_ld_seq_sa : Flag<["-"], "mno-ld-seq-sa">, Group<m_loongarch_Features_Group>,
5531-
HelpText<"Generate load-load barrier instructions (dbar 0x700)">;
5531+
HelpText<"Generate same-address load-load barrier instructions (dbar 0x700)">;
55325532
def mdiv32 : Flag<["-"], "mdiv32">, Group<m_loongarch_Features_Group>,
55335533
HelpText<"Use div.w[u] and mod.w[u] instructions with input not sign-extended.">;
55345534
def mno_div32 : Flag<["-"], "mno-div32">, Group<m_loongarch_Features_Group>,

llvm/lib/Target/LoongArch/LoongArch.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,24 @@ def FeatureRelax
118118
// Floating point approximation operation
119119
def FeatureFrecipe
120120
: SubtargetFeature<"frecipe", "HasFrecipe", "true",
121-
"Support frecipe.{s/d} and frsqrte.{s/d} instructions.">;
121+
"Support frecipe.{s/d} and frsqrte.{s/d} instructions">;
122122
def HasFrecipe : Predicate<"Subtarget->hasFrecipe()">;
123123

124124
// Atomic memory swap and add instructions for byte and half word
125125
def FeatureLAM_BH
126126
: SubtargetFeature<"lam-bh", "HasLAM_BH", "true",
127-
"Support amswap[_db].{b/h} and amadd[_db].{b/h} instructions.">;
127+
"Support amswap[_db].{b/h} and amadd[_db].{b/h} instructions">;
128128
def HasLAM_BH : Predicate<"Subtarget->hasLAM_BH()">;
129129

130130
// Atomic memory compare and swap instructions for byte, half word, word and double word
131131
def FeatureLAMCAS
132132
: SubtargetFeature<"lamcas", "HasLAMCAS", "true",
133-
"Support amcas[_db].{b/h/w/d}.">;
133+
"Support amcas[_db].{b/h/w/d}">;
134134
def HasLAMCAS : Predicate<"Subtarget->hasLAMCAS()">;
135135

136136
def FeatureLD_SEQ_SA
137137
: SubtargetFeature<"ld-seq-sa", "HasLD_SEQ_SA", "true",
138-
"Don't use load-load barrier (dbar 0x700).">;
138+
"Don't use a same-address load-load barrier (dbar 0x700)">;
139139
def HasLD_SEQ_SA : Predicate<"Subtarget->hasLD_SEQ_SA()">;
140140

141141
// Assume div.w[u] and mod.w[u] can handle inputs that are not sign-extended.

0 commit comments

Comments
 (0)