[llvm] [NFC] Fix a typo in comments (PR #152840)

Ben Shi via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 9 00:23:51 PDT 2025


https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/152840

None

>From b884cad0d66d5a870ff327e1b1c6e85e2c04af94 Mon Sep 17 00:00:00 2001
From: Ben Shi <bennshi at tencent.com>
Date: Sat, 9 Aug 2025 15:17:29 +0800
Subject: [PATCH] [NFC] Fix a typo in comments

---
 llvm/include/llvm/CodeGen/TargetLowering.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/llvm/include/llvm/CodeGen/TargetLowering.h b/llvm/include/llvm/CodeGen/TargetLowering.h
index 01f8fb5ed061f..172b01a649810 100644
--- a/llvm/include/llvm/CodeGen/TargetLowering.h
+++ b/llvm/include/llvm/CodeGen/TargetLowering.h
@@ -547,10 +547,10 @@ class LLVM_ABI TargetLoweringBase {
   // intermediate results in f32 precision and range.
   virtual bool softPromoteHalfType() const { return false; }
 
-  // Return true if, for soft-promoted half, the half type should be passed
-  // passed to and returned from functions as f32. The default behavior is to
-  // pass as i16. If soft-promoted half is not used, this function is ignored
-  // and values are always passed and returned as f32.
+  // Return true if, for soft-promoted half, the half type should be passed to
+  // and returned from functions as f32. The default behavior is to pass as
+  // i16. If soft-promoted half is not used, this function is ignored and
+  // values are always passed and returned as f32.
   virtual bool useFPRegsForHalfType() const { return false; }
 
   // There are two general methods for expanding a BUILD_VECTOR node:



More information about the llvm-commits mailing list