Skip to content

Commit a9cef26

Browse files
committed
Remove unused HyperToken attribute
1 parent 1d36a6a commit a9cef26

File tree

6 files changed

+1
-21
lines changed

6 files changed

+1
-21
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4501,12 +4501,6 @@ def HyperView : InheritableAttr {
45014501
let Documentation = [StrandMallocDocs];
45024502
}
45034503

4504-
def HyperToken : InheritableAttr {
4505-
let Spellings = [Clang<"hyper_token">];
4506-
let Subjects = SubjectList<[FunctionLike]>;
4507-
let Documentation = [StrandMallocDocs];
4508-
}
4509-
45104504
def ReducerRegister : InheritableAttr {
45114505
let Spellings = [Clang<"reducer_register">];
45124506
let Subjects = SubjectList<[FunctionLike]>;

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9868,9 +9868,6 @@ ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL,
98689868
case ParsedAttr::AT_HyperView:
98699869
handleSimpleAttribute<HyperViewAttr>(S, D, AL);
98709870
break;
9871-
case ParsedAttr::AT_HyperToken:
9872-
handleSimpleAttribute<HyperTokenAttr>(S, D, AL);
9873-
break;
98749871
case ParsedAttr::AT_ReducerUnregister:
98759872
handleSimpleAttribute<ReducerUnregisterAttr>(S, D, AL);
98769873
break;

clang/test/Misc/pragma-attribute-supported-attributes-list.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
// CHECK-NEXT: GNUInline (SubjectMatchRule_function)
8383
// CHECK-NEXT: HIPManaged (SubjectMatchRule_variable)
8484
// CHECK-NEXT: Hot (SubjectMatchRule_function)
85-
// CHECK-NEXT: HyperToken (SubjectMatchRule_hasType_functionType)
8685
// CHECK-NEXT: HyperView (SubjectMatchRule_hasType_functionType)
8786
// CHECK-NEXT: IBAction (SubjectMatchRule_objc_method_is_instance)
8887
// CHECK-NEXT: IFunc (SubjectMatchRule_function)

llvm/utils/TableGen/CodeGenIntrinsics.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R,
7878
isInjective = false;
7979
isStrandPure = false;
8080
isHyperView = false;
81-
isHyperToken = false;
8281
isReducerRegister = false;
8382
isReducerUnregister = false;
8483

@@ -222,8 +221,6 @@ void CodeGenIntrinsic::setProperty(Record *R) {
222221
isReducerRegister = true;
223222
else if (R->getName() == "IntrHyperView")
224223
isHyperView = true;
225-
else if (R->getName() == "IntrHyperToken")
226-
isHyperToken = true;
227224
else if (R->getName() == "IntrReducerUnregister")
228225
isReducerUnregister = true;
229226
else if (R->isSubClassOf("NoCapture")) {

llvm/utils/TableGen/CodeGenIntrinsics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ struct CodeGenIntrinsic {
112112
// Tapir reducer-related attributes
113113
bool isStrandPure;
114114
bool isHyperView;
115-
bool isHyperToken;
116115
bool isReducerRegister;
117116
bool isReducerUnregister;
118117

llvm/utils/TableGen/IntrinsicEmitter.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,6 @@ std::optional<bool> compareFnAttributes(const CodeGenIntrinsic *L,
405405
if (L->isHyperView != R->isHyperView)
406406
return R->isHyperView;
407407

408-
if (L->isHyperToken != R->isHyperToken)
409-
return R->isHyperToken;
410-
411408
// Try to order by readonly/readnone attribute.
412409
uint32_t LK = L->ME.toIntValue();
413410
uint32_t RK = R->ME.toIntValue();
@@ -554,8 +551,6 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
554551
OS << " Attribute::get(C, Attribute::ReducerUnregister),\n";
555552
if (Intrinsic.isHyperView)
556553
OS << " Attribute::get(C, Attribute::HyperView),\n";
557-
if (Intrinsic.isHyperToken)
558-
OS << " Attribute::get(C, Attribute::HyperToken),\n";
559554

560555
MemoryEffects ME = Intrinsic.ME;
561556
// TODO: IntrHasSideEffects should affect not only readnone intrinsics.
@@ -631,8 +626,7 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
631626
Intrinsic.isConvergent || Intrinsic.isSpeculatable ||
632627
Intrinsic.isStrictFP || Intrinsic.isInjective ||
633628
Intrinsic.isStrandPure || Intrinsic.isReducerRegister ||
634-
Intrinsic.isReducerUnregister || Intrinsic.isHyperView ||
635-
Intrinsic.isHyperToken) {
629+
Intrinsic.isReducerUnregister || Intrinsic.isHyperView) {
636630
unsigned ID = UniqFnAttributes.find(&Intrinsic)->second;
637631
OS << " AS[" << numAttrs++ << "] = {AttributeList::FunctionIndex, "
638632
<< "getIntrinsicFnAttributeSet(C, " << ID << ")};\n";

0 commit comments

Comments
 (0)