[all-commits] [llvm/llvm-project] 22c477: [HLSL] Initial codegen for SV_GroupIndex
Chris B via All-commits
all-commits at lists.llvm.org
Thu Aug 25 09:20:32 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 22c477f934c4d1fa3f7d782d32a3e151f581c686
https://github.com/llvm/llvm-project/commit/22c477f934c4d1fa3f7d782d32a3e151f581c686
Author: Chris Bieneman <chris.bieneman at me.com>
Date: 2022-08-25 (Thu, 25 Aug 2022)
Changed paths:
M clang/lib/AST/Mangle.cpp
M clang/lib/CodeGen/CGHLSLRuntime.cpp
M clang/lib/CodeGen/CGHLSLRuntime.h
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGenHLSL/semantics/GroupIndex-codegen.hlsl
Log Message:
-----------
[HLSL] Initial codegen for SV_GroupIndex
Semantic parameters aren't passed as actual parameters, instead they are
populated from intrinsics which are generally lowered to reads from
dedicated hardware registers.
This change modifies clang CodeGen to emit the intrinsic calls and
populate the parameter's LValue with the result of the intrinsic call
for SV_GroupIndex.
The result of this is to make the actual passed argument ignored, which
will make it easy to clean up later in an IR pass.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D131203
More information about the All-commits
mailing list