Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/SPIRV/PreprocessMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void PreprocessMetadataBase::preprocessVectorComputeMetadata(Module *M,
.getAsInteger(0, NBarrierCnt);
EM.addOp()
.add(&F)
.add(spv::internal::ExecutionModeNamedBarrierCountINTEL)
.add(spv::ExecutionModeNamedBarrierCountINTEL)
.add(NBarrierCnt)
.done();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/SPIRV/SPIRVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4216,7 +4216,7 @@ bool SPIRVToLLVM::transVectorComputeMetadata(SPIRVFunction *BF) {
}

if (auto *EM =
BF->getExecutionMode(internal::ExecutionModeNamedBarrierCountINTEL)) {
BF->getExecutionMode(ExecutionModeNamedBarrierCountINTEL)) {
unsigned int NBarrierCnt = EM->getLiterals()[0];
Attribute Attr = Attribute::get(*Context, kVCMetadata::VCNamedBarrierCount,
std::to_string(NBarrierCnt));
Expand Down
2 changes: 1 addition & 1 deletion lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4560,7 +4560,7 @@ bool LLVMToSPIRVBase::transExecutionMode() {
break;
AddSingleArgExecutionMode(static_cast<ExecutionMode>(EMode));
} break;
case spv::internal::ExecutionModeNamedBarrierCountINTEL: {
case spv::ExecutionModeNamedBarrierCountINTEL: {
if (!BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_vector_compute))
break;
unsigned NBarrierCnt = 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/SPIRV/libSPIRV/SPIRVEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ void SPIRVExecutionMode::decode(std::istream &I) {
case ExecutionModeFloatingPointModeALTINTEL:
case ExecutionModeFloatingPointModeIEEEINTEL:
case ExecutionModeSharedLocalMemorySizeINTEL:
case internal::ExecutionModeNamedBarrierCountINTEL:
case ExecutionModeNamedBarrierCountINTEL:
case ExecutionModeSubgroupSize:
case ExecutionModeMaxWorkDimINTEL:
case ExecutionModeNumSIMDWorkitemsINTEL:
Expand Down
2 changes: 1 addition & 1 deletion lib/SPIRV/libSPIRV/SPIRVEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ template <> inline void SPIRVMap<SPIRVExecutionModeKind, SPIRVCapVec>::init() {
{internal::CapabilityFastCompositeINTEL});
ADD_VEC_INIT(internal::ExecutionModeStreamingInterfaceINTEL,
{CapabilityFPGAKernelAttributesINTEL});
ADD_VEC_INIT(internal::ExecutionModeNamedBarrierCountINTEL,
ADD_VEC_INIT(ExecutionModeNamedBarrierCountINTEL,
{CapabilityVectorComputeINTEL});
}

Expand Down
6 changes: 1 addition & 5 deletions lib/SPIRV/libSPIRV/spirv_internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ enum InternalFunctionControlMask { IFunctionControlOptNoneINTELMask = 0x10000 };

enum InternalExecutionMode {
IExecModeFastCompositeKernelINTEL = 6088,
IExecModeStreamingInterfaceINTEL = 6154,
IExecModeNamedBarrierCountINTEL = 6417
IExecModeStreamingInterfaceINTEL = 6154
};

enum InternalLoopControlMask { ILoopControlLoopCountINTELMask = 0x1000000 };
Expand Down Expand Up @@ -179,9 +178,6 @@ constexpr ExecutionMode ExecutionModeFastCompositeKernelINTEL =
constexpr ExecutionMode ExecutionModeStreamingInterfaceINTEL =
static_cast<ExecutionMode>(IExecModeStreamingInterfaceINTEL);

constexpr ExecutionMode ExecutionModeNamedBarrierCountINTEL =
static_cast<ExecutionMode>(IExecModeNamedBarrierCountINTEL);

static const LoopControlMask LoopControlLoopCountINTELMask =
static_cast<LoopControlMask>(ILoopControlLoopCountINTELMask);

Expand Down