Skip to content

Cleanup builtin headers#8540

Open
llvm-beanz wants to merge 2 commits into
microsoft:mainfrom
llvm-beanz:builtin-header-cleanup
Open

Cleanup builtin headers#8540
llvm-beanz wants to merge 2 commits into
microsoft:mainfrom
llvm-beanz:builtin-header-cleanup

Conversation

@llvm-beanz

Copy link
Copy Markdown
Collaborator

This change cleans up the built-in HLSL headers. The main changes are:

enable_if:

  • Rename from enable_if.h to enable_if aligning with TC57 guidance
  • Add proper include guard
  • Add license block to header

type_traits:

  • Created a type_traits header from trait definitions in linalg.h

vector_utils:

  • Rename from vector_utils.h to vector_utils aligning with TC56 guidance
  • Remove restriction on SM 6.9 (this works with small vectors everywhere)
  • Add proper include guard
  • Add license block to header

linalg.h

  • Split out type_traits
  • use enable_if and type_traits headers

This change cleans up the built-in HLSL headers. The main changes are:

enable_if:
* Rename from enable_if.h to enable_if aligning with TC57 guidance
* Add proper include guard
* Add license block to header

type_traits:
* Created a type_traits header from trait definitions in linalg.h

vector_utils:
* Rename from vector_utils.h to vector_utils aligning with TC56 guidance
* Remove restriction on SM 6.9 (this works with small vectors
  everywhere)
* Add proper include guard
* Add license block to header

linalg.h
* Split out type_traits
* use enable_if and type_traits headers
Comment thread docs/ReleaseNotes.md Outdated
Co-authored-by: Ashley Coleman <ascoleman@microsoft.com>

@alsepkow alsepkow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛳️

@bob80905 bob80905 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just for my curiosity, why doesn't the guidance apply to linalg.h -> linalg?

@llvm-beanz

Copy link
Copy Markdown
Collaborator Author

LGTM. Just for my curiosity, why doesn't the guidance apply to linalg.h -> linalg?

linalg.h and the other dx and vk headers aren't part of the standard, they're platform-specific headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

4 participants