fc796a0fc3
Refactored -opt-enable and -opt-disable. - Added `hlsl::option::OptimizationToggles` to manage the toggles instead of checking a `std::map`. - All the options are moved into `hlsl::options::TOGGLE_*` constants, where each constant contains both the option's name and whether it's default on or off. + Previously, every check had to be either `toggles.count("my-flag") && toggles.find("my-flag")->second` for default off, and `!toggles.count("my-flag") || toggles.map.find("my-flag")->second` for default on. + Now, a check is simply `toggles.IsEnabled(TOGGLE_MY_FLAG)`. |
||
---|---|---|
.. | ||
dxc | ||
llvm | ||
llvm-c | ||
miniz |