Skip to content

[SPIR-V] Remove FuncParamKindINTEL and FuncParamDescINTEL #3462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 0 additions & 12 deletions llvm-spirv/lib/SPIRV/SPIRVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4124,20 +4124,8 @@ bool SPIRVToLLVM::transVectorComputeMetadata(SPIRVFunction *BF) {
std::to_string(Kind));
F->addAttribute(ArgNo + 1, Attr);
}
if (BA->hasDecorate(DecorationFuncParamKindINTEL, 0, &Kind)) {
Attribute Attr = Attribute::get(*Context, kVCMetadata::VCArgumentKind,
std::to_string(Kind));
F->addAttribute(ArgNo + 1, Attr);
}
if (BA->hasDecorate(DecorationSingleElementVectorINTEL))
F->addAttribute(ArgNo + 1, SEVAttr);
if (BA->hasDecorate(DecorationFuncParamDescINTEL)) {
auto Desc =
BA->getDecorationStringLiteral(DecorationFuncParamDescINTEL).front();
Attribute Attr =
Attribute::get(*Context, kVCMetadata::VCArgumentDesc, Desc);
F->addAttribute(ArgNo + 1, Attr);
}
}

// Do not add float control if there is no any
Expand Down
13 changes: 0 additions & 13 deletions llvm-spirv/lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,19 +687,6 @@ void LLVMToSPIRV::transVectorComputeMetadata(Function *F) {
"This decoration is valid only for Scalar or Pointer types");
BA->addDecorate(DecorationSingleElementVectorINTEL);
}
if (Attrs.hasAttribute(ArgNo + 1, kVCMetadata::VCArgumentKind)) {
SPIRVWord Kind;
Attrs.getAttribute(ArgNo + 1, kVCMetadata::VCArgumentKind)
.getValueAsString()
.getAsInteger(0, Kind);
BA->addDecorate(DecorationFuncParamKindINTEL, Kind);
}
if (Attrs.hasAttribute(ArgNo + 1, kVCMetadata::VCArgumentDesc)) {
StringRef Desc =
Attrs.getAttribute(ArgNo + 1, kVCMetadata::VCArgumentDesc)
.getValueAsString();
BA->addDecorate(new SPIRVDecorateFuncParamDescAttr(BA, Desc.str()));
}
}
if (!isKernel(F) &&
BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_float_controls2) &&
Expand Down
2 changes: 0 additions & 2 deletions llvm-spirv/lib/SPIRV/VectorComputeUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ const static char VCGlobalVariable[] = "VCGlobalVariable";
const static char VCVolatile[] = "VCVolatile";
const static char VCByteOffset[] = "VCByteOffset";
const static char VCSIMTCall[] = "VCSIMTCall";
const static char VCArgumentKind[] = "VCArgumentKind";
const static char VCArgumentDesc[] = "VCArgumentDesc";
const static char VCCallable[] = "VCCallable";
const static char VCSingleElementVector[] = "VCSingleElementVector";
const static char VCFCEntry[] = "VCFCEntry";
Expand Down
12 changes: 0 additions & 12 deletions llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ void SPIRVDecorate::encode(spv_ostream &O) const {
case DecorationUserSemantic:
SPIRVDecorateUserSemanticAttr::encodeLiterals(Encoder, Literals);
break;
case DecorationFuncParamDescINTEL:
SPIRVDecorateFuncParamDescAttr::encodeLiterals(Encoder, Literals);
break;
default:
Encoder << Literals;
}
Expand All @@ -142,9 +139,6 @@ void SPIRVDecorate::decode(std::istream &I) {
case DecorationUserSemantic:
SPIRVDecorateUserSemanticAttr::decodeLiterals(Decoder, Literals);
break;
case DecorationFuncParamDescINTEL:
SPIRVDecorateFuncParamDescAttr::decodeLiterals(Decoder, Literals);
break;
default:
Decoder >> Literals;
}
Expand All @@ -164,9 +158,6 @@ void SPIRVMemberDecorate::encode(spv_ostream &O) const {
case DecorationUserSemantic:
SPIRVDecorateUserSemanticAttr::encodeLiterals(Encoder, Literals);
break;
case DecorationFuncParamDescINTEL:
SPIRVDecorateFuncParamDescAttr::encodeLiterals(Encoder, Literals);
break;
default:
Encoder << Literals;
}
Expand All @@ -190,9 +181,6 @@ void SPIRVMemberDecorate::decode(std::istream &I) {
case DecorationUserSemantic:
SPIRVDecorateUserSemanticAttr::decodeLiterals(Decoder, Literals);
break;
case DecorationFuncParamDescINTEL:
SPIRVDecorateFuncParamDescAttr::decodeLiterals(Decoder, Literals);
break;
default:
Decoder >> Literals;
}
Expand Down
9 changes: 0 additions & 9 deletions llvm-spirv/lib/SPIRV/libSPIRV/SPIRVDecorate.h
Original file line number Diff line number Diff line change
Expand Up @@ -453,15 +453,6 @@ class SPIRVDecorateUserSemanticAttr
: SPIRVDecorateStrAttrBase(TheTarget, AnnotateString) {}
};

class SPIRVDecorateFuncParamDescAttr
: public SPIRVDecorateStrAttrBase<DecorationFuncParamDescINTEL> {
public:
// Complete constructor for UserSemantic decoration
SPIRVDecorateFuncParamDescAttr(SPIRVEntry *TheTarget,
const std::string &AnnotateString)
: SPIRVDecorateStrAttrBase(TheTarget, AnnotateString) {}
};

class SPIRVDecorateMergeINTELAttr : public SPIRVDecorate {
public:
// Complete constructor for MergeINTEL decoration
Expand Down
2 changes: 0 additions & 2 deletions llvm-spirv/lib/SPIRV/libSPIRV/SPIRVEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,6 @@ template <> inline void SPIRVMap<Decoration, SPIRVCapVec>::init() {
ADD_VEC_INIT(DecorationFuncParamIOKindINTEL, {CapabilityVectorComputeINTEL});
ADD_VEC_INIT(DecorationStackCallINTEL, {CapabilityVectorComputeINTEL});
ADD_VEC_INIT(DecorationSIMTCallINTEL, {CapabilityVectorComputeINTEL});
ADD_VEC_INIT(DecorationFuncParamKindINTEL, {CapabilityVectorComputeINTEL});
ADD_VEC_INIT(DecorationFuncParamDescINTEL, {CapabilityVectorComputeINTEL});
ADD_VEC_INIT(DecorationBurstCoalesceINTEL,
{CapabilityFPGAMemoryAccessesINTEL});
ADD_VEC_INIT(DecorationCacheSizeINTEL, {CapabilityFPGAMemoryAccessesINTEL});
Expand Down
2 changes: 0 additions & 2 deletions llvm-spirv/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ template <> inline void SPIRVMap<Decoration, std::string>::init() {
add(DecorationCacheSizeINTEL, "CacheSizeINTEL");
add(DecorationDontStaticallyCoalesceINTEL, "DontStaticallyCoalesceINTEL");
add(DecorationPrefetchINTEL, "PrefetchINTEL");
add(DecorationFuncParamKindINTEL, "FuncParamKindINTEL");
add(DecorationFuncParamDescINTEL, "FuncParamDescINTEL");
add(DecorationBufferLocationINTEL, "BufferLocationINTEL");
add(DecorationIOPipeStorageINTEL, "IOPipeStorageINTEL");
add(DecorationFunctionFloatingPointModeINTEL,
Expand Down
2 changes: 0 additions & 2 deletions llvm-spirv/lib/SPIRV/libSPIRV/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,6 @@ enum Decoration {
DecorationRestrictPointerEXT = 5355,
DecorationAliasedPointer = 5356,
DecorationAliasedPointerEXT = 5356,
DecorationFuncParamKindINTEL = 9624,
DecorationFuncParamDescINTEL = 9625,
DecorationSIMTCallINTEL = 5599,
DecorationReferencedIndirectlyINTEL = 5602,
DecorationClobberINTEL = 5607,
Expand Down
32 changes: 0 additions & 32 deletions llvm-spirv/test/transcoding/decoration_func_param_desc.ll

This file was deleted.

32 changes: 0 additions & 32 deletions llvm-spirv/test/transcoding/decoration_func_param_kind.ll

This file was deleted.