[compiler-rt] [llvm] [TargetLowering] Set the default `getCmpLibcallReturnType` to word size (PR #192441)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 06:03:03 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp,inc -- compiler-rt/lib/builtins/fp_compare_impl.inc compiler-rt/lib/builtins/int_types.h llvm/include/llvm/CodeGen/TargetLowering.h llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp llvm/lib/CodeGen/TargetLoweringBase.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.h llvm/lib/Target/AVR/AVRISelLowering.h llvm/lib/Target/MSP430/MSP430ISelLowering.h llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 3ff99fdd5..0eebd848d 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1959,7 +1959,8 @@ EVT TargetLoweringBase::getSetCCResultType(const DataLayout &DL, LLVMContext &,
   return getPointerTy(DL).SimpleTy;
 }
 
-MVT::SimpleValueType TargetLoweringBase::getCmpLibcallReturnType(const DataLayout &DL) const {
+MVT::SimpleValueType
+TargetLoweringBase::getCmpLibcallReturnType(const DataLayout &DL) const {
   return getPointerTy(DL).SimpleTy;
   // return MVT::iPTR; // By default, comparisons return a word-sized integer
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/192441


More information about the llvm-commits mailing list