Move HLSL builtins into hlsl namespace
authorChris Bieneman <chris.bieneman@me.com>
Wed, 19 Oct 2022 15:18:19 +0000 (10:18 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Wed, 19 Oct 2022 15:59:31 +0000 (10:59 -0500)
commitd146a5241c5039fd25e8bf5a4ae1200ad201d06c
tree7ba827de1cee95a63d34258c78f38875ee3a11cf
parentbc1819389fb4701cdeba5e093278e32dd668d6d5
Move HLSL builtins into hlsl namespace

Should have done this from the start. Since all the injected AST types
are in the hlsl namespace we should also put the header-defined types
and functions in there too.

This updates the basic_types test to run once with the namespaced types
and once without, and adds using declarations or namespaces calls in
other tests.

Reviewed By: python3kgae

Differential Revision: https://reviews.llvm.org/D135973
clang/lib/Headers/hlsl/hlsl_basic_types.h
clang/lib/Headers/hlsl/hlsl_intrinsics.h
clang/test/CodeGenHLSL/basic_types.hlsl
clang/test/CodeGenHLSL/builtins/abs.hlsl
clang/test/CodeGenHLSL/builtins/ceil.hlsl
clang/test/CodeGenHLSL/builtins/sqrt.hlsl
clang/test/SemaHLSL/Wave.hlsl
clang/test/SemaHLSL/WaveBuiltinAvailability.hlsl