Skip to content

Commit 7ceed02

Browse files
authored
Merge pull request llvm-mirror#8 from kzhuravl/memory-model-fixes
Memory model fixes
2 parents 64fe99d + 01a55f0 commit 7ceed02

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/Target/AMDGPU/AMDGPU.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ enum class AMDGPUSynchronizationScope : unsigned {
208208

209209
/// Synchronized with respect to image fence instruction executing in the same
210210
/// work-item.
211-
Image
211+
Image,
212+
213+
/// Unknown synchronization scope.
214+
Unknown
212215
};
213216

214217
#endif

lib/Target/AMDGPU/SIMemoryLegalizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace {
2828
class SIMemoryLegalizer final : public MachineFunctionPass {
2929
private:
3030
/// \brief Immediate for "vmcnt(0)".
31-
static constexpr unsigned Vmcnt0 = 0x7 << 4 | 0xF << 8;
31+
static const unsigned Vmcnt0;
3232

3333
/// \brief Target instruction info.
3434
const SIInstrInfo *TII;
@@ -106,6 +106,7 @@ class SIMemoryLegalizer final : public MachineFunctionPass {
106106

107107
INITIALIZE_PASS(SIMemoryLegalizer, DEBUG_TYPE, PASS_NAME, false, false)
108108

109+
const unsigned SIMemoryLegalizer::Vmcnt0 = 0x7 << 4 | 0xF << 8;
109110
char SIMemoryLegalizer::ID = 0;
110111
char &llvm::SIMemoryLegalizerID = SIMemoryLegalizer::ID;
111112

0 commit comments

Comments
 (0)