summaryrefslogtreecommitdiff
path: root/utils/ABITest
Commit message (Collapse)AuthorAge
* Fix constructor-related typos.Benjamin Kramer2013-09-09
| | | | | | Noticed by Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190311 91177308-0d34-0410-b5e6-96231b3b80d8
* utils/ABITest: Factor out type naming code slightly.Daniel Dunbar2010-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114867 91177308-0d34-0410-b5e6-96231b3b80d8
* utils/ABITest: Tweak default bit-field types to cover some more interesting ↵Daniel Dunbar2010-09-27
| | | | | | cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114866 91177308-0d34-0410-b5e6-96231b3b80d8
* utils/ABITest: Add a workaround for mismatches due to PR5579.Daniel Dunbar2010-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114865 91177308-0d34-0410-b5e6-96231b3b80d8
* utils/ABITest: Add option to skip individual tests by index.Daniel Dunbar2010-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114864 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement promotion for enumeration types.Douglas Gregor2010-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Include <stdlib.h>, so that we're sure to get atoi.Douglas Gregor2010-02-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95095 91177308-0d34-0410-b5e6-96231b3b80d8
* Whoops, did not mean to commit thisAnders Carlsson2009-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79201 91177308-0d34-0410-b5e6-96231b3b80d8
* Store the delete operator for delete expressions.Anders Carlsson2009-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79200 91177308-0d34-0410-b5e6-96231b3b80d8
* Whoops, did not mean to check this in.Anders Carlsson2009-07-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77022 91177308-0d34-0410-b5e6-96231b3b80d8
* More work on the constant struct builder. We now try to layout all constant ↵Anders Carlsson2009-07-25
| | | | | | structs but throw away the result. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77021 91177308-0d34-0410-b5e6-96231b3b80d8
* Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.Eli Friedman2009-07-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75271 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor build system changes to make ABITest work correctly on Linux.Eli Friedman2009-05-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72405 91177308-0d34-0410-b5e6-96231b3b80d8
* Some minor corrections: don't use offsetof on a bitfield, and cast Eli Friedman2009-05-25
| | | | | | | | printf operands to long to suppress warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72404 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Improve test driver marginally, to allow running a specificDaniel Dunbar2009-05-08
| | | | | | | test index. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71295 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Move more of the common Makefile bits into the commonDaniel Dunbar2009-05-08
| | | | | | | Makefile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71274 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Fix a bug in generating test values for structures w/ noDaniel Dunbar2009-05-08
| | | | | | | non-padding fields. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71273 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Move default set of test args into common makefile.Daniel Dunbar2009-05-08
| | | | | | | 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
* Add various other bits I use to run ABITest.Daniel Dunbar2009-05-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71201 91177308-0d34-0410-b5e6-96231b3b80d8
* Add to the house of cards that is ABITestGen.Daniel Dunbar2009-05-07
| | | | | | | - Support generating structures with bit-fields. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71192 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITestGen: Add v2i16 and v16f32 as default vector types to generate.Daniel Dunbar2009-03-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65810 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITestGen: Use explicit list of vector types instead of just a listDaniel Dunbar2009-02-22
| | | | | | | | 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
* ABITest: Add some checking of values for return types; useful forDaniel Dunbar2009-02-17
| | | | | | | 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
* Note some more things to integrate into ABITestDaniel Dunbar2009-02-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64846 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Makefile tweaksDaniel Dunbar2009-01-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63330 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Fix access to array test values.Daniel Dunbar2009-01-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63296 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Fix test value generation for unions.Daniel Dunbar2009-01-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63286 91177308-0d34-0410-b5e6-96231b3b80d8
* Use xcc (instead of clang directly).Daniel Dunbar2009-01-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63279 91177308-0d34-0410-b5e6-96231b3b80d8
* ABITest: Support --test-layout option for generatingDaniel Dunbar2009-01-28
| | | | | | | | 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
* ABITestGen: Add generation of vector types.Daniel Dunbar2009-01-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63024 91177308-0d34-0410-b5e6-96231b3b80d8
* Add simple make based harness for running ABI tests.Daniel Dunbar2009-01-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62916 91177308-0d34-0410-b5e6-96231b3b80d8
* Add utils/ABITest, my ABI test generation tool.Daniel Dunbar2009-01-15
- 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