[PATCH] D60248: [PowerPC] Add initilization for some ppc passes
Zhang Kang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 3 22:30:13 PDT 2019
ZhangKang created this revision.
ZhangKang added reviewers: nemanjai, echristo, steven.zhang, hfinkel, hiraditya, jsji.
Herald added a project: LLVM.
Some `llc` debug options need `pass-name` as the parameters.
-run-pass=<pass-name>
-start-after=<pass-name>
-start-before=<pass-name>
-stop-after=<pass-name
-stop-before=<pass-name>
For the pass-name `ppc-pre-emit-peephole`, below command can work well.
llc test.ll -stop-after ppc-pre-emit-peephole
But if we use the pass-name `ppc-early-ret`, we will get below error:
llc test.ll -stop-after ppc-early-ret
LLVM ERROR: “ppc-early-ret” pass is not registered.
I have checked all PPC pass-names, below pass-names have the `pass is not registered` error:
ppc-ctr-loops
ppc-ctr-loops-verify
ppc-loop-preinc-prep
ppc-toc-reg-deps
ppc-vsx-copy
ppc-early-ret
ppc-vsx-fma-mutate
ppc-vsx-swaps
ppc-reduce-cr-ops
ppc-qpx-load-splat
ppc-branch-coalescing
ppc-branch-select
https://reviews.llvm.org/D60248
Files:
llvm/lib/Target/PowerPC/PPC.h
llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp
llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp
llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp
llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp
llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp
llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp
llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
llvm/lib/Target/PowerPC/PPCVSXCopy.cpp
llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
llvm/test/CodeGen/PowerPC/ppc-passname-assert.ll
llvm/test/CodeGen/PowerPC/ppc-passname.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60248.193659.patch
Type: text/x-patch
Size: 16954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190404/c070409b/attachment.bin>
More information about the llvm-commits
mailing list