forked from OSchip/llvm-project
Remove unused variables and methods to address compiler warnings
PiperOrigin-RevId: 271256784
This commit is contained in:
parent
6f0e65441c
commit
94298cea93
|
@ -450,8 +450,7 @@ public:
|
|||
auto sliceOp = cast<SliceOp>(op);
|
||||
BaseViewConversionHelper helper(op, sliceOp.getViewType(), rewriter,
|
||||
lowering);
|
||||
LLVMType elementTy = helper.elementTy, int64Ty = helper.int64Ty,
|
||||
viewDescriptorTy = helper.viewDescriptorTy;
|
||||
LLVMType elementTy = helper.elementTy, int64Ty = helper.int64Ty;
|
||||
Value *desc = helper.desc;
|
||||
|
||||
auto viewType = sliceOp.getBaseViewType();
|
||||
|
|
|
@ -293,9 +293,6 @@ private:
|
|||
sliceInstruction(spirv::Opcode &opcode, ArrayRef<uint32_t> &operands,
|
||||
Optional<spirv::Opcode> expectedOpcode = llvm::None);
|
||||
|
||||
/// Returns the next instruction's opcode if exists.
|
||||
Optional<spirv::Opcode> peekOpcode();
|
||||
|
||||
/// Processes a SPIR-V instruction with the given `opcode` and `operands`.
|
||||
/// This method is the main entrance for handling SPIR-V instruction; it
|
||||
/// checks the instruction opcode and dispatches to the corresponding handler.
|
||||
|
@ -1751,12 +1748,6 @@ Deserializer::sliceInstruction(spirv::Opcode &opcode,
|
|||
return success();
|
||||
}
|
||||
|
||||
Optional<spirv::Opcode> Deserializer::peekOpcode() {
|
||||
if (curOffset >= binary.size())
|
||||
return llvm::None;
|
||||
return extractOpcode(binary[curOffset]);
|
||||
}
|
||||
|
||||
LogicalResult Deserializer::processInstruction(spirv::Opcode opcode,
|
||||
ArrayRef<uint32_t> operands,
|
||||
bool deferInstructions) {
|
||||
|
|
|
@ -267,6 +267,7 @@ std::string tblgen::SymbolInfoMap::SymbolInfo::getValueAndRangeUse(
|
|||
return formatv(fmt, name);
|
||||
}
|
||||
}
|
||||
llvm_unreachable("unknown kind");
|
||||
}
|
||||
|
||||
std::string tblgen::SymbolInfoMap::SymbolInfo::getAllRangeUse(
|
||||
|
|
|
@ -807,7 +807,7 @@ static void emitStrToSymFnForBitEnum(const Record &enumDef, raw_ostream &os) {
|
|||
// Skip the special enumerant for None.
|
||||
if (auto val = enumerant.getValue())
|
||||
os.indent(6) << formatv(".Case(\"{0}\", {1})\n", enumerant.getSymbol(),
|
||||
enumerant.getValue());
|
||||
val);
|
||||
}
|
||||
os.indent(6) << ".Default(llvm::None);\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue