Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/IceClFlags.def - Cl Flags for translation ----*- C++ -*-===// | 1 //===- subzero/src/IceClFlags.def - Cl Flags for translation ----*- C++ -*-===// |
| 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 /// \file | 10 /// \file |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 X(DumpStrings, bool, dev_opt_flag, \ | 133 X(DumpStrings, bool, dev_opt_flag, \ |
| 134 "dump-strings", \ | 134 "dump-strings", \ |
| 135 cl::desc("Dump string pools during compilation"), \ | 135 cl::desc("Dump string pools during compilation"), \ |
| 136 cl::init(false)) \ | 136 cl::init(false)) \ |
| 137 \ | 137 \ |
| 138 X(EnableBlockProfile, bool, dev_opt_flag, "enable-block-profile", \ | 138 X(EnableBlockProfile, bool, dev_opt_flag, "enable-block-profile", \ |
| 139 cl::desc("Instrument basic blocks, and output profiling " \ | 139 cl::desc("Instrument basic blocks, and output profiling " \ |
| 140 "information to stdout at the end of program execution."), \ | 140 "information to stdout at the end of program execution."), \ |
| 141 cl::init(false)) \ | 141 cl::init(false)) \ |
| 142 \ | 142 \ |
| 143 X(EnableExperimental, bool, dev_opt_flag, "enable-experimental", \ | 143 X(LocalCSE, Ice::LCSEOptions, dev_opt_flag, "lcse", \ |
| 144 cl::desc("Enable Optimizations not yet part of O2"), \ | 144 cl::desc("Local common subexpression elimination"), \ |
| 145 cl::init(false)) \ | 145 cl::init(Ice::LCSE_EnabledSSA), \ |
| 146 cl::values( \ | |
| 147 clEnumValN(Ice::LCSE_Disabled, "0", "disabled"), \ | |
| 148 clEnumValN(Ice::LCSE_EnabledSSA, "enabled", "assume-ssa"), \ | |
| 149 clEnumValN(Ice::LCSE_EnabledNoSSA,"no-ssa" , "no-assume-ssa"), \ | |
|
Jim Stichnoth
2016/08/01 20:25:36
Fix the spaces here? No space before the comma, o
| |
| 150 clEnumValEnd)) \ | |
| 146 \ | 151 \ |
| 147 X(EnablePhiEdgeSplit, bool, dev_opt_flag, "phi-edge-split", \ | 152 X(EnablePhiEdgeSplit, bool, dev_opt_flag, "phi-edge-split", \ |
| 148 cl::desc("Enable edge splitting for Phi lowering"), cl::init(true)) \ | 153 cl::desc("Enable edge splitting for Phi lowering"), cl::init(true)) \ |
| 149 \ | 154 \ |
| 150 X(EnableShortCircuit, bool, dev_opt_flag, "enable-sc", \ | 155 X(EnableShortCircuit, bool, dev_opt_flag, "enable-sc", \ |
| 151 cl::desc("Split Nodes for short circuit evaluation"), cl::init(false)) \ | 156 cl::desc("Split Nodes for short circuit evaluation"), cl::init(false)) \ |
| 152 \ | 157 \ |
| 153 X(ExcludedRegisters, std::string, dev_list_flag, "reg-exclude", \ | 158 X(ExcludedRegisters, std::string, dev_list_flag, "reg-exclude", \ |
| 154 cl::CommaSeparated, cl::desc("Don't use specified registers")) \ | 159 cl::CommaSeparated, cl::desc("Don't use specified registers")) \ |
| 155 \ | 160 \ |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 176 \ | 181 \ |
| 177 X(KeepDeletedInsts, bool, dev_opt_flag, "keep-deleted-insts", \ | 182 X(KeepDeletedInsts, bool, dev_opt_flag, "keep-deleted-insts", \ |
| 178 cl::desc("Retain deleted instructions in the Cfg"), \ | 183 cl::desc("Retain deleted instructions in the Cfg"), \ |
| 179 cl::init(Ice::BuildDefs::dump())) \ | 184 cl::init(Ice::BuildDefs::dump())) \ |
| 180 \ | 185 \ |
| 181 X(LLVMVerboseErrors, bool, dev_opt_flag, "verbose-llvm-parse-errors", \ | 186 X(LLVMVerboseErrors, bool, dev_opt_flag, "verbose-llvm-parse-errors", \ |
| 182 cl::desc("Print out more descriptive PNaCl bitcode parse errors when " \ | 187 cl::desc("Print out more descriptive PNaCl bitcode parse errors when " \ |
| 183 "building LLVM IR first"), \ | 188 "building LLVM IR first"), \ |
| 184 cl::init(false)) \ | 189 cl::init(false)) \ |
| 185 \ | 190 \ |
| 186 X(LocalCseMaxIterations, int, dev_opt_flag, "lcse-max-iters", \ | 191 X(LocalCseMaxIterations, uint32_t, dev_opt_flag, "lcse-max-iters", \ |
| 187 cl::desc("Number of times local-cse is run on a block"), cl::init(2)) \ | 192 cl::desc("Number of times local-cse is run on a block"), cl::init(1)) \ |
| 188 \ | 193 \ |
| 189 X(LoopInvariantCodeMotion, bool, dev_opt_flag, "licm", \ | 194 X(LoopInvariantCodeMotion, bool, dev_opt_flag, "licm", \ |
| 190 cl::desc("Hoist loop invariant arithmetic operations"), cl::init(false)) \ | 195 cl::desc("Hoist loop invariant arithmetic operations"), cl::init(false)) \ |
| 191 \ | 196 \ |
| 192 X(LogFilename, std::string, dev_opt_flag, "log", \ | 197 X(LogFilename, std::string, dev_opt_flag, "log", \ |
| 193 cl::desc("Set log filename"), cl::init("-"), cl::value_desc("filename")) \ | 198 cl::desc("Set log filename"), cl::init("-"), cl::value_desc("filename")) \ |
| 194 \ | 199 \ |
| 195 X(MaxNopsPerInstruction, int, dev_opt_flag, "max-nops-per-instruction", \ | 200 X(MaxNopsPerInstruction, int, dev_opt_flag, "max-nops-per-instruction", \ |
| 196 cl::desc("Max number of nops to insert per instruction"), cl::init(1)) \ | 201 cl::desc("Max number of nops to insert per instruction"), cl::init(1)) \ |
| 197 \ | 202 \ |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 \ | 372 \ |
| 368 X(WasmBoundsCheck, bool, dev_opt_flag, "wasm-bounds-check", \ | 373 X(WasmBoundsCheck, bool, dev_opt_flag, "wasm-bounds-check", \ |
| 369 cl::desc("Add bounds checking code in WASM frontend"), \ | 374 cl::desc("Add bounds checking code in WASM frontend"), \ |
| 370 cl::init(true)) | 375 cl::init(true)) |
| 371 | 376 |
| 372 //#define X(Name, Type, ClType, ...) | 377 //#define X(Name, Type, ClType, ...) |
| 373 | 378 |
| 374 } // end of namespace Ice | 379 } // end of namespace Ice |
| 375 | 380 |
| 376 #endif // SUBZERO_SRC_ICECLFLAGS_DEF | 381 #endif // SUBZERO_SRC_ICECLFLAGS_DEF |
| OLD | NEW |