[llvm] 018b0da - [NFC] Fix a typo in comments (#152840)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 9 18:29:32 PDT 2025


Author: Ben Shi
Date: 2025-08-10T09:29:28+08:00
New Revision: 018b0daccf7991e1f0cdcb17f8a76edf6caaa0d9

URL: https://github.com/llvm/llvm-project/commit/018b0daccf7991e1f0cdcb17f8a76edf6caaa0d9
DIFF: https://github.com/llvm/llvm-project/commit/018b0daccf7991e1f0cdcb17f8a76edf6caaa0d9.diff

LOG: [NFC] Fix a typo in comments (#152840)

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/TargetLowering.h

Removed: 
    


################################################################################
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