summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenOpenCL/kernel-param-alignment.cl
AgeCommit message (Collapse)Author
2025-01-29[IR] Convert from nocapture to captures(none) (#123181)Nikita Popov
This PR removes the old `nocapture` attribute, replacing it with the new `captures` attribute introduced in #116990. This change is intended to be essentially NFC, replacing existing uses of `nocapture` with `captures(none)` without adding any new analysis capabilities. Making use of non-`none` values is left for a followup. Some notes: * `nocapture` will be upgraded to `captures(none)` by the bitcode reader. * `nocapture` will also be upgraded by the textual IR reader. This is to make it easier to use old IR files and somewhat reduce the test churn in this PR. * Helper APIs like `doesNotCapture()` will check for `captures(none)`. * MLIR import will convert `captures(none)` into an `llvm.nocapture` attribute. The representation in the LLVM IR dialect should be updated separately.
2023-08-09[clang][test] Fix LIT test failures for the following commitChangpeng Fang
commit c1803d5366c794ecade4e4ccd0013690a1976d49 (HEAD -> main, origin/main, origin/HEAD) Author: Changpeng Fang <changpeng.fang@amd.com> Date: Wed Aug 9 17:49:14 2023 -0700 [FunctionAttrs] Unconditionally perform argument attribute inference in the first function-attrs pass Differential Revision: https://reviews.llvm.org/D156397
2023-01-05[CodeGenOpenCL] Convert some tests to opaque pointers (NFC)Nikita Popov
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-08[OpenCL] Mark kernel arguments as ABI alignedNikita Popov
Following the discussion on D118229, this marks all pointer-typed kernel arguments as having ABI alignment, per section 6.3.5 of the OpenCL spec: > For arguments to a __kernel function declared to be a pointer to > a data type, the OpenCL compiler can assume that the pointee is > always appropriately aligned as required by the data type. Differential Revision: https://reviews.llvm.org/D118894