[llvm] [DirectX] Infrastructure to collect shader flags for each function (PR #112967)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 13:39:23 PST 2024


================
@@ -63,20 +106,64 @@ void ComputedShaderFlags::print(raw_ostream &OS) const {
   OS << ";\n";
 }
 
+/// Get the combined shader flag mask of all module functions.
+const ComputedShaderFlags DXILModuleShaderFlagsInfo::getCombinedFlags() const {
----------------
llvm-beanz wrote:

nit: a one-line function like this we should probably declare inline in the header so that it can be inlined at calls.

https://github.com/llvm/llvm-project/pull/112967


More information about the llvm-commits mailing list