[PATCH] D128845: [HLSL]Add -O and -Od option for dxc mode.

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 11:11:56 PDT 2022


beanz added inline comments.


================
Comment at: clang/include/clang/Basic/TargetOptions.h:120
+  /// Keep the information about disable optimization for ShaderFlags.
+  bool DxcOptDisable = false;
 };
----------------
If `Od` and `O0` are the same you shouldn't need to track this, or have the extra command line option to set the flag, you should imply the shader flag from the optimization level.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128845/new/

https://reviews.llvm.org/D128845



More information about the cfe-commits mailing list