[PATCH] D124752: [HLSL] clang codeGen for HLSLShaderAttr.

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 00:15:46 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: dblaikie, MaskRay, hoy, lebedev.ri.
Herald added subscribers: Anastasia, StephenFan.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Translate HLSLShaderAttr to IR level.

1. Skip mangle for hlsl entry functions.
2. Add function attribute for hlsl entry functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124752

Files:
  clang/lib/AST/Mangle.cpp
  clang/lib/CodeGen/CGHLSLRuntime.cpp
  clang/lib/CodeGen/CGHLSLRuntime.h
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/test/CodeGenHLSL/entry.hlsl
  clang/test/CodeGenHLSL/shader_type_attr.hlsl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124752.426341.patch
Type: text/x-patch
Size: 3204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220502/f6b05865/attachment-0001.bin>


More information about the cfe-commits mailing list