This is patch to add PowerPC target to llvm-exegesis.
The target does just enough to be able to run llvm-exegesis in latency mode for at least some opcodes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for the patch !
llvm/tools/llvm-exegesis/lib/CMakeLists.txt | ||
---|---|---|
13 ↗ | (On Diff #172851) | I think you wrote this against the version before PR39021 and failed to merge the changes in r342865. |
llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp | ||
8 ↗ | (On Diff #172851) | "The PowerPC ExegesisTarget." |
32 ↗ | (On Diff #172851) | remove the namespace; LLVM style does not put static functions in anonymous namespaces. |
33 ↗ | (On Diff #172851) | getLoadImmediateOpcode |
llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp | ||
1 ↗ | (On Diff #172851) | This file is missing a header. |
llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp | ||
1 ↗ | (On Diff #172851) | ditto |
Comment Actions
Nice ! Thx for the patch !
llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp | ||
---|---|---|
31 ↗ | (On Diff #172851) | typo unes |
Comment Actions
Thanks for prompt review, I will update the patch to fix the issues.
llvm/tools/llvm-exegesis/lib/CMakeLists.txt | ||
---|---|---|
13 ↗ | (On Diff #172851) | Yes, you are right! I did a quick update before submitting the patch, and apparently I didn't merge all changes correctly. I will have a look at r342865, and update the patch. Thanks. |
llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp | ||
8 ↗ | (On Diff #172851) | OK |
32 ↗ | (On Diff #172851) | OK |
33 ↗ | (On Diff #172851) | OK |
llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp | ||
1 ↗ | (On Diff #172851) | I'll have a look, Thanks. |
llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp | ||
---|---|---|
32 ↗ | (On Diff #172943) | It seems these two static functions are still put in anonymous namespace (line 18 - line 76). |