Commit 05bbb94
authored
[X86] Relax AVX ABI warning on internal functions (#157570)
Summary:
The vector target should be able to handle vector sizes that are
multiples of the native size, this is useful for implementing math
routines that want to temporarily use a high precision for example.
However, currently this will emit a warning on x86 if any function calls
are involved. https://godbolt.org/z/dK7hGndYh.
I believe that we should be able to relax the ABI restriction if the
functions are completely internal and there were no explicitly states
attributes to conflict. Because the ABI is not exported outside the TU
we should be safe to assume that it won't bite us. In the case that one
call has no features and other does, that will still cause an error. I
may be wrong on this assumption however.
Fixes: #1283611 parent 5437d90 commit 05bbb94
File tree
2 files changed
+34
-8
lines changed- clang
- lib/CodeGen/Targets
- test/CodeGen
2 files changed
+34
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
| 1516 | + | |
1516 | 1517 | | |
1517 | 1518 | | |
1518 | 1519 | | |
1519 | 1520 | | |
1520 | 1521 | | |
1521 | 1522 | | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
1522 | 1528 | | |
1523 | 1529 | | |
1524 | 1530 | | |
| |||
1534 | 1540 | | |
1535 | 1541 | | |
1536 | 1542 | | |
1537 | | - | |
| 1543 | + | |
1538 | 1544 | | |
1539 | 1545 | | |
1540 | 1546 | | |
1541 | 1547 | | |
1542 | 1548 | | |
1543 | | - | |
| 1549 | + | |
1544 | 1550 | | |
1545 | 1551 | | |
1546 | 1552 | | |
1547 | | - | |
1548 | | - | |
| 1553 | + | |
| 1554 | + | |
1549 | 1555 | | |
1550 | 1556 | | |
1551 | 1557 | | |
| |||
1582 | 1588 | | |
1583 | 1589 | | |
1584 | 1590 | | |
1585 | | - | |
1586 | | - | |
| 1591 | + | |
| 1592 | + | |
1587 | 1593 | | |
1588 | 1594 | | |
1589 | 1595 | | |
| |||
1594 | 1600 | | |
1595 | 1601 | | |
1596 | 1602 | | |
1597 | | - | |
| 1603 | + | |
1598 | 1604 | | |
1599 | 1605 | | |
1600 | 1606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments