4 Commits

Author SHA1 Message Date
Changpeng Fang
4608686111 [clang][test] Fix LIT test failures for the following commit
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-08-09 18:23:18 -07:00
Nikita Popov
aae20a7421 [CodeGenOpenCL] Convert some tests to opaque pointers (NFC) 2023-01-05 10:57:30 +01:00
Nikita Popov
532dc62b90 [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC)
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-04-07 12:09:47 +02:00
Nikita Popov
18834dca2d [OpenCL] Mark kernel arguments as ABI aligned
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
2022-02-08 16:12:51 +01:00