diff options
author | Xiang Li <python3kgae@outlook.com> | 2022-10-12 17:02:56 -0700 |
---|---|---|
committer | Xiang Li <python3kgae@outlook.com> | 2022-10-12 21:17:38 -0700 |
commit | ebe9c7f3e2da779b984b336dadf37cc4ec2ae260 (patch) | |
tree | 6d739eb50337f5713790bfcdc8320fe21e5d27d5 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | e231a580139a50aff639296c4b95a65e7d89cf1e (diff) | |
download | llvm-ebe9c7f3e2da779b984b336dadf37cc4ec2ae260.zip llvm-ebe9c7f3e2da779b984b336dadf37cc4ec2ae260.tar.gz llvm-ebe9c7f3e2da779b984b336dadf37cc4ec2ae260.tar.bz2 |
[HLSL] CodeGen hlsl cbuffer/tbuffer.
cbuffer A {
float a;
float b;
}
will be translated to a global variable.
Something like
struct CB_Ty {
float a;
float b;
};
CB_Ty A;
And all use of a and b will be replaced with A.a and A.b.
Only support none-legacy cbuffer layout now.
CodeGen for Resource binding will be in separate patch.
In the separate patch, resource binding will map the resource information to the global variable.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D130131
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions