[PATCH] D134682: [DirectX] Generate `dx.resources` metadata entry
Xiang Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 23:59:21 PDT 2022
python3kgae added inline comments.
================
Comment at: llvm/lib/Target/DirectX/DXILResource.h:142-144
+ llvm::SmallVector<UAVResource> UAVs;
+
+ void collectUAVs();
----------------
Maybe another class like
class HLSL_UAVs {
public:
llvm::SmallVector<UAVResource> UAVs;
HLSL_UAVs() {... call collectUAVs }
~HLSL_UAVs() { remove the "hlsl.uavs" metadata}
private:
void collectUAVs();
};
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134682/new/
https://reviews.llvm.org/D134682
More information about the llvm-commits
mailing list