[clang] [compiler-rt] [llvm] [TargetLowering] Set the default `getCmpLibcallReturnType` to word size (PR #192441)
Alexander Richardson via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 14:56:59 PDT 2026
================
@@ -993,11 +993,25 @@ class LLVM_ABI TargetLoweringBase {
virtual EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
EVT VT) const;
+ /// Return the "preferred" register width on this target.
+ virtual unsigned getRegisterWidth(const DataLayout &DL) const {
----------------
arichardson wrote:
Probably easier to not add add this function and just inline the call to `DL.getAddressSizeInBits(0u);` in `getCmpLibcallReturnType`
https://github.com/llvm/llvm-project/pull/192441
More information about the cfe-commits
mailing list