aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorChris Bieneman <chris.bieneman@me.com>2022-03-29 09:42:57 -0500
committerChris Bieneman <chris.bieneman@me.com>2022-03-29 09:43:03 -0500
commit5b6207f3cd5e266f3fda8085fcebe6dcf45dacbf (patch)
tree1e5001b241fd3434ecd57d0ebea3506ea9408e17 /clang/lib/Frontend/InitPreprocessor.cpp
parentc204cee642ee794901d2e8a9819b52ac12f92bc9 (diff)
downloadllvm-5b6207f3cd5e266f3fda8085fcebe6dcf45dacbf.zip
llvm-5b6207f3cd5e266f3fda8085fcebe6dcf45dacbf.tar.gz
llvm-5b6207f3cd5e266f3fda8085fcebe6dcf45dacbf.tar.bz2
[ADT] Flesh out HLSL raytracing environments
Fleshing this out now allows me to rely on enum math to translate values rather than having to translate the off cases. I should have added this in the first pass, but wasn't thinking about it.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 89e9cb0..011a674 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -401,11 +401,6 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
uint32_t StageInteger = StageInteger =
(uint32_t)TI.getTriple().getEnvironment() -
(uint32_t)llvm::Triple::Pixel;
- // TODO: When we add raytracing support we can clean this up
- if (TI.getTriple().getEnvironment() == llvm::Triple::Mesh)
- StageInteger = (uint32_t)ShaderStage::Mesh;
- else if (TI.getTriple().getEnvironment() == llvm::Triple::Amplification)
- StageInteger = (uint32_t)ShaderStage::Amplification;
Builder.defineMacro("__SHADER_TARGET_STAGE", Twine(StageInteger));
// Add target versions