These hooks ensure that the LoongArch backend can serialize and parse
MIR correctly.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM.
llvm/test/CodeGen/LoongArch/mir-target-flags.ll | ||
---|---|---|
4 | llc --mtriple=loongarch64 --run-pass loongarch-prera-expand-pseudo does not change the output. Is it needed? |
llvm/test/CodeGen/LoongArch/mir-target-flags.ll | ||
---|---|---|
4 |
Thanks for your review. Yes, it is necessary. In fact, this step is the real test for parsing target flags. |
llvm/test/CodeGen/LoongArch/mir-target-flags.ll | ||
---|---|---|
4 |
| |
4 |
I seem to have misunderstood your meaning, maybe I don't need that pass? It may not be needed, I will verify and modify it. |
llvm/test/CodeGen/LoongArch/mir-target-flags.ll | ||
---|---|---|
4 |
I verified it, and it seems that there is no good way to remove this pass to verify that the correct flags are generated in the mir, unless the previous step adds check. The benefit of this is that both the output and the input are validated. |
llc --mtriple=loongarch64 --run-pass loongarch-prera-expand-pseudo does not change the output. Is it needed?