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

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 17:18:26 PDT 2024


================
@@ -60,21 +61,35 @@ struct ComputedShaderFlags {
     return FeatureFlags;
   }
 
-  static ComputedShaderFlags computeFlags(Module &M);
   void print(raw_ostream &OS = dbgs()) const;
   LLVM_DUMP_METHOD void dump() const { print(); }
 };
 
+using FuncShaderFlagsMask = std::pair<Function const *, ComputedShaderFlags>;
+using FunctionShaderFlagsVec = SmallVector<FuncShaderFlagsMask>;
----------------
bogner wrote:

Why bother giving these types names? They're used exactly once each, and giving them names at this scope makes it look like I need to go find out what they're used for elsewhere.


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


More information about the llvm-commits mailing list