[all-commits] [llvm/llvm-project] af7c35: [LLVMABI] Introduce the QualTypeMapper (#174634)
Narayan via All-commits
all-commits at lists.llvm.org
Sun Mar 8 07:49:10 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af7c352fa38d49096888df6c99d010d274362aa6
https://github.com/llvm/llvm-project/commit/af7c352fa38d49096888df6c99d010d274362aa6
Author: Narayan <nsreekumar6 at gmail.com>
Date: 2026-03-08 (Sun, 08 Mar 2026)
Changed paths:
M clang/lib/CodeGen/CMakeLists.txt
A clang/lib/CodeGen/QualTypeMapper.cpp
A clang/lib/CodeGen/QualTypeMapper.h
Log Message:
-----------
[LLVMABI] Introduce the QualTypeMapper (#174634)
This PR introduces the `QualTypeMapper` class, which bridges Clang's
type system with the LLVM ABI type system introduced in
https://github.com/llvm/llvm-project/pull/158329.
The `QualTypeMapper` translates Clang `QualType` instances into their
corresponding LLVM ABI type representations, preserving all ABI-relevant
information while abstracting away frontend-specific details.
The mapper queries the `ASTContext` for layout information computed by
the frontend and uses the `TypeBuilder` API(from the above merged PR) to
construct the corresponding ABI types. This separation ensures that ABI
logic remains independent of frontend AST details while still having
access to all necessary type information.
This is a prerequisite for implementing target-specific ABI lowering, as
demonstrated in https://github.com/llvm/llvm-project/pull/140112
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