Commit 7cfe620
committed
[MLIR][LLVM] Add inline_hint as a first class function attribute
We have `noinline` and `alwaysinline` present as first class function
attributes. Add `inline_hint` to the list of function attributes as well.
Update the module import and translation to support the new attribute.
The verifier does not need to be changed as `inlinehint` does not
conflict with `noinline` or `alwaysinline`.
`inline_hint` is needed to support the `inline` C/C++ keyword in CIR.1 parent 0b462f6 commit 7cfe620
File tree
5 files changed
+26
-0
lines changed- mlir
- include/mlir/Dialect/LLVMIR
- lib/Target/LLVMIR
- test/Target/LLVMIR
- Import
5 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1985 | 1985 | | |
1986 | 1986 | | |
1987 | 1987 | | |
| 1988 | + | |
1988 | 1989 | | |
1989 | 1990 | | |
1990 | 1991 | | |
| |||
2037 | 2038 | | |
2038 | 2039 | | |
2039 | 2040 | | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
2040 | 2044 | | |
2041 | 2045 | | |
2042 | 2046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2604 | 2604 | | |
2605 | 2605 | | |
2606 | 2606 | | |
| 2607 | + | |
2607 | 2608 | | |
2608 | 2609 | | |
2609 | 2610 | | |
| |||
2643 | 2644 | | |
2644 | 2645 | | |
2645 | 2646 | | |
| 2647 | + | |
| 2648 | + | |
2646 | 2649 | | |
2647 | 2650 | | |
2648 | 2651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1653 | 1653 | | |
1654 | 1654 | | |
1655 | 1655 | | |
| 1656 | + | |
| 1657 | + | |
1656 | 1658 | | |
1657 | 1659 | | |
1658 | 1660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
396 | 402 | | |
397 | 403 | | |
398 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2555 | 2555 | | |
2556 | 2556 | | |
2557 | 2557 | | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
2558 | 2569 | | |
2559 | 2570 | | |
2560 | 2571 | | |
| |||
0 commit comments