[llvm-bugs] [Bug 49739] New: [Matrix] Support #pragma clang fp
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 27 06:23:12 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49739
Bug ID: 49739
Summary: [Matrix] Support #pragma clang fp
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: florian_hahn at apple.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Currently, `#pragma clang fp` are ignored for matrix types.
For the code below, the `contract` fast-math flag should be added to the
generated call to `llvm.matrix.multiply` and `fadd` (see also
https://godbolt.org/z/PEW8aaPoq)
typedef float fx2x2_t __attribute__((matrix_type(2, 2)));
void foo(fx2x2_t &A, fx2x2_t &C, fx2x2_t &B) {
#pragma clang fp contract(fast)
C = A*B + C;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210327/c83c2d7b/attachment.html>
More information about the llvm-bugs
mailing list