[all-commits] [llvm/llvm-project] 42ae7e: Ensure field-annotations on pointers properly matc...
Erich Keane via All-commits
all-commits at lists.llvm.org
Wed Sep 1 06:13:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 42ae7eb581ff6abf77524f4c9e4333262c95aa4b
https://github.com/llvm/llvm-project/commit/42ae7eb581ff6abf77524f4c9e4333262c95aa4b
Author: Erich Keane <erich.keane at intel.com>
Date: 2021-09-01 (Wed, 01 Sep 2021)
Changed paths:
M clang/lib/CodeGen/CodeGenFunction.cpp
A clang/test/CodeGenSYCL/field-annotate-addr-space.cpp
Log Message:
-----------
Ensure field-annotations on pointers properly match the AS of the field.
Discovered in SYCL, the field annotations were always cast to an i8*,
which is an invalid bitcast for a pointer type with an address space.
This patch makes sure that we create an intrinsic that takes a pointer
to the correct address-space and properly do our casts.
Differential Revision: https://reviews.llvm.org/D109003
More information about the All-commits
mailing list