aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math/generic/f16subl.cpp
diff options
context:
space:
mode:
authorFelix Schneider <fx.schn@gmail.com>2024-11-03 15:31:25 +0100
committerGitHub <noreply@github.com>2024-11-03 15:31:25 +0100
commita07b422e90174430213201d0b4b307f5ed089d3f (patch)
tree9a66af79651e0e1f4e1638590bd93bb9f405142d /libc/src/math/generic/f16subl.cpp
parent30213e99b86a078c9d472264c7edeea9aa638dd4 (diff)
downloadllvm-main.zip
llvm-main.tar.gz
llvm-main.tar.bz2
[mlir][linalg] Fix `SemiFunctionType` custom parsing crash on missing `()` (#110365)HEADmain
The `SemiFunctionType` allows printing/parsing a set of argument and result types, where there is always exactly one argument type and zero or more result types. If there are no result types, the argument type can be written without enclosing parens in the assembly. If there is at least one result type, the parens are mandatory. This patch fixes a bug where omitting the parens around the argument types for a `SemiFunctionType` with non-optional result Types would crash the parser. It introduces a `bool` argument `resultOptional` to the parser and printer which, when `false`, correctly enforces the parens around argument types, otherwise printing an error. Fix https://github.com/llvm/llvm-project/issues/109128
Diffstat (limited to 'libc/src/math/generic/f16subl.cpp')
0 files changed, 0 insertions, 0 deletions