[clang] 7af14e5 - [NFC][Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (#141192)
via cfe-commits
cfe-commits at lists.llvm.org
Sun May 25 19:53:21 PDT 2025
Author: Ami-zhang
Date: 2025-05-26T10:53:17+08:00
New Revision: 7af14e5118dcc308f32857f78886bbad12ff9e92
URL: https://github.com/llvm/llvm-project/commit/7af14e5118dcc308f32857f78886bbad12ff9e92
DIFF: https://github.com/llvm/llvm-project/commit/7af14e5118dcc308f32857f78886bbad12ff9e92.diff
LOG: [NFC][Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (#141192)
Also, remove redundant "." in feature descriptions.
Added:
Modified:
clang/include/clang/Driver/Options.td
llvm/lib/Target/LoongArch/LoongArch.td
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 82784c077212b..b66cc15e87b9f 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -5526,9 +5526,9 @@ def mlamcas : Flag<["-"], "mlamcas">, Group<m_loongarch_Features_Group>,
def mno_lamcas : Flag<["-"], "mno-lamcas">, Group<m_loongarch_Features_Group>,
HelpText<"Disable amcas[_db].{b/h/w/d}">;
def mld_seq_sa : Flag<["-"], "mld-seq-sa">, Group<m_loongarch_Features_Group>,
- HelpText<"Do not generate load-load barrier instructions (dbar 0x700)">;
+ HelpText<"Do not generate same-address load-load barrier instructions (dbar 0x700)">;
def mno_ld_seq_sa : Flag<["-"], "mno-ld-seq-sa">, Group<m_loongarch_Features_Group>,
- HelpText<"Generate load-load barrier instructions (dbar 0x700)">;
+ HelpText<"Generate same-address load-load barrier instructions (dbar 0x700)">;
def mdiv32 : Flag<["-"], "mdiv32">, Group<m_loongarch_Features_Group>,
HelpText<"Use div.w[u] and mod.w[u] instructions with input not sign-extended.">;
def mno_div32 : Flag<["-"], "mno-div32">, Group<m_loongarch_Features_Group>,
diff --git a/llvm/lib/Target/LoongArch/LoongArch.td b/llvm/lib/Target/LoongArch/LoongArch.td
index 1d3dc3342a192..39948b31fb9b9 100644
--- a/llvm/lib/Target/LoongArch/LoongArch.td
+++ b/llvm/lib/Target/LoongArch/LoongArch.td
@@ -118,24 +118,24 @@ def FeatureRelax
// Floating point approximation operation
def FeatureFrecipe
: SubtargetFeature<"frecipe", "HasFrecipe", "true",
- "Support frecipe.{s/d} and frsqrte.{s/d} instructions.">;
+ "Support frecipe.{s/d} and frsqrte.{s/d} instructions">;
def HasFrecipe : Predicate<"Subtarget->hasFrecipe()">;
// Atomic memory swap and add instructions for byte and half word
def FeatureLAM_BH
: SubtargetFeature<"lam-bh", "HasLAM_BH", "true",
- "Support amswap[_db].{b/h} and amadd[_db].{b/h} instructions.">;
+ "Support amswap[_db].{b/h} and amadd[_db].{b/h} instructions">;
def HasLAM_BH : Predicate<"Subtarget->hasLAM_BH()">;
// Atomic memory compare and swap instructions for byte, half word, word and double word
def FeatureLAMCAS
: SubtargetFeature<"lamcas", "HasLAMCAS", "true",
- "Support amcas[_db].{b/h/w/d}.">;
+ "Support amcas[_db].{b/h/w/d}">;
def HasLAMCAS : Predicate<"Subtarget->hasLAMCAS()">;
def FeatureLD_SEQ_SA
: SubtargetFeature<"ld-seq-sa", "HasLD_SEQ_SA", "true",
- "Don't use load-load barrier (dbar 0x700).">;
+ "Don't use a same-address load-load barrier (dbar 0x700)">;
def HasLD_SEQ_SA : Predicate<"Subtarget->hasLD_SEQ_SA()">;
// Assume div.w[u] and mod.w[u] can handle inputs that are not sign-extended.
More information about the cfe-commits
mailing list