Skip to content

Commit 33a4070

Browse files
authored
[SYCL][Fusion] Use builtin types for YAML support (#8020)
Fixes issue #8019 by using builtin types from the list of supported types in the LLVM YAML documentation. Signed-off-by: Lukas Sommer <[email protected]> Signed-off-by: Lukas Sommer <[email protected]>
1 parent a982a12 commit 33a4070

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl-fusion/common/include/Kernel.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515

1616
namespace jit_compiler {
1717

18-
using BinaryAddress = const unsigned char *;
18+
using BinaryAddress = const uint8_t *;
1919

2020
///
2121
/// Enumerate possible kinds of parameters.
2222
/// 1:1 correspondence with the definition in kernel_desc.hpp in the DPC++ SYCL
2323
/// runtime.
24-
enum class ParameterKind : unsigned {
24+
enum class ParameterKind : uint32_t {
2525
Accessor = 0,
2626
StdLayout = 1,
2727
Sampler = 2,
@@ -32,19 +32,19 @@ enum class ParameterKind : unsigned {
3232
};
3333

3434
/// Different binary formats supported as input to the JIT compiler.
35-
enum class BinaryFormat { INVALID, LLVM, SPIRV };
35+
enum class BinaryFormat : uint32_t { INVALID, LLVM, SPIRV };
3636

3737
/// Information about a device intermediate representation module (e.g., SPIR-V,
3838
/// LLVM IR) from DPC++.
3939
struct SYCLKernelBinaryInfo {
4040

4141
BinaryFormat Format = BinaryFormat::INVALID;
4242

43-
size_t AddressBits = 0;
43+
uint64_t AddressBits = 0;
4444

4545
BinaryAddress BinaryStart = nullptr;
4646

47-
size_t BinarySize = 0;
47+
uint64_t BinarySize = 0;
4848
};
4949

5050
///
@@ -61,7 +61,7 @@ struct SYCLKernelAttribute {
6161
AttributeValueList Values;
6262
};
6363

64-
enum ArgUsage : unsigned char {
64+
enum ArgUsage : uint8_t {
6565
// Used to indicate that an argument is not used by the kernel
6666
Unused = 0,
6767
// Used to indicate that an argument is used by the kernel

0 commit comments

Comments
 (0)