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
61
61
logic with both the DirectX backend and with Clang's codegen of HLSL
62
62
support as much as possible.
63
63
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
+
64
77
The DirectX Backend
65
78
===================
66
79
You can’t perform that action at this time.
0 commit comments