Skip to content

Commit

Permalink
Remove HyperToken from TableGen
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxSciurorum committed Dec 20, 2023
1 parent cccfcab commit f4bd01b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion llvm/utils/TableGen/CodeGenIntrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ struct CodeGenIntrinsic {
// Tapir reducer-related attributes
bool isStrandPure;
bool isHyperView;
bool isHyperToken;
bool isReducerRegister;
bool isReducerUnregister;

Expand Down
3 changes: 0 additions & 3 deletions llvm/utils/TableGen/CodeGenTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,6 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R,
isInjective = false;
isStrandPure = false;
isHyperView = false;
isHyperToken = false;
isReducerRegister = false;
isReducerUnregister = false;

Expand Down Expand Up @@ -906,8 +905,6 @@ void CodeGenIntrinsic::setProperty(Record *R) {
isReducerRegister = true;
else if (R->getName() == "IntrHyperView")
isHyperView = true;
else if (R->getName() == "IntrHyperToken")
isHyperToken = true;
else if (R->getName() == "IntrReducerUnregister")
isReducerUnregister = true;
else if (R->isSubClassOf("NoCapture")) {
Expand Down
7 changes: 1 addition & 6 deletions llvm/utils/TableGen/IntrinsicEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,6 @@ std::optional<bool> compareFnAttributes(const CodeGenIntrinsic *L,
if (L->isHyperView != R->isHyperView)
return R->isHyperView;

if (L->isHyperToken != R->isHyperToken)
return R->isHyperToken;

// Try to order by readonly/readnone attribute.
uint32_t LK = L->ME.toIntValue();
uint32_t RK = R->ME.toIntValue();
Expand Down Expand Up @@ -798,8 +795,6 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
OS << " Attribute::get(C, Attribute::ReducerUnregister),\n";
if (Intrinsic.isHyperView)
OS << " Attribute::get(C, Attribute::HyperView),\n";
if (Intrinsic.isHyperToken)
OS << " Attribute::get(C, Attribute::HyperToken),\n";

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

0 comments on commit f4bd01b

Please sign in to comment.