[llvm] [CodeGen] Return an IR type from getCmpLibcallReturnType (NFC) (PR #227192)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 22:50:21 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-globalisel

Author: Kiroo (Chanung) (zlfn)

<details>
<summary>Changes</summary>

Refactor `getCmpLibcallReturnType()` to return an IR `IntegerType`, as suggested by @<!-- -->arsenm in #<!-- -->226813.

This hook is only overriden by AVR and MSP430, so only those two targets are changed.

---
Full diff: https://github.com/llvm/llvm-project/pull/227192.diff


5 Files Affected:

- (modified) llvm/include/llvm/CodeGen/TargetLowering.h (+5-5) 
- (modified) llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp (+1-1) 
- (modified) llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp (+1-1) 
- (modified) llvm/lib/Target/AVR/AVRISelLowering.h (+2-2) 
- (modified) llvm/lib/Target/MSP430/MSP430ISelLowering.h (+2-2) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list