[llvm] [DXIL][Analysis] Collect Function properties in Metadata Analysis (PR #105728)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 12:31:43 PDT 2024
================
@@ -19,12 +21,20 @@ namespace llvm {
namespace dxil {
+struct EntryProperties {
+ // Specific target shader stage may be specified for entry functions
+ Triple::EnvironmentType ShaderStage = Triple::UnknownEnvironment;
+ unsigned NumThreadsX; // X component
+ unsigned NumThreadsY; // Y component
+ unsigned NumThreadsZ; // Z component
+};
+
struct ModuleMetadataInfo {
VersionTuple DXILVersion{};
VersionTuple ShaderModelVersion{};
Triple::EnvironmentType ShaderStage = Triple::UnknownEnvironment;
VersionTuple ValidatorVersion{};
-
+ MapVector<Function *, EntryProperties> EntryPropertyMap;
----------------
bogner wrote:
Why a MapVector? Is the insertion order of these functions interesting to preserve for some reason, or is this just here so that it's easy to make the order that we print them in deterministic?
https://github.com/llvm/llvm-project/pull/105728
More information about the llvm-commits
mailing list