================
@@ -3099,6 +3101,66 @@ bool SPIRVInstructionSelector::wrapIntoSpecConstantOp(
return Result;
}
+bool SPIRVInstructionSelector::selectDpdCoarse(Register ResVReg,
+ const SPIRVType *ResType,
+ MachineInstr &I,
+ const unsigned DPdOpCode) const
{
+ if (!STI.isShader()) {
+ std::string DiagMsg;
+ raw_string_ostream OS(DiagMsg);
+ I.print(OS, true, false, false, false);
+ DiagMsg += " is only supported in shaders.\n";
+ report_fatal_error(DiagMsg.c_str(), false);
+ }
----------------
Alexander-Johnston wrote:
> Mostly because I wanted to have som uniformity for error messages.
Ah I see what you mean! Moved the check and diagnostic to a helper.
https://github.com/llvm/llvm-project/pull/164831
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits