Skip to content

Commit f4bd01b

Browse files
committed
Remove HyperToken from TableGen
1 parent cccfcab commit f4bd01b

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

llvm/utils/TableGen/CodeGenIntrinsics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ struct CodeGenIntrinsic {
115115
// Tapir reducer-related attributes
116116
bool isStrandPure;
117117
bool isHyperView;
118-
bool isHyperToken;
119118
bool isReducerRegister;
120119
bool isReducerUnregister;
121120

llvm/utils/TableGen/CodeGenTarget.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R,
692692
isInjective = false;
693693
isStrandPure = false;
694694
isHyperView = false;
695-
isHyperToken = false;
696695
isReducerRegister = false;
697696
isReducerUnregister = false;
698697

@@ -906,8 +905,6 @@ void CodeGenIntrinsic::setProperty(Record *R) {
906905
isReducerRegister = true;
907906
else if (R->getName() == "IntrHyperView")
908907
isHyperView = true;
909-
else if (R->getName() == "IntrHyperToken")
910-
isHyperToken = true;
911908
else if (R->getName() == "IntrReducerUnregister")
912909
isReducerUnregister = true;
913910
else if (R->isSubClassOf("NoCapture")) {

llvm/utils/TableGen/IntrinsicEmitter.cpp

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

658-
if (L->isHyperToken != R->isHyperToken)
659-
return R->isHyperToken;
660-
661658
// Try to order by readonly/readnone attribute.
662659
uint32_t LK = L->ME.toIntValue();
663660
uint32_t RK = R->ME.toIntValue();
@@ -798,8 +795,6 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
798795
OS << " Attribute::get(C, Attribute::ReducerUnregister),\n";
799796
if (Intrinsic.isHyperView)
800797
OS << " Attribute::get(C, Attribute::HyperView),\n";
801-
if (Intrinsic.isHyperToken)
802-
OS << " Attribute::get(C, Attribute::HyperToken),\n";
803798

804799
MemoryEffects ME = Intrinsic.ME;
805800
// TODO: IntrHasSideEffects should affect not only readnone intrinsics.
@@ -875,7 +870,7 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
875870
Intrinsic.isConvergent || Intrinsic.isSpeculatable ||
876871
Intrinsic.isInjective || Intrinsic.isStrandPure ||
877872
Intrinsic.isReducerRegister || Intrinsic.isReducerUnregister ||
878-
Intrinsic.isHyperView || Intrinsic.isHyperToken) {
873+
Intrinsic.isHyperView) {
879874
unsigned ID = UniqFnAttributes.find(&Intrinsic)->second;
880875
OS << " AS[" << numAttrs++ << "] = {AttributeList::FunctionIndex, "
881876
<< "getIntrinsicFnAttributeSet(C, " << ID << ")};\n";

0 commit comments

Comments
 (0)