[llvm] 9ed434a - [TLI] Bring isZExtFree declarations together. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 07:12:30 PDT 2023
Author: Simon Pilgrim
Date: 2023-03-16T14:12:15Z
New Revision: 9ed434a96edc388b75624509b5f59d6aa42c953f
URL: https://github.com/llvm/llvm-project/commit/9ed434a96edc388b75624509b5f59d6aa42c953f
DIFF: https://github.com/llvm/llvm-project/commit/9ed434a96edc388b75624509b5f59d6aa42c953f.diff
LOG: [TLI] Bring isZExtFree declarations together. NFC.
Don't spread them out over the header.
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 1489a1d3b2a06..606f5631cc85f 100644
--- a/llvm/include/llvm/CodeGen/TargetLowering.h
+++ b/llvm/include/llvm/CodeGen/TargetLowering.h
@@ -2846,6 +2846,13 @@ class TargetLoweringBase {
getApproximateEVTForLLT(ToTy, DL, Ctx));
}
+ /// Return true if zero-extending the specific node Val to type VT2 is free
+ /// (either because it's implicitly zero-extended such as ARM ldrb / ldrh or
+ /// because it's folded such as X86 zero-extending loads).
+ virtual bool isZExtFree(SDValue Val, EVT VT2) const {
+ return isZExtFree(Val.getValueType(), VT2);
+ }
+
/// Return true if sign-extension from FromTy to ToTy is cheaper than
/// zero-extension.
virtual bool isSExtCheaperThanZExt(EVT FromTy, EVT ToTy) const {
@@ -2931,13 +2938,6 @@ class TargetLoweringBase {
return false;
}
- /// Return true if zero-extending the specific node Val to type VT2 is free
- /// (either because it's implicitly zero-extended such as ARM ldrb / ldrh or
- /// because it's folded such as X86 zero-extending loads).
- virtual bool isZExtFree(SDValue Val, EVT VT2) const {
- return isZExtFree(Val.getValueType(), VT2);
- }
-
/// Return true if an fpext operation is free (for instance, because
/// single-precision floating-point numbers are implicitly extended to
/// double-precision).
More information about the llvm-commits
mailing list