Skip to content

Commit

Permalink
fix clang-format complains
Browse files Browse the repository at this point in the history
  • Loading branch information
VyacheslavLevytskyy committed Nov 14, 2023
1 parent e573b6d commit 113b247
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/SPIRV/libSPIRV/SPIRVEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ template <> inline void SPIRVMap<SPIRVCapabilityKind, SPIRVCapVec>::init() {
ADD_VEC_INIT(internal::CapabilityJointMatrixPackedInt4ComponentTypeINTEL,
{internal::CapabilityJointMatrixINTEL});
ADD_VEC_INIT(internal::CapabilityCooperativeMatrixPrefetchINTEL,
{CapabilityCooperativeMatrixKHR});
{CapabilityCooperativeMatrixKHR});
}

template <> inline void SPIRVMap<SPIRVExecutionModelKind, SPIRVCapVec>::init() {
Expand Down
11 changes: 5 additions & 6 deletions lib/SPIRV/libSPIRV/SPIRVInstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ class SPIRVInstTemplateBase : public SPIRVInstruction {
return Operands;
}

virtual SPIRVValue *getOperand(unsigned I) {
return getOpValue(I);
}
virtual SPIRVValue *getOperand(unsigned I) { return getOpValue(I); }

bool hasExecScope() const { return SPIRV::hasExecScope(OpCode); }

Expand Down Expand Up @@ -400,12 +398,12 @@ class SPIRVMemoryAccess {
}
if (MemoryAccess[0] & MemoryAccessAliasScopeINTELMaskMask) {
assert(MemoryAccess.size() > MemAccessNumParam &&
"Aliasing operand is missing");
"Aliasing operand is missing");
AliasScopeInstID = MemoryAccess[MemAccessNumParam++];
}
if (MemoryAccess[0] & MemoryAccessNoAliasINTELMaskMask) {
assert(MemoryAccess.size() > MemAccessNumParam &&
"Aliasing operand is missing");
"Aliasing operand is missing");
NoAliasInstID = MemoryAccess[MemAccessNumParam];
}
}
Expand Down Expand Up @@ -3396,7 +3394,8 @@ class SPIRVJointMatrixINTELWorkItemInst : public SPIRVJointMatrixINTELInstBase {
_SPIRV_OP(JointMatrixGetElementCoord, true, 5)
#undef _SPIRV_OP

class SPIRVCooperativeMatrixPrefetchINTELInstBase : public SPIRVInstTemplateBase {
class SPIRVCooperativeMatrixPrefetchINTELInstBase
: public SPIRVInstTemplateBase {
protected:
std::optional<ExtensionID> getRequiredExtension() const override {
return ExtensionID::SPV_INTEL_joint_matrix;
Expand Down
5 changes: 1 addition & 4 deletions lib/SPIRV/libSPIRV/spirv_internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ enum InternalSourceLanguageNonSemanticDI {
ISourceLanguageCPP20 = 219,
};

enum InternalLinkageType {
ILTPrev = LinkageTypeMax - 2,
ILTInternal
};
enum InternalLinkageType { ILTPrev = LinkageTypeMax - 2, ILTInternal };

enum InternalOp {
IOpTypeTokenINTEL = 6113,
Expand Down

0 comments on commit 113b247

Please sign in to comment.