summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/clear_cache.c
AgeCommit message (Collapse)Author
2022-12-12[Clang] Convert some tests to opaque pointers (NFC)Nikita Popov
These were tests where update_cc_test_checks.py was rerun after the conversion.
2022-04-07[OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC)Nikita Popov
This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
2022-02-15Use functions with prototypes when appropriate; NFCAaron Ballman
A significant number of our tests in C accidentally use functions without prototypes. This patch converts the function signatures to have a prototype for the situations where the test is not specific to K&R C declarations. e.g., void func(); becomes void func(void); This is the tenth batch of tests being updated (there are a significant number of other tests left to be updated).
2022-01-04[CodeGen] Add target triple to test (NFC)Nikita Popov
Exact IR may depend on target.
2022-01-04[ConstantFold] Remove unnecessary bounded index restrictionNikita Popov
The fold for merging a GEP of GEP into a single GEP currently bails if doing so would result in notional overindexing. The justification given in the comment above this check is dangerously incorrect: GEPs with notional overindexing are perfectly fine, and if some code treats them incorrectly, then that code is broken, not the GEP. Such a GEP might legally appear in source IR, so only preventing its creation cannot be sufficient. (The constant folder also ends up canonicalizing the GEP to remove the notional overindexing, but that's neither here nor there.) This check dates back to https://github.com/llvm/llvm-project/commit/bd4fef4a8939db18f39b108e19097b25e2c7c47a, and as far as I can tell the original issue this was trying to patch around has since been resolved. Differential Revision: https://reviews.llvm.org/D116587
2022-01-04[CodeGen] Regenerate test checks (NFC)Nikita Popov
Switch these tests to use update_cc_test_checks.py to simplify future updates.
2015-03-13Test case updates for explicit type parameter to the gep operatorDavid Blaikie
llvm-svn: 232187
2015-02-14Update test case to be compatible with auto-migration to new getelementptr ↵David Blaikie
syntax coming in the near future The first change won't touch GEPOperators such as these, but the update script only identifies them by the leading '(' after getelementptr or 'getelementptr inbounds', so update this test to at least have those features to allow auto-migrating. llvm-svn: 229198
2014-03-26Add support for __builtin___clear_cache in ClangRenato Golin
Adding the mapping between __builtin___clear_cache into @llvm.clear_cache llvm-svn: 204820