[all-commits] [llvm/llvm-project] f6e450: [ABI] Add DefaultTargetInfo for default argument/r...
Chaitanya via All-commits
all-commits at lists.llvm.org
Wed Sep 23 21:31:07 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f6e450004591ba4e13d137dc63b82da6b8de1cae
https://github.com/llvm/llvm-project/commit/f6e450004591ba4e13d137dc63b82da6b8de1cae
Author: Chaitanya <Krishna.Sankisa at amd.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
A llvm/include/llvm/ABI/DefaultTargetInfo.h
M llvm/include/llvm/ABI/TargetInfo.h
M llvm/lib/ABI/CMakeLists.txt
A llvm/lib/ABI/DefaultTargetInfo.cpp
M llvm/unittests/ABI/TargetInfoTest.cpp
Log Message:
-----------
[ABI] Add DefaultTargetInfo for default argument/return classification (#225009)
Summary:
- Introduce `DefaultTargetInfo`, the `llvm::abi` analogue of
`clang::CodeGen::DefaultABIInfo`.
- It provides self-consistent, non-ABI-specific argument/return
classification that targets without special rules can inherit and
delegate to.
Changes:
- `DefaultTargetInfo.h`: new `DefaultTargetInfo` class declaring
`classifyArgumentType`, `classifyReturnType`, and a `computeInfo`
override.
- `DefaultTargetInfo.cpp`: implement them mirroring classic
`DefaultABIInfo`.
- `TargetInfoTest.cpp`: exercise the classifiers through a minimal
`DefaultTargetInfo` subclass.
- Added `hasInt128Type()` and `getLongLongWidth()` hooks plus a
`getBitIntRegThreshold()` helper mirroring classic, and use it in both
`DefaultTargetInfo` classifiers.
Pre-requisite PRs : https://github.com/llvm/llvm-project/pull/225301
Relates to : https://github.com/llvm/llvm-project/issues/220471
Assisted by: claude opus 4.8
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list