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

Side by Side Diff: src/llvm2ice.cpp

Issue 560773002: Subzero: Fix Phi lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes, plus a new TODO Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | tests_lit/llvm2ice_tests/phi.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/llvm2ice.cpp - Driver for testing ----------------------===// 1 //===- subzero/src/llvm2ice.cpp - Driver for testing ----------------------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines a driver that uses LLVM capabilities to parse a 10 // This file defines a driver that uses LLVM capabilities to parse a
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 static cl::opt<bool> 90 static cl::opt<bool>
91 DisableTranslation("notranslate", cl::desc("Disable Subzero translation")); 91 DisableTranslation("notranslate", cl::desc("Disable Subzero translation"));
92 92
93 static cl::opt<bool> SubzeroTimingEnabled( 93 static cl::opt<bool> SubzeroTimingEnabled(
94 "timing", cl::desc("Enable breakdown timing of Subzero translation")); 94 "timing", cl::desc("Enable breakdown timing of Subzero translation"));
95 95
96 static cl::opt<bool> 96 static cl::opt<bool>
97 DisableGlobals("disable-globals", 97 DisableGlobals("disable-globals",
98 cl::desc("Disable global initializer translation")); 98 cl::desc("Disable global initializer translation"));
99 99
100 // This is currently unused, and is a placeholder for lit tests.
101 static cl::opt<bool>
102 DisablePhiEdgeSplit("no-phi-edge-split",
103 cl::desc("Disable edge splitting for Phi lowering"));
104
100 static cl::opt<NaClFileFormat> InputFileFormat( 105 static cl::opt<NaClFileFormat> InputFileFormat(
101 "bitcode-format", cl::desc("Define format of input file:"), 106 "bitcode-format", cl::desc("Define format of input file:"),
102 cl::values(clEnumValN(LLVMFormat, "llvm", "LLVM file (default)"), 107 cl::values(clEnumValN(LLVMFormat, "llvm", "LLVM file (default)"),
103 clEnumValN(PNaClFormat, "pnacl", "PNaCl bitcode file"), 108 clEnumValN(PNaClFormat, "pnacl", "PNaCl bitcode file"),
104 clEnumValEnd), 109 clEnumValEnd),
105 cl::init(LLVMFormat)); 110 cl::init(LLVMFormat));
106 111
107 static cl::opt<bool> 112 static cl::opt<bool>
108 BuildOnRead("build-on-read", 113 BuildOnRead("build-on-read",
109 cl::desc("Build ICE instructions when reading bitcode"), 114 cl::desc("Build ICE instructions when reading bitcode"),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 if (!Mod) { 166 if (!Mod) {
162 Err.print(argv[0], errs()); 167 Err.print(argv[0], errs());
163 return 1; 168 return 1;
164 } 169 }
165 170
166 Ice::Converter Converter(Mod, &Ctx, Flags); 171 Ice::Converter Converter(Mod, &Ctx, Flags);
167 Converter.convertToIce(); 172 Converter.convertToIce();
168 return Converter.getErrorStatus(); 173 return Converter.getErrorStatus();
169 } 174 }
170 } 175 }
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | tests_lit/llvm2ice_tests/phi.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698