Commit dbd3834
[Hexagon][Codegen] Implement CodeGenHexagon::CreatePrintf (apache#10710)
* [Hexagon][Codegen] Implement CodeGenHexagon::CreatePrintf
`CodeGenHexagon` inherits from `CodeGenLLVM`, but debug messages sent
through `printf` calls do not make it back across the RPC server.
Instead, the `FARF` preprocess macro provided from the Hexagon SDK
should be used. This implementation of `CodeGenHexagon::CreatePrintf`
generates the same `HAP_debug_v2` function call as would be generated
by the `FARF` preprocessor macro, using the `ALWAYS` print level.
* Updated following review comments
* Updated from const llvm::ArrayRef& to llvm::ArrayRef.1 parent 78051b3 commit dbd3834
File tree
3 files changed
+34
-5
lines changed- src/target/llvm
3 files changed
+34
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
575 | 606 | | |
576 | 607 | | |
577 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
| 834 | + | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
854 | | - | |
855 | | - | |
| 853 | + | |
856 | 854 | | |
857 | 855 | | |
858 | 856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
0 commit comments