History log of /external/clang/utils/ABITest/ABITestGen.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
176edba5311f6eff0cad2631449885ddf4fbc9ea 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master Clang for rebase to r222490.

Change-Id: Ic557ac55e97fbf6ee08771c7b7c3594777b0aefd
/external/clang/utils/ABITest/ABITestGen.py
e575359c34a9248c55ec0c03a8fc945f1ee4cb01 09-Sep-2013 Benjamin Kramer <benny.kra@googlemail.com> Fix constructor-related typos.

Noticed by Roman Divacky.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
7b1ab134383b0ecb1a3c9042e5da227e94c111ca 27-Sep-2010 Daniel Dunbar <daniel@zuster.org> utils/ABITest: Factor out type naming code slightly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114867 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
3d2fd8d4676494ff08b617ee2b3104780b04e4f3 27-Sep-2010 Daniel Dunbar <daniel@zuster.org> utils/ABITest: Tweak default bit-field types to cover some more interesting cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114866 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
3dbe0b76efdd33b2ba96a1fe532a52e5926e09a4 27-Sep-2010 Daniel Dunbar <daniel@zuster.org> utils/ABITest: Add a workaround for mismatches due to PR5579.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
1ca717b766163f0aecdebd5aa1d1fac91fcab8ec 27-Sep-2010 Daniel Dunbar <daniel@zuster.org> utils/ABITest: Add option to skip individual tests by index.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114864 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
aa74a1e49f7c4b89539830290f76fe2c3e97187f 02-Feb-2010 Douglas Gregor <dgregor@apple.com> Implement promotion for enumeration types.

WHAT!?!

It turns out that Type::isPromotableIntegerType() was not considering
enumeration types to be promotable, so we would never do the
promotion despite having properly computed the promotion type when the
enum was defined. Various operations on values of enum type just
"worked" because we could still compute the integer rank of an enum
type; the oddity, however, is that operations such as "add an enum and
an unsigned" would often have an enum result type (!). The bug
actually showed up as a spurious -Wformat diagnostic
(<rdar://problem/7595366>), but in theory it could cause miscompiles.

In this commit:
- Enum types with a promotion type of "int" or "unsigned int" are
promotable.
- Tweaked the computation of promotable types for enums
- For all of the ABIs, treat enum types the same way as their
underlying types (*not* their promotion types) for argument passing
and return values
- Extend the ABI tester with support for enumeration types



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
c6277a0a42f7fc4f1b5df6fb83c0af2f14245e9b 02-Feb-2010 Douglas Gregor <dgregor@apple.com> Include <stdlib.h>, so that we're sure to get atoi.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95095 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
77a1fe945b3d0f1efa22e9d36a8ea7e272dd93c2 10-Jul-2009 Eli Friedman <eli.friedman@gmail.com> Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75271 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
98a7170db80e43195068a2710088fd5532924c77 25-May-2009 Eli Friedman <eli.friedman@gmail.com> Some minor corrections: don't use offsetof on a bitfield, and cast
printf operands to long to suppress warnings.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72404 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
484c7cad9bf5caefd3b0912aa778457fd46c2804 09-May-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Improve test driver marginally, to allow running a specific
test index.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71295 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
48df17b8bfcd7a53f147ce00679a1b3976da179c 09-May-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Fix a bug in generating test values for structures w/ no
non-padding fields.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71273 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
238a31824070185d7f0dae1a6d8270ab69073309 08-May-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Move default set of test args into common makefile.

Also, tweak default list of bit-fields to try.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71246 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
6d52ca0d5c1e9c2cda94ea223da7acfe5945c8c2 08-May-2009 Daniel Dunbar <daniel@zuster.org> Add various other bits I use to run ABITest.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71201 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
122ed24b4f1ce0f7a3c37991932933ef8ced3a43 08-May-2009 Daniel Dunbar <daniel@zuster.org> Add to the house of cards that is ABITestGen.
- Support generating structures with bit-fields.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71192 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
ec1abb9bd70f67a0a93bb5c9ffeafc184cb551d0 02-Mar-2009 Daniel Dunbar <daniel@zuster.org> ABITestGen: Add v2i16 and v16f32 as default vector types to generate.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
0f1730d220cb76a90159a42acd050c4d44dc18d8 22-Feb-2009 Daniel Dunbar <daniel@zuster.org> ABITestGen: Use explicit list of vector types instead of just a list
of sizes. Turns out we don't care very much about vector types that
don't map to the hardware.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
9dd60b4526ccfab13cf0976999bf5f90b3423f43 18-Feb-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Add some checking of values for return types; useful for
catching internal consistency problems (esp. w/ reference compiler).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64847 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
e61e95fdcd2bdf6293becd96c343ab3635cc4a68 29-Jan-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Fix access to array test values.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
900ed55727a5dd2a59412df00ea1513b851cd49a 29-Jan-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Fix test value generation for unions.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
5ce61575adde60a826576446d2e9e953c54e1e99 28-Jan-2009 Daniel Dunbar <daniel@zuster.org> ABITest: Support --test-layout option for generating
size/alignment/offsetof based tests of types instead of calling
convention tests.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63167 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
550faa3a6bb394eaa4013fcff0582434f4e924af 26-Jan-2009 Daniel Dunbar <daniel@zuster.org> ABITestGen: Add generation of vector types.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63024 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py
a83fb8647bfca3aa9bd7049f817979f092244e83 15-Jan-2009 Daniel Dunbar <daniel@zuster.org> Add utils/ABITest, my ABI test generation tool.
- Mostly written as an entertaining exercise in enumerating large or
(countably, naturally) infinite sets. But hey, its useful too!

- Idea is to number all C-types so that the N-th type can quickly be
computed, with a good deal of flexibility about what types to
include, and taking some care so that the (N+1)-th type is
interestingly different from the N-th type. For example, using the
default generator, the 1,000,000-th function type is:
--
typedef _Complex int T0;
typedef char T1 __attribute__ ((vector_size (4)));
typedef int T2 __attribute__ ((vector_size (4)));
T2 fn1000000(T0 arg0, signed long long arg1, T1 arg2, T0 arg3);
--
and the 1,000,001-th type is:
--
typedef _Complex char T0;
typedef _Complex char T2;
typedef struct T1 { T2 field0; T2 field1; T2 field2; } T1;
typedef struct T3 { } T3;
unsigned short fn1000001(T0 arg0, T1 arg1, T3 arg2);
--

Computing the 10^1600-th type takes a little less than 1s. :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/utils/ABITest/ABITestGen.py