diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-05-24 17:05:15 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-05-24 17:05:15 -0700 |
commit | 33f698a2d1a30e31fb494922e3e6df8e643dc7b5 (patch) | |
tree | da30ffef663e43c2a5b82cc9f2bf8e06e81dba03 /include/llvm/Transforms | |
parent | de078f629ea70df5987a28390c1d3a0da5c844d5 (diff) |
PNaCl: Add "-pnacl-abi-simplify-{pre,post}opt" meta-passes to "opt"
These meta-passes will be used to replace the pass lists that are
currently in the pnacl-ld.py driver script in the NaCl repo.
I've moved the comments across from pnacl-ld.py and added a couple
more comments for ExpandByVal and StripMetadata.
Fix the declaration of createResolveAliasesPass().
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3435
TEST=new *.ll tests + tested with change to pnacl-ld.py
Review URL: https://codereview.chromium.org/15669002
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/NaCl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/NaCl.h b/include/llvm/Transforms/NaCl.h index af1dee2ebe..3b9ce35dc8 100644 --- a/include/llvm/Transforms/NaCl.h +++ b/include/llvm/Transforms/NaCl.h @@ -16,6 +16,7 @@ class BasicBlockPass; class FunctionPass; class Instruction; class ModulePass; +class PassManager; class Use; class Value; @@ -36,6 +37,9 @@ ModulePass *createRewritePNaClLibraryCallsPass(); ModulePass *createStripMetadataPass(); FunctionPass *createInsertDivideCheckPass(); +void PNaClABISimplifyAddPreOptPasses(PassManager &PM); +void PNaClABISimplifyAddPostOptPasses(PassManager &PM); + Instruction *PhiSafeInsertPt(Use *U); void PhiSafeReplaceUses(Use *U, Value *NewVal); |