Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dx12] Drop code for llvm passes which prepare for DXIL generation. #5998

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

python3kgae
Copy link
Contributor

2 passes are added for DXIL generation.

TaichiIntrinsicLower will translate taichi intrinsic like thread_idx into the form DirectX backend expected.

TaichiRuntimeContextLower will translate the TaichiRuntimeContext parameter for kernel into Buffers/ConstantBuffers.
TaichiRuntimeContextLower is empty now.
It is added after inline so optimizations reduce the load/store on temp ptr. And it is easier to know a store is on the TaichiRuntimeContext.

Related issue = #5276

2 passes are added for DXIL generation.

TaichiIntrinsicLower will translate taichi intrinsic like thread_idx into the form DirectX backend expected.

TaichiRuntimeContextLower will translate the TaichiRuntimeContext parameter for kernel into Buffers/ConstantBuffers.
TaichiRuntimeContextLower is empty now.
It is added after inline so optimizations reduce the load/store on temp ptr. And it is easier to know a store is on the TaichiRuntimeContext.
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@ailzhang ailzhang merged commit e7bdbff into taichi-dev:master Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants