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();
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.
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) {
return formatv(fmt, name);
}
}
+ llvm_unreachable("unknown kind");
}
std::string tblgen::SymbolInfoMap::SymbolInfo::getAllRangeUse(
// 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";