diff options
author | Roy Jacobson <roi.jacobson1@gmail.com> | 2023-02-13 19:14:22 +0200 |
---|---|---|
committer | Roy Jacobson <roi.jacobson1@gmail.com> | 2023-02-13 19:16:23 +0200 |
commit | b6259eca16f6c923d87a1ca1d424931e37d6871a (patch) | |
tree | 519fb0b2cbd25f9f139ac6fb29e19809885ecdb5 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0c412fed360f491e2c33373ffae12e10574a2f0e (diff) | |
download | llvm-b6259eca16f6c923d87a1ca1d424931e37d6871a.zip llvm-b6259eca16f6c923d87a1ca1d424931e37d6871a.tar.gz llvm-b6259eca16f6c923d87a1ca1d424931e37d6871a.tar.bz2 |
[Clang] Export CanPassInRegisters as a type trait
While working on D140664, I thought it would be nice to be able to write tests
for parameter passing ABI. Currently we test this by dumping the AST and
matching the results which makes it hard to write new tests.
Adding this builtin will allow writing better ABI tests which
can help improve our coverage in this area.
While less useful, maybe some users would also find it useful for asserting
against pessimisations for their classes.
Reviewed By: erichkeane
Differential Revision: https://reviews.llvm.org/D141775
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions