File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,19 @@ on the utilities described in "Common Code" above in order to share
6161logic with both the DirectX backend and with Clang's codegen of HLSL
6262support as much as possible.
6363
64+ The DirectX Intrinsic Expansion Pass
65+ ====================================
66+ There are intrinsics that don't map directly to DXIL Ops. In some cases
67+ an intrinsic needs to be expanded to a set of LLVM IR instructions. In
68+ other cases an intrinsic needs modifications to the arguments or return
69+ values of a DXIL Op. The `DXILIntrinsicExpansion ` pass handles all
70+ the cases where our intrinsics don't have a one to one mapping. This
71+ pass may also be used when the expansion is specific to DXIL to keep
72+ implementation details out of CodeGen. Finally, there is an expectation
73+ that we maintain vector types through this pass. Therefore, best
74+ practice would be to avoid scalarization in this pass.
75+
76+
6477The DirectX Backend
6578===================
6679
You can’t perform that action at this time.
0 commit comments