Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 12792011: PNaCl: Add ExpandConstantExpr pass for converting ConstantExprs to Instructions (Closed)

Created:
7 years, 9 months ago by Mark Seaborn
Modified:
7 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://git.chromium.org/native_client/pnacl-llvm.git@master
Visibility:
Public.

Description

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 Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=bd7c1e1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes #

Total comments: 5

Patch Set 3 : Test deeper nesting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -0 lines) Patch
M include/llvm/InitializePasses.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/llvm/Transforms/NaCl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M lib/Transforms/NaCl/CMakeLists.txt View 1 chunk +1 line, -0 lines 0 comments Download
A lib/Transforms/NaCl/ExpandConstantExpr.cpp View 1 1 chunk +112 lines, -0 lines 0 comments Download
A test/Transforms/NaCl/expand-constantexpr.ll View 1 2 1 chunk +109 lines, -0 lines 0 comments Download
M tools/opt/opt.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mark Seaborn
7 years, 9 months ago (2013-03-14 20:10:08 UTC) #1
Derek Schuff
On 2013/03/14 20:10:08, Mark Seaborn wrote: Would it make sense to just make this a ...
7 years, 9 months ago (2013-03-14 21:23:50 UTC) #2
Mark Seaborn
> Would it make sense to just make this a ModulePass so (in a future ...
7 years, 9 months ago (2013-03-14 21:44:18 UTC) #3
Mark Seaborn
I've fixed two corner cases: * Phi nodes with multiple incoming edges from the same ...
7 years, 9 months ago (2013-03-15 15:12:12 UTC) #4
jvoung (off chromium)
some driveby comments https://codereview.chromium.org/12792011/diff/5001/test/Transforms/NaCl/expand-constantexpr.ll File test/Transforms/NaCl/expand-constantexpr.ll (right): https://codereview.chromium.org/12792011/diff/5001/test/Transforms/NaCl/expand-constantexpr.ll#newcode20 test/Transforms/NaCl/expand-constantexpr.ll:20: ; CHECK: %expanded1 = ptrtoint i32* ...
7 years, 9 months ago (2013-03-15 17:56:01 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/12792011/diff/5001/test/Transforms/NaCl/expand-constantexpr.ll File test/Transforms/NaCl/expand-constantexpr.ll (right): https://codereview.chromium.org/12792011/diff/5001/test/Transforms/NaCl/expand-constantexpr.ll#newcode68 test/Transforms/NaCl/expand-constantexpr.ll:68: %result = phi i32 [ ptrtoint (i32* @global_var1 to ...
7 years, 9 months ago (2013-03-15 19:17:26 UTC) #6
Mark Seaborn
https://codereview.chromium.org/12792011/diff/5001/test/Transforms/NaCl/expand-constantexpr.ll File test/Transforms/NaCl/expand-constantexpr.ll (right): https://codereview.chromium.org/12792011/diff/5001/test/Transforms/NaCl/expand-constantexpr.ll#newcode20 test/Transforms/NaCl/expand-constantexpr.ll:20: ; CHECK: %expanded1 = ptrtoint i32* @global_var1 to i32 ...
7 years, 9 months ago (2013-03-15 19:28:44 UTC) #7
Derek Schuff
7 years, 9 months ago (2013-03-15 19:28:48 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698