diff options
| author | Chris Bieneman <chris.bieneman@me.com> | 2022-08-24 14:46:04 -0500 |
|---|---|---|
| committer | Chris Bieneman <chris.bieneman@me.com> | 2022-08-25 11:17:54 -0500 |
| commit | 22c477f934c4d1fa3f7d782d32a3e151f581c686 (patch) | |
| tree | 4f9c8056fd04823b5f1162aa9211fbf02482bb70 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 9e37b1e5a0c15f36c5642406d5aa02a657a0b19c (diff) | |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9df197056664..2ced1c541981 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1703,10 +1703,6 @@ void CodeGenModule::SetLLVMFunctionAttributes(GlobalDecl GD, /*AttrOnCallSite=*/false, IsThunk); F->setAttributes(PAL); F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv)); - if (getLangOpts().HLSL) { - if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(GD.getDecl())) - getHLSLRuntime().setHLSLFunctionAttributes(F, FD); - } } static void removeImageAccessQualifier(std::string& TyName) { |
