[Mlir-commits] [mlir] [mlir][spirv][tosa] Add remaining TOSA 1.0 SPIR-V TOSA ops (PR #200383)
Igor Wodiany
llvmlistbot at llvm.org
Fri May 29 05:52:06 PDT 2026
================
@@ -31,6 +33,23 @@ spirv::TosaExtResizeModeType getResizeMode(OpAdaptor adaptor) {
return static_cast<spirv::TosaExtResizeModeType>(adaptor.getMode());
}
+template <typename OpAdaptor>
+spirv::TosaExtRoundingModeType getRoundingMode(OpAdaptor adaptor) {
+ return static_cast<spirv::TosaExtRoundingModeType>(adaptor.getRoundingMode());
+}
+
+spirv::TosaExtAccType getAccType(Type accType) {
+ if (accType.isInteger(32))
+ return spirv::TosaExtAccType::INT32;
+ if (accType.isF16())
----------------
IgWod wrote:
Why not `else if` here and below?
https://github.com/llvm/llvm-project/pull/200383
More information about the Mlir-commits
mailing list