Skip to content

Commit

Permalink
Remove unused HyperToken attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxSciurorum authored and neboat committed Sep 8, 2023
1 parent aa4f4c0 commit 87f0e9e
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 12 deletions.
3 changes: 0 additions & 3 deletions clang/lib/CodeGen/CGCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2242,9 +2242,6 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
if (TargetDecl->hasAttr<HyperViewAttr>()) {
FuncAttrs.addAttribute(llvm::Attribute::HyperView);
}
else if (TargetDecl->hasAttr<HyperTokenAttr>()) {
FuncAttrs.addAttribute(llvm::Attribute::HyperToken);
}
if (TargetDecl->hasAttr<RestrictAttr>())
RetAttrs.addAttribute(llvm::Attribute::NoAlias);
else if (TargetDecl->hasAttr<StrandMallocAttr>())
Expand Down
5 changes: 2 additions & 3 deletions llvm/include/llvm/Bitcode/LLVMBitCodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,8 @@ enum AttributeKindCodes {
ATTR_KIND_STRAND_NO_ALIAS = 90,
ATTR_KIND_INJECTIVE = 91,
ATTR_KIND_HYPER_VIEW = 92,
ATTR_KIND_HYPER_TOKEN = 93,
ATTR_KIND_REDUCER_REGISTER = 94,
ATTR_KIND_REDUCER_UNREGISTER = 95,
ATTR_KIND_REDUCER_REGISTER = 93,
ATTR_KIND_REDUCER_UNREGISTER = 94,
};

enum ComdatSelectionKindCodes {
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/IR/Attributes.td
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def ReadOnly : EnumAttr<"readonly", [ParamAttr]>;

/// Tapir reducer-related attributes.
def HyperView : EnumAttr<"hyper_view", [FnAttr]>;
def HyperToken : EnumAttr<"hyper_token", [FnAttr]>;
def ReducerRegister : EnumAttr<"reducer_register", [FnAttr]>;
def ReducerUnregister : EnumAttr<"reducer_unregister", [FnAttr]>;

Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2078,8 +2078,6 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
return Attribute::Injective;
case bitc::ATTR_KIND_HYPER_VIEW:
return Attribute::HyperView;
case bitc::ATTR_KIND_HYPER_TOKEN:
return Attribute::HyperToken;
case bitc::ATTR_KIND_REDUCER_REGISTER:
return Attribute::ReducerRegister;
case bitc::ATTR_KIND_REDUCER_UNREGISTER:
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,6 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
return bitc::ATTR_KIND_PRESPLIT_COROUTINE;
case Attribute::Injective:
return bitc::ATTR_KIND_INJECTIVE;
case Attribute::HyperToken:
return bitc::ATTR_KIND_HYPER_TOKEN;
case Attribute::HyperView:
return bitc::ATTR_KIND_HYPER_VIEW;
case Attribute::ReducerUnregister:
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Transforms/Utils/CodeExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,6 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
case Attribute::AllocSize:
case Attribute::Builtin:
case Attribute::Convergent:
case Attribute::HyperToken:
case Attribute::HyperView:
case Attribute::Injective:
case Attribute::JumpTable:
Expand Down

0 comments on commit 87f0e9e

Please sign in to comment.