Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0, llvmorg-19.1.0-rc4 |
|
#
58eec851 |
| 26-Aug-2024 |
Justin Bogner <mail@justinbogner.com> |
[DirectX] Move resource logic into PrettyPrinter and TranslateMetadata. NFC
Move the module level logic for resources into the pretty printer and translate metadata passes rather than embedding them
[DirectX] Move resource logic into PrettyPrinter and TranslateMetadata. NFC
Move the module level logic for resources into the pretty printer and translate metadata passes rather than embedding them in the DXILResource helper. This will make it easier to migrate towards the target extension type based approach to resources.
Pull Request: https://github.com/llvm/llvm-project/pull/104446
show more ...
|
Revision tags: llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init, llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1 |
|
#
ad713186 |
| 29-Jan-2024 |
Justin Bogner <mail@justinbogner.com> |
[DirectX] Move DXIL ResourceKind and ElementType to DXILABI.h. NFC
Pull Request: https://github.com/llvm/llvm-project/pull/78225
|
Revision tags: llvmorg-19-init |
|
#
4f54d715 |
| 18-Dec-2023 |
Justin Bogner <mail@justinbogner.com> |
[HLSL][DirectX] Move handling of resource element types into the frontend
Rather than shepherding a type name all the way to the backend as a string and attempting to parse it, get the element type
[HLSL][DirectX] Move handling of resource element types into the frontend
Rather than shepherding a type name all the way to the backend as a string and attempting to parse it, get the element type out of the AST and store that in the resource annotation metadata directly.
Pull Request: https://github.com/llvm/llvm-project/pull/75674
show more ...
|
#
395f9ce3 |
| 16-Dec-2023 |
Kazu Hirata <kazu@google.com> |
Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with
Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20.
I'm planning to deprecate and eventually remove StringRef::{starts,ends}with.
show more ...
|
#
7a13e410 |
| 09-Dec-2023 |
Justin Bogner <mail@justinbogner.com> |
[DirectX] Move ROV info into HLSL metadata. NFC
Pull Request: https://github.com/llvm/llvm-project/pull/74896
|
#
18f0da26 |
| 08-Dec-2023 |
Justin Bogner <mail@justinbogner.com> |
[HLSL][DirectX] Avoid some unnecessary casting. NFC
|
Revision tags: llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4 |
|
#
1abc931d |
| 30-Oct-2023 |
Justin Bogner <mail@justinbogner.com> |
[DirectX] Remove redundant resource kind handling. NFC (#70691)
The frontend passes this along since https://reviews.llvm.org/D135335
|
Revision tags: llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init |
|
#
7f9ba199 |
| 10-Jul-2023 |
Justin Bogner <mail@justinbogner.com> |
[DirectX] Fix two "not all control paths return a value" warnings
These switch statements are fully covered. Add an llvm_unreachable so that compilers that don't recognize that don't warn.
Differen
[DirectX] Fix two "not all control paths return a value" warnings
These switch statements are fully covered. Add an llvm_unreachable so that compilers that don't recognize that don't warn.
Differential Revision: https://reviews.llvm.org/D154882
show more ...
|
Revision tags: llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init |
|
#
944f4b28 |
| 12-Jan-2023 |
Xiang Li <python3kgae@outlook.com> |
[DirectX backend] add support ConstantBuffer to DXILResource.h
class ConstantBuffer is added to save information for cbuffer. Also add CBufferDataLayout to calculate the size for cbuffer.
Now alway
[DirectX backend] add support ConstantBuffer to DXILResource.h
class ConstantBuffer is added to save information for cbuffer. Also add CBufferDataLayout to calculate the size for cbuffer.
Now always use legacy cbuffer layout. https://reviews.llvm.org/D134998 will add control to disable legacy cbuffer layout.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D136031
show more ...
|
Revision tags: llvmorg-15.0.7 |
|
#
b8615079 |
| 12-Dec-2022 |
Xiang Li <python3kgae@outlook.com> |
[DIrectX backend] emit metadata for entry.
New named metadata "dx.entryPoints" is added to save all entries.
Each entry is in format of !{ptr to function, name, signature, resource table, extra}
F
[DIrectX backend] emit metadata for entry.
New named metadata "dx.entryPoints" is added to save all entries.
Each entry is in format of !{ptr to function, name, signature, resource table, extra}
For compute shader, the extra will save num of threads in format of {i32 x, i32 y, i32 z}
For library profile, an empty entry will be added to save the resource table for the library.
Signature and resource table metadata is not generated yet.
Differential Revision: https://reviews.llvm.org/D131807
show more ...
|
Revision tags: llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3 |
|
#
13163dd8 |
| 16-Oct-2022 |
Xiang Li <python3kgae@outlook.com> |
[HLSL] CodeGen hlsl resource binding.
''register(ID, space)'' like register(t3, space1) will be translated into i32 3, i32 1 as the last 2 operands for resource annotation metadata.
NamedMetadata f
[HLSL] CodeGen hlsl resource binding.
''register(ID, space)'' like register(t3, space1) will be translated into i32 3, i32 1 as the last 2 operands for resource annotation metadata.
NamedMetadata for CBuffers and SRVs are added as "hlsl.srvs" and "hlsl.cbufs".
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D130951
show more ...
|
#
911d2dc2 |
| 14-Oct-2022 |
Chris Bieneman <chris.bieneman@me.com> |
[NFC] [HLSL] Move common metadata to LLVMFrontend
This change pulls some code from the DirectX backend into a new LLVMFrontendHLSL library to share utility data structures between the HLSL code gene
[NFC] [HLSL] Move common metadata to LLVMFrontend
This change pulls some code from the DirectX backend into a new LLVMFrontendHLSL library to share utility data structures between the HLSL code generation in Clang and the backend in LLVM.
This is a small refactoring as a first start to get code into the right structure and get the library built and dependencies correct.
Fixes #58000 (https://github.com/llvm/llvm-project/issues/58000)
Reviewed By: python3kgae
Differential Revision: https://reviews.llvm.org/D135110
show more ...
|
#
1fc78d66 |
| 11-Oct-2022 |
Xiang Li <python3kgae@outlook.com> |
[DirectX backend] [NFC] Change Resources::write to const.
Change Resources::write to const. Also fix parameter name.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D135705
|
Revision tags: working |
|
#
22018555 |
| 04-Oct-2022 |
Xiang Li <python3kgae@outlook.com> |
[DirectX backend] Add analysis to collect DXILResources
Now only DXILTranslateMetadata uses DXILResources, so DXILResourceWrapper is only used by DXILTranslateMetadata. Once we add lower for createH
[DirectX backend] Add analysis to collect DXILResources
Now only DXILTranslateMetadata uses DXILResources, so DXILResourceWrapper is only used by DXILTranslateMetadata. Once we add lower for createHandle, DXILResourceWrapper will be used in more passes. Also we can add resource index allocation in DXILResourceWrapper.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D135190
show more ...
|
Revision tags: llvmorg-15.0.2 |
|
#
618e5006 |
| 03-Oct-2022 |
Chris Bieneman <chris.bieneman@me.com> |
[DirectX] Generate `dx.resources` metadata entry
This code adds initial support for generating the HLSL resources metadata entries. It has a lot of `FIXMEs` laying around because there is a lot more
[DirectX] Generate `dx.resources` metadata entry
This code adds initial support for generating the HLSL resources metadata entries. It has a lot of `FIXMEs` laying around because there is a lot more work to do here, but this lays a solid groundwork and can accurately handle some trivial cases.
I've filed a swath of issues covering the deficiencies here and left the issues in comments so that we can easily follow them.
One big change to make sooner rather than later is to move some of this code into a new libLLVMFrontendHLSL so that we can share it with the Clang CodeGen layer.
Reviewed By: python3kgae
Differential Revision: https://reviews.llvm.org/D134682
show more ...
|