-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Support TaskSequenceINTEL type as an extension type
- Loading branch information
1 parent
c9b017c
commit 91e9f2b
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// RUN: %clang_cc1 -triple spir64-unknown-unknown -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s | ||
|
||
// Test that SPIR-V codegen generates the expected LLVM struct name for the | ||
// TaskSequenceINTEL type. | ||
|
||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
namespace __spv { | ||
template <typename T> | ||
struct __spirv_TaskSequenceINTEL; | ||
} | ||
|
||
struct S { | ||
char c; | ||
float f; | ||
}; | ||
|
||
// CHECK: @_Z2f1{{.*}}(target("spirv.TaskSequenceINTEL", float) | ||
void f1(__spv::__spirv_TaskSequenceINTEL<float> *task_seq) {} | ||
|
||
// CHECK: @_Z2f2{{.*}}(target("spirv.TaskSequenceINTEL", i64) | ||
void f2(__spv::__spirv_TaskSequenceINTEL<uint64_t> *task_seq) {} | ||
|
||
// CHECK: @_Z2f3{{.*}}(target("spirv.TaskSequenceINTEL", i8) | ||
void f3(__spv::__spirv_TaskSequenceINTEL<char> *task_seq) {} | ||
|
||
// CHECK: @_Z2f4{{.*}}(target("spirv.TaskSequenceINTEL", i128) | ||
void f4(__spv::__spirv_TaskSequenceINTEL<_BitInt(128)> *task_seq) {} | ||
|
||
// CHECK: @_Z2f5{{.*}}(target("spirv.TaskSequenceINTEL", double) | ||
void f5(__spv::__spirv_TaskSequenceINTEL<double> *task_seq) {} | ||
|
||
// CHECK: @_Z2f6{{.*}}(target("spirv.TaskSequenceINTEL", %struct.S = type { i8, float }) | ||
void f6(__spv::__spirv_TaskSequenceINTEL<S> *task_seq) {} |