llvm-capstone/clang/test/SemaHLSL
Justin Bogner ef2b1700f4 [Sema][HLSL] Consolidate handling of HLSL attributes
This moves the sema checking of the entrypoint sensitive HLSL
attributes all into one place. This ended up being kind of large for a
couple of reasons:

- I had to move the call to CheckHLSLEntryPoint later in
  ActOnFunctionDeclarator so that we do this after redeclarations and
  have access to all of the attributes.

- We need to transfer the target shader stage onto the specified entry
  point before doing the checking.

- I removed "library" from the HLSLShader attribute value enum and
  just go through a string to convert from the triple - the other way
  was confusing and brittle.

Differential Revision: https://reviews.llvm.org/D158803
2023-08-29 08:55:38 -07:00
..
BuiltIns
Semantics [Sema][HLSL] Consolidate handling of HLSL attributes 2023-08-29 08:55:38 -07:00
AvailabilityMarkup.hlsl [HLSL] Enable availability attribute 2022-09-16 16:04:27 -05:00
BitInt128.hlsl [HLSL] Disable integer promotion to avoid int16_t being promoted to int for HLSL. 2022-10-20 16:06:25 -07:00
cb_error.hlsl [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
entry_shader_redecl.hlsl [Sema][HLSL] Consolidate handling of HLSL attributes 2023-08-29 08:55:38 -07:00
entry_shader.hlsl [Sema][HLSL] Fix naming of anyhit/closesthit shaders 2023-08-25 13:08:36 -07:00
entry.hlsl [Sema][HLSL] Consolidate handling of HLSL attributes 2023-08-29 08:55:38 -07:00
GlobalConstructors.hlsl [HLSL] Call global constructors inside entry 2022-09-09 09:01:28 -05:00
group_shared_202x.hlsl [HLSL] Add groupshare address space. 2022-10-20 09:29:09 -07:00
group_shared.hlsl [HLSL] Add groupshare address space. 2022-10-20 09:29:09 -07:00
lit.local.cfg [NFC][Py Reformat] Reformat python files in clang and clang-tools-extra 2023-05-23 08:29:52 +02:00
num_threads.hlsl [Sema][HLSL] Consolidate handling of HLSL attributes 2023-08-29 08:55:38 -07:00
prohibit_pointer.hlsl [HLSL] Support -E option for HLSL. 2022-08-04 16:54:19 -07:00
prohibit_reference.hlsl
resource_binding_attr_error.hlsl [HLSL] Support register binding attribute on global variable 2022-10-05 09:23:35 -07:00
shader_type_attr.hlsl [Sema][HLSL] Fix naming of anyhit/closesthit shaders 2023-08-25 13:08:36 -07:00
valid-shader-stages.hlsl [Sema][HLSL] Fix naming of anyhit/closesthit shaders 2023-08-25 13:08:36 -07:00
Wave.hlsl Move HLSL builtins into hlsl namespace 2022-10-19 10:59:31 -05:00
WaveBuiltinAvailability.hlsl Move HLSL builtins into hlsl namespace 2022-10-19 10:59:31 -05:00