diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-03-15 13:44:43 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-03-15 13:44:43 -0700 |
commit | bd7c1e1fa62acc37cf1bed3c1272703bbffd7242 (patch) | |
tree | b7c1dd9e10beb99f701868d98a67f4287005c769 /include/llvm/Transforms | |
parent | 5d4b7153b9eaa695f036357a7a7a24ff3be2b35e (diff) |
PNaCl: Add ExpandConstantExpr pass for converting ConstantExprs to Instructions
Once this pass is enabled, it will simplify the language to reduce the
set of constructs that a PNaCl translator needs to handle as part of a
stable wire format for PNaCl.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3337
TEST=test/Transforms/NaCl/expand-constantexpr.ll
Review URL: https://codereview.chromium.org/12792011
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/NaCl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Transforms/NaCl.h b/include/llvm/Transforms/NaCl.h index 79c9b9fe79..686b45ff74 100644 --- a/include/llvm/Transforms/NaCl.h +++ b/include/llvm/Transforms/NaCl.h @@ -12,8 +12,10 @@ namespace llvm { +class FunctionPass; class ModulePass; +FunctionPass *createExpandConstantExprPass(); ModulePass *createExpandCtorsPass(); ModulePass *createExpandTlsPass(); ModulePass *createExpandTlsConstantExprPass(); |