Skip to content

Commit f8a2e49

Browse files
author
Artem Gindinson
authored
[NFC] Move FPGA memory access enum definition (#1080)
Since there's a dedicated `// Enums` section in the `OCLUtil.h` header, move the enum definition there. Signed-off-by: Artem Gindinson <[email protected]>
1 parent 348d3cf commit f8a2e49

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/SPIRV/OCLUtil.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ enum OCLMemOrderKind {
101101
OCLMO_seq_cst = std::memory_order::memory_order_seq_cst
102102
};
103103

104+
enum IntelFPGAMemoryAccessesVal {
105+
BurstCoalesce = 0x1,
106+
CacheSizeFlag = 0x2,
107+
DontStaticallyCoalesce = 0x4,
108+
PrefetchFlag = 0x8
109+
};
110+
104111
///////////////////////////////////////////////////////////////////////////////
105112
//
106113
// Types
@@ -311,13 +318,6 @@ const OCLMemOrderKind OCLLegacyAtomicMemOrder = OCLMO_relaxed;
311318
/// OCL 1.x atomic memory scope when translated to 2.0 atomics.
312319
const OCLScopeKind OCLLegacyAtomicMemScope = OCLMS_work_group;
313320

314-
enum IntelFPGAMemoryAccessesVal {
315-
BurstCoalesce = 0x1,
316-
CacheSizeFlag = 0x2,
317-
DontStaticallyCoalesce = 0x4,
318-
PrefetchFlag = 0x8
319-
};
320-
321321
namespace kOCLVer {
322322
const unsigned CL12 = 102000;
323323
const unsigned CL20 = 200000;

0 commit comments

Comments
 (0)