DirectXShaderCompiler/include
Adam Yang fc796a0fc3
[NFC] Refactor -opt-enable and -opt-disable (#5516)
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)`.
2023-08-14 21:52:54 +00:00
..
dxc [NFC] Refactor -opt-enable and -opt-disable (#5516) 2023-08-14 21:52:54 +00:00
llvm [C++17] Merge Replace uses of std::iterator with explicit using (#5485) 2023-08-09 14:04:01 -04:00
llvm-c
miniz