Skip to content

Commit e59edde

Browse files
committed
remove spirv lowering for all intrinsic
1 parent 26ef905 commit e59edde

File tree

2 files changed

+0
-114
lines changed

2 files changed

+0
-114
lines changed

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ class SPIRVInstructionSelector : public InstructionSelector {
144144
bool selectAddrSpaceCast(Register ResVReg, const SPIRVType *ResType,
145145
MachineInstr &I) const;
146146

147-
bool selectAll(Register ResVReg, const SPIRVType *ResType,
148-
MachineInstr &I) const;
149-
150147
bool selectBitreverse(Register ResVReg, const SPIRVType *ResType,
151148
MachineInstr &I) const;
152149

@@ -1158,20 +1155,6 @@ static unsigned getBoolCmpOpcode(unsigned PredNum) {
11581155
}
11591156
}
11601157

1161-
bool SPIRVInstructionSelector::selectAll(Register ResVReg,
1162-
const SPIRVType *ResType,
1163-
MachineInstr &I) const {
1164-
assert(I.getNumOperands() == 3);
1165-
assert(I.getOperand(2).isReg());
1166-
1167-
MachineBasicBlock &BB = *I.getParent();
1168-
return BuildMI(BB, I, I.getDebugLoc(), TII.get(SPIRV::OpAll))
1169-
.addDef(ResVReg)
1170-
.addUse(GR.getSPIRVTypeID(ResType))
1171-
.addUse(I.getOperand(2).getReg())
1172-
.constrainAllUses(TII, TRI, RBI);
1173-
}
1174-
11751158
bool SPIRVInstructionSelector::selectBitreverse(Register ResVReg,
11761159
const SPIRVType *ResType,
11771160
MachineInstr &I) const {
@@ -1802,8 +1785,6 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
18021785
break;
18031786
case Intrinsic::spv_thread_id:
18041787
return selectSpvThreadId(ResVReg, ResType, I);
1805-
case Intrinsic::spv_all:
1806-
return selectAll(ResVReg, ResType, I);
18071788
case Intrinsic::spv_lifetime_start:
18081789
case Intrinsic::spv_lifetime_end: {
18091790
unsigned Op = IID == Intrinsic::spv_lifetime_start ? SPIRV::OpLifetimeStart

llvm/test/CodeGen/SPIRV/hlsl-intrinsics/all.ll

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)