[Clang][Test] Fix tests after 5911a1d54bb4 (#36942)
Fix test failures after SYCL pulldown commit 0c2366081731, which brought
in
commit 5911a1d54bb4 \"[clang][SYCL] Enable 'offload-uniform-block' for
SYCL (#22005)\".
That commit enabled the offload_uniform_block option for SYCL by
pre-parsing
fsycl-is-device before setLangDefaults. This caused the compiler to
start
emitting the \"uniform-work-group-size\" attribute on SYCL functions,
and also
enabled the existing sycl-module-id code (from 623dc4d3e869) to start
adding
the \"sycl-module-id\" attribute to SYCL kernels.
The sycl-module-id attribute had been added to the compiler in an
earlier merge,
but wasn't being emitted until 5911a1d54bb4 fixed the initialization
order.
Tests fixed:
- function-attrs.cpp: Added \"sycl-module-id\" attribute to CHECK
patterns
- sycl-module-id.cpp: Split SATTR into KATTR and EATTR since kernel and
sycl_external now have different attribute sets (kernel has
sycl-module-id,
sycl_external has sycl-module-id + uniform-work-group-size)
- kernel-caller-entry-point.cpp: Added \"sycl-module-id\" to all kernel
attribute checks and removed obsolete %k.indirect_addr line from SPIRNV
checks (unrelated cleanup from earlier addrspacecast removal)
Jira: CMPLRLLVM-75557
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>