Translate HLSLNumThreadsAttr into function attribute with name "dx.numthreads" and value format as "x,y,z".
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/CodeGen/CGHLSLRuntime.cpp | ||
|---|---|---|
| 216 | This isn't DirectX-specific, so we should name it hlsl. | |
| clang/lib/CodeGen/CGHLSLRuntime.cpp | ||
|---|---|---|
| 221 | You can replace this whole chunk of code with: std::string NumThreadsStr = llvm::formatv("{0},{1},{2}", NumThreadsAttr->getX(), NumThreadsAttr->getY(), NumThreadsAttr->getZ()).str(); | |
This isn't DirectX-specific, so we should name it hlsl.